SimpleView icon indicating copy to clipboard operation
SimpleView copied to clipboard

Installation is Vague

Open damassi opened this issue 13 years ago • 5 comments

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 avatar Jun 11 '12 20:06 damassi

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?

damassi avatar Jun 13 '12 07:06 damassi

  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

siuying avatar Jun 13 '12 08:06 siuying

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.

damassi avatar Jun 13 '12 09:06 damassi

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.

siuying avatar Jun 13 '12 11:06 siuying

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.

damassi avatar Jun 15 '12 18:06 damassi