Skip to content

Instantly share code, notes, and snippets.

@johnnygoodman
Created August 11, 2012 20:22
Show Gist options
  • Save johnnygoodman/3327002 to your computer and use it in GitHub Desktop.
Save johnnygoodman/3327002 to your computer and use it in GitHub Desktop.
1. CLI:
Admins-MacBook-Pro:gemtest johnnygoodman$ rvm gemset create contextio
'contextio' gemset created (/usr/local/rvm/gems/ruby-1.9.3-p194@contextio).
Admins-MacBook-Pro:gemtest johnnygoodman$ rvm gemset use contextio
Using ruby-1.9.3-p194 with gemset contextio
Admins-MacBook-Pro:gemtest johnnygoodman$ touch Gemfile
Admins-MacBook-Pro:gemtest johnnygoodman$ touch app.rb
Admins-MacBook-Pro:gemtest johnnygoodman$ mate .
Admins-MacBook-Pro:gemtest johnnygoodman$ bundle install
Updating https://github.com/contextio/Ruby-ContextIO.git
Using contextio (0.4.0) from https://github.com/contextio/Ruby-ContextIO.git (at dev_2.0)
Using bundler (1.1.5)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
Admins-MacBook-Pro:gemtest johnnygoodman$ bundle list
Gems included by the bundle:
* bundler (1.1.5)
* contextio (0.4.0 c927530)
2. Gemfile:
gem 'contextio', '0.4.0', :git => 'https://github.com/contextio/Ruby-ContextIO.git', :branch => 'dev_2.0'
3. Run app.rb:
require 'bundler/setup'
require 'contextio'
4. Error:
SyntaxError: /usr/local/rvm/gems/ruby-1.9.3-p194/bundler/gems/Ruby-ContextIO-c927530c11b9/lib/contextio.rb:586: syntax error, unexpected $end, expecting keyword_end
method require in app.rb at line 2
method <main> in app.rb at line 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment