My command line ruby is 1.9.2 thanks to RVM, yet when I launch pry (which point to a 1.9.2 gem) it uses ruby 1.8.7
Do you know where is the ruby version pry uses specified ?
macflashy:~ $rvm info
ruby:
interpreter: "ruby"
version: "1.9.2p290"
date: "2011-07-09"
platform: "x86_64-darwin11.1.0"
patchlevel: "2011-07-09 revision 32553"
full_version: "ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.1.0]"
homes:
gem: "/Users/nrolland/.rvm/gems/ruby-1.9.2-p290"
ruby: "/Users/nrolland/.rvm/rubies/ruby-1.9.2-p290"
macflashy:~ $ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.1.0]
macflashy:~ $ which pry
/Users/nrolland/.rvm/gems/ruby-1.9.2-p290/bin/pry
macflashy:~ $ pry
[1] pry(main)> RUBY_VERSION
=> "1.8.7"