Skip to content

Instantly share code, notes, and snippets.

@ashmoran
Created February 4, 2010 21:26
Show Gist options
  • Save ashmoran/295124 to your computer and use it in GitHub Desktop.
Save ashmoran/295124 to your computer and use it in GitHub Desktop.
#!/Users/ashleymoran/.rvm/rubies/ruby-1.9.1-head/bin/ruby
ENV['GEM_HOME']=ENV['GEM_HOME'] || '/Users/ashleymoran/.rvm/gems/ruby-1.9.1-head'
ENV['GEM_PATH']=ENV['GEM_PATH'] || '/Users/ashleymoran/.rvm/gems/ruby-1.9.1-head:/Users/ashleymoran/.rvm/gems/ruby-1.9.1-head%global'
ENV['PATH']='/Users/ashleymoran/.rvm/rubies/ruby-1.9.1-head/bin:/Users/ashleymoran/.rvm/gems/ruby-1.9.1-head/bin:' + ENV['PATH']
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
# See LICENSE.txt for permissions.
#++
require 'rubygems'
require 'rubygems/gem_runner'
require 'rubygems/exceptions'
required_version = Gem::Requirement.new "> 1.8.3"
unless required_version.satisfied_by? Gem.ruby_version then
abort "Expected Ruby Version #{required_version}, was #{Gem.ruby_version}"
end
# We need to preserve the original ARGV to use for passing gem options
# to source gems. If there is a -- in the line, strip all options after
# it...its for the source building process.
args = !ARGV.include?("--") ? ARGV.clone : ARGV[0...ARGV.index("--")]
begin
Gem::GemRunner.new.run args
rescue Gem::SystemExitException => e
exit e.exit_code
end
# Installed rvm from git
rvm install ruby-1.9.1-head
rvm use 1.9.1-head
gem install gem install rspec --version 1.3.0
irb
require 'spec'
ruby-1.9.1-head > require 'rubygems'
=> false
ruby-1.9.1-head > require 'spec'
LoadError: no such file to load -- spec
from (irb):3:in `require'
from (irb):3
from /Users/ashleymoran/.rvm/rubies/ruby-1.9.1-head/bin/irb:15:in `<main>'
Error loading gem paths on load path in gem_prelude
can't modify frozen string
<internal:gem_prelude>:69:in `force_encoding'
<internal:gem_prelude>:69:in `set_home'
<internal:gem_prelude>:38:in `dir'
<internal:gem_prelude>:76:in `set_paths'
<internal:gem_prelude>:47:in `path'
<internal:gem_prelude>:286:in `push_all_highest_version_gems_on_load_path'
<internal:gem_prelude>:355:in `<compiled>'
abstract (1.0.0)
addressable (2.1.1)
bcrypt-ruby (2.1.2)
builder (2.1.2)
bundler (0.9.1.pre1)
cucumber (0.6.2)
data_objects (0.10.1)
datamapper (0.10.2)
diff-lcs (1.1.2)
dm-aggregates (0.10.2)
dm-constraints (0.10.2)
dm-core (0.10.2)
dm-migrations (0.10.2)
dm-serializer (0.10.2)
dm-sweatshop (0.10.2)
dm-timestamps (0.10.2)
dm-types (0.10.2)
dm-validations (0.10.2)
do_postgres (0.10.1)
do_sqlite3 (0.10.1.1)
erubis (2.6.5)
extlib (0.9.14)
fastercsv (1.5.1)
haml (2.2.17)
highline (1.5.2)
json_pure (1.2.0)
mailfactory (1.4.0)
merb (1.1.0.pre)
merb-action-args (1.1.0.pre)
merb-assets (1.1.0.pre)
merb-auth (1.1.0.pre)
merb-auth-core (1.1.0.pre)
merb-auth-more (1.1.0.pre)
merb-auth-slice-password (1.1.0.pre)
merb-cache (1.1.0.pre)
merb-core (1.1.0.pre)
merb-exceptions (1.1.0.pre)
merb-gen (1.1.0.pre)
merb-haml (1.1.0.pre)
merb-helpers (1.1.0.pre)
merb-mailer (1.1.0.pre)
merb-param-protection (1.1.0.pre)
merb-slices (1.1.0.pre)
merb_datamapper (1.1.0.pre)
mime-types (1.16)
ParseTree (3.0.4)
polyglot (0.2.9)
postgres-pr (0.6.3)
rack (1.1.0)
rake (0.8.7)
randexp (0.1.4)
rspec (1.3.0)
ruby2ruby (1.2.4)
ruby_parser (2.0.4)
rubygems-update (1.3.5)
RubyInline (3.8.4)
sexp_processor (3.0.3)
stringex (1.1.0)
templater (1.0.0)
term-ansicolor (1.0.4)
treetop (1.4.3)
uuidtools (2.1.1)
ZenTest (4.2.1)
1> ~ % rvm 1.9.1-head ; rvm --shebang --env inspect gem rake irb ; gem --version
gem rake irb not found:
cat: gem rake irb not found: No such file or directory
cat: gem rake irb not found: No such file or directory
Error loading gem paths on load path in gem_prelude
can't modify frozen string
<internal:gem_prelude>:69:in `force_encoding'
<internal:gem_prelude>:69:in `set_home'
<internal:gem_prelude>:38:in `dir'
<internal:gem_prelude>:76:in `set_paths'
<internal:gem_prelude>:47:in `path'
<internal:gem_prelude>:286:in `push_all_highest_version_gems_on_load_path'
<internal:gem_prelude>:355:in `<compiled>'
1.3.5
rvm 0.1.7 by Wayne E. Seguin ([email protected]) [http://rvm.beginrescueend.com/]
system:
uname: "Darwin firedrake.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386"
ruby:
interpreter: "ruby"
version: "1.9.1p420"
date: "2010-02-04"
platform: "i386-darwin10.2.0"
patchlevel: "2010-02-04 revision 26571"
full_version: "ruby 1.9.1p420 (2010-02-04 revision 26571) [i386-darwin10.2.0]"
homes:
gem: "/Users/ashleymoran/.rvm/gems/ruby-1.9.1-head"
ruby: "/Users/ashleymoran/.rvm/rubies/ruby-1.9.1-head"
binaries:
ruby: "/Users/ashleymoran/.rvm/rubies/ruby-1.9.1-head/bin/ruby"
irb: "/Users/ashleymoran/.rvm/rubies/ruby-1.9.1-head/bin/irb"
gem: "/Users/ashleymoran/.rvm/rubies/ruby-1.9.1-head/bin/gem"
rake: "/Users/ashleymoran/.rvm/rubies/ruby-1.9.1-head/bin/rake"
environment:
GEM_HOME: "/Users/ashleymoran/.rvm/gems/ruby-1.9.1-head"
GEM_PATH: "/Users/ashleymoran/.rvm/gems/ruby-1.9.1-head:/Users/ashleymoran/.rvm/gems/ruby-1.9.1-head%global"
MY_RUBY_HOME: "/Users/ashleymoran/.rvm/rubies/ruby-1.9.1-head"
IRBRC: "/Users/ashleymoran/.rvm/rubies/ruby-1.9.1-head/.irbrc"
PATH:
/Users/ashleymoran/.rvm/bin:/Users/ashleymoran/.rvm/bin:/Users/ashleymoran/.rvm/rubies/ruby-1.9.1-head/bin:/Users/ashleymoran/.rvm/gems/ruby-1.9.1-head/bin:/Users/ashleymoran/.rvm/gems//Users/ashleymoran/.rvm/gems/ruby-1.9.1-head%global/bin
uname -a: Darwin firedrake.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386
permissions: /Users/ashleymoran/.rvm:
total 16
drwxr-xr-x 16 ashleymoran staff 544 4 Feb 18:53 .
drwx------+ 65 ashleymoran staff 2278 4 Feb 18:53 ..
-rw-r--r-- 1 ashleymoran staff 1038 4 Feb 18:53 LICENCE
-rw-r--r-- 1 ashleymoran staff 4064 4 Feb 18:53 README
drwxr-xr-x 2 ashleymoran staff 68 4 Feb 18:53 archives
drwxr-xr-x 6 ashleymoran staff 204 4 Feb 19:12 bin
drwxr-xr-x 6 ashleymoran staff 204 4 Feb 18:53 config
drwxr-xr-x 3 ashleymoran staff 102 4 Feb 18:53 examples
drwxr-xr-x 7 ashleymoran staff 238 4 Feb 20:21 gems
drwxr-xr-x 2 ashleymoran staff 68 4 Feb 18:53 hooks
drwxr-xr-x 5 ashleymoran staff 170 4 Feb 18:53 lib
drwxr-xr-x 3 ashleymoran staff 102 4 Feb 18:54 log
drwxr-xr-x 3 ashleymoran staff 102 4 Feb 19:10 rubies
drwxr-xr-x 33 ashleymoran staff 1122 4 Feb 18:53 scripts
drwxr-xr-x 4 ashleymoran staff 136 4 Feb 18:54 src
drwxr-xr-x 2 ashleymoran staff 68 4 Feb 18:53 tmp
/Users/ashleymoran/.rvm/rubies:
total 0
drwxr-xr-x 3 ashleymoran staff 102 4 Feb 19:10 .
drwxr-xr-x 16 ashleymoran staff 544 4 Feb 18:53 ..
drwxr-xr-x 7 ashleymoran staff 238 4 Feb 19:12 ruby-1.9.1-head
uname -r: 10.2.0
uname -m: i386
sw_vers: ProductName: Mac OS X,ProductVersion: 10.6.2,BuildVersion: 10C540,
ARCHFLAGS: 
LDFLAGS: 
CFLAGS: 
/Developer/SDKs/*:MacOSX10.4u.sdk,MacOSX10.5.sdk,MacOSX10.6.sdk,
/Users/ashleymoran/.rvm/config/system (filtered):
unset RUBY_VERSION
unset GEM_HOME
unset GEM_PATH
unset MY_RUBY_HOME

/Users/ashleymoran/.rvm/config/db (filtered):
niceness=0
ruby_repo_url=http://svn.ruby-lang.org/repos/ruby
ruby_configure=--enable-shared
interpreter=ruby
ruby_version=1.8.6
ruby_patchlevel=383
rbx_version=1.0.0
rbx_patch_level=rc2
rbx_url=http://asset.rubini.us/rubinius-1.0.0-rc2-20100104.tar.gz
ree_version=1.8.7
ree_1.8.6_patch_level=20090610
ree_1.8.6_url=http://rubyforge.org/frs/download.php/58677
ree_1.8.6_repo_url=git://github.com/FooBarWidget/rubyenterpriseedition.git
ree_1.8.7_url=http://rubyforge.org/frs/download.php/68719
ree_1.8.7_repo_url=git://github.com/FooBarWidget/rubyenterpriseedition187.git
ree_1.8.7_patch_level=2010.01
ruby_1.9.1_patch_level=378
ruby_1.9.2_patch_level=preview1
ruby_1.8.5_patch_level=231
ruby_1.8.6_patch_level=398
ruby_1.8.7_patch_level=249
jruby_version=1.4.0
jruby_repo_url=git://github.com/jruby/jruby.git
jruby_url=http://jruby.kenai.com/downloads
macruby_version=0.5
macruby_url=http://www.macruby.org/files/
macruby_repo_url=git://git.macruby.org/macruby/MacRuby.git
macruby_nightly_url=http://macruby.icoretech.org/latest/macruby_nightly-latest.pkg
maglev_version=22816
maglev_url=http://glass-downloads.gemstone.com/maglev
maglev_repo_url=git://github.com/MagLev/maglev.git
rubinius_repo_url=git://github.com/evanphx/rubinius.git
shyouhei_repo_url=git://github.com/shyouhei/ruby.git
ironruby_version=0.9.3
ironruby_repo_url=git://github.com/ironruby/ironruby.git
ironruby_url=http://cloud.github.com/downloads/nrk/ironruby/

/Users/ashleymoran/.gemrc (filtered):
---
:update_sources: true
:bulk_threshold: 1000
:verbose: true
:sources:
- http://gemcutter.org
- http://gems.rubyforge.org/
- http://gems.github.com/
:benchmark: false
:backtrace: false
gem: --no-rdoc --no-ri

gem sources:
<internal:gem_prelude>:286:in `push_all_highest_version_gems_on_load_path'
http://gems.rubyforge.org/
http://gems.github.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment