seanho / SimpleView

RubyMotion DSL for UIKit
MIT License
103 stars 10 forks source link

Installation is Vague #5

Open damassi opened 12 years ago

damassi commented 12 years ago

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 commented 12 years ago

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.projectdir, 'vendor/SimpleView/.rb')) app.files.unshift(Dir.glob(File.join(app.projectdir, '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.projectdir, 'vendor/SimpleView/builders/helpers/.rb'))) app.files.unshift(Dir.glob(File.join(app.projectdir, '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 commented 12 years ago
  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 commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

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.