読者です 読者をやめる 読者になる 読者になる

Ruby 2.2.0 いれてみた

Rails

Ruby 2.2.0 入れてみた

$ ~/.rbenv/plugins/ruby-build


$ git pull
remote: Counting objects: 88, done.
remote: Compressing objects: 100% (56/56), done.
remote: Total 88 (delta 40), reused 60 (delta 24)
Unpacking objects: 100% (88/88), done.
From git://github.com/sstephenson/ruby-build
   63f6fa2..45b75ed  master     -> origin/master
 * [new tag]         v20141128  -> v20141128
 * [new tag]         v20141208  -> v20141208
 * [new tag]         v20141210  -> v20141210
 * [new tag]         v20141222  -> v20141222
 * [new tag]         v20141225  -> v20141225
Merge made by the 'recursive' strategy.
 README.md                                |  4 ++--
 bin/rbenv-install                        |  7 ++++---
 bin/rbenv-uninstall                      | 18 +++++++++++++-----
 bin/ruby-build                           | 39 +++++++++++++++++++--------------------
 share/ruby-build/2.2.0                   |  2 ++
 share/ruby-build/2.2.0-preview2          |  2 ++
 share/ruby-build/2.2.0-rc1               |  2 ++
 share/ruby-build/jruby-1.7.16.2          |  1 +
 share/ruby-build/jruby-1.7.17            |  1 +
 share/ruby-build/jruby-1.7.18            |  1 +
 share/ruby-build/jruby-9.0.0.0+graal-dev |  2 +-
 share/ruby-build/jruby-9.0.0.0-dev       |  2 +-
 share/ruby-build/jruby-9000+graal-dev    |  2 +-
 share/ruby-build/jruby-9000-dev          |  2 +-
 test/arguments.bats                      | 23 +++++++++++++++++++++++
 test/rbenv.bats                          | 39 +++++++++++++++++++++++++++++++++++++++
 16 files changed, 113 insertions(+), 34 deletions(-)
 create mode 100644 share/ruby-build/2.2.0
 create mode 100644 share/ruby-build/2.2.0-preview2
 create mode 100644 share/ruby-build/2.2.0-rc1
 create mode 100644 share/ruby-build/jruby-1.7.16.2
 create mode 100644 share/ruby-build/jruby-1.7.17
 create mode 100644 share/ruby-build/jruby-1.7.18
 create mode 100644 test/arguments.bats
 
 
$ rbenv install 2.2.0
Downloading ruby-2.2.0.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/7671e394abfb5d262fbcd3b27a71bf78737c7e9347fa21c39e58b0bb9c4840fc
Installing ruby-2.2.0...
Installed ruby-2.2.0 to ~/.rbenv/versions/2.2.0


$ rbenv global 2.2.0


$ gem install bundler
Fetching: bundler-1.7.9.gem (100%)
Successfully installed bundler-1.7.9
1 gem installed


$ ruby -v
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14]

デフォルトgem

power_assert が増えた

$ gem list
*** LOCAL GEMS ***

bigdecimal (1.2.6)
bundler (1.7.9)
io-console (0.4.3)
json (1.8.1)
minitest (5.4.3)
power_assert (0.2.2)
psych (2.0.8)
rake (10.4.2)
rdoc (4.2.0)
test-unit (3.0.8)

on Rails 4.1.8

$ bundle install --path=vendor/bundle --binstubs=bundle_bin

$ cat .bundle/config
---
BUNDLE_PATH: vendor/bundle
BUNDLE_DISABLE_SHARED_GEMS: '1'
BUNDLE_BIN: bundle_bin

gem の インストール先が変わった

$ ll vendor/bundle/ruby/2.2.0/
2.1.0/  2.2.0/

動くけど・・

なんかでてる

$ rails s
vendor/bundle/ruby/2.2.0/gems/uber-0.0.11/lib/uber/inheritable_attr.rb:25: warning: circular argument reference - uncloneable
warning: you are loading parser/ruby22 from vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'.
warning: Ruby 2.2 is not released yet and parser support may be incomplete.
=> Booting WEBrick
=> Rails 4.1.8 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
[2014-12-26 20:36:19] INFO  WEBrick 1.3.1
[2014-12-26 20:36:19] INFO  ruby 2.2.0 (2014-12-25) [x86_64-darwin14]
[2014-12-26 20:36:19] INFO  WEBrick::HTTPServer#start: pid=70837 port=3000