Installation is Vague
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.
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?
- You need to install bundler
- Create
Gemfilewith following content:
source :rubygems
gem 'simple-view', :git => 'https://github.com/seanho/SimpleView.git'
- Install the bundle:
bundle install - 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
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.
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.
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.