Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation is Vague #5

Open
damassi opened this issue Jun 11, 2012 · 5 comments
Open

Installation is Vague #5

damassi opened this issue Jun 11, 2012 · 5 comments

Comments

@damassi
Copy link

damassi commented Jun 11, 2012

Could you please detail the steps to install the gem in your gemfile? gem install simple-view does not work, and 'your gemfile' is somewhat vague.

@damassi
Copy link
Author

damassi commented Jun 13, 2012

Any update on this? Following the instructions (even after installing bundler, etc.) simple-view is still not found.

In order for my project to compile, I had to grab your includes from the root (while adjusting paths):

app.files += Dir.glob(File.join(app.project_dir, 'vendor/SimpleView/.rb'))
app.files.unshift(Dir.glob(File.join(app.project_dir, 'vendor/SimpleView/builders/
.rb')))
app.files.unshift(File.join(app.project_dir, 'vendor/SimpleView/builders/ui_control_builder.rb'))
app.files.unshift(File.join(app.project_dir, 'vendor/SimpleView/builders/ui_view_builder.rb'))
app.files.unshift(Dir.glob(File.join(app.project_dir, 'vendor/SimpleView/builders/helpers/.rb')))
app.files.unshift(Dir.glob(File.join(app.project_dir, 'vendor/SimpleView/extensions/
.rb')))

Curious as to why you're going this route rather than the (seemingly) more simple and common gem install package route?

@siuying
Copy link
Contributor

siuying commented Jun 13, 2012

  1. You need to install bundler
  2. Create Gemfile with following content:
source :rubygems
gem 'simple-view', :git => 'https://github.com/seanho/SimpleView.git'
  1. Install the bundle: bundle install
  2. Load bundler in your app:
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project'
require 'rubygems'
require 'bundler'
Bundler.require :default

Motion::Project::App.setup do |app|
  # ...
end

@damassi
Copy link
Author

damassi commented Jun 13, 2012

Appreciated; these instructions worked. This seems like it should be documented on the README, however, particularly for new (new) users who are unfamiliar with Bundler and how it interfaces with the RM build-process.

@siuying
Copy link
Contributor

siuying commented Jun 13, 2012

I believe every steps above are actually presented in readme, perhaps what you missing is bundle install?

Yep I agreed this could be difficult for ppl not familiar on bundler, perhaps a gem release will help.

@damassi
Copy link
Author

damassi commented Jun 15, 2012

I agree. It's good to remember that due to RubyMotion's accessibility, a lot of people are going to be coming to it without a formal Ruby background. An installation similar to BubbleWrap would be ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants