for application trying upgrade ruby on rails version 3.2.13 4.0.0 , in trouble when installing / updating gem (by using bundler), globalize3 gem. running ruby 2.0.0-p247.
given gemfile is:
gem 'rails', '4.0.0' gem 'globalize3', github: 'svenfuchs/globalize3', branch: 'rails4' gem 'delayed_job', :git => 'git://github.com/collectiveidea/delayed_job.git', :branch => 'master' gem 'delayed_job_active_record', :git => 'git://github.com/collectiveidea/delayed_job_active_record.git', :branch => 'master' # added these gems transition rails4: gem 'protected_attributes' gem 'rails-observers' gem 'actionpack-page_caching' gem 'actionpack-action_caching' gem 'activerecord-deprecated_finders' when run bundle install command in terminal window
then following output:
updating git://github.com/svenfuchs/globalize3.git fetching gem metadata https://rubygems.org/....... fetching gem metadata https://rubygems.org/.. resolving dependencies... bundler not find compatible versions gem "activerecord": in gemfile: globalize3 (>= 0) ruby depends on activerecord (~> 3.0) ruby delayed_job_active_record (>= 0) ruby depends on activerecord (4.0.0) bundler not find compatible versions gem "rails": in gemfile: globalize3 (>= 0) ruby depends on rails (~> 3) ruby rails (4.0.0) when run bundle update command in terminal window
then following output:
updating git://github.com/collectiveidea/delayed_job.git updating git://github.com/collectiveidea/delayed_job_active_record.git updating git://github.com/svenfuchs/globalize3.git fetching gem metadata https://rubygems.org/....... fetching gem metadata https://rubygems.org/.. resolving dependencies... bundler not find compatible versions gem "rails": in gemfile: globalize3 (>= 0) ruby depends on rails (~> 3) ruby rails (4.0.0) bundler not find compatible versions gem "railties": in gemfile: globalize3 (>= 0) ruby depends on railties (~> 3.0) ruby coffee-rails (~> 4.0.0) ruby depends on railties (4.0.0) bundler not find compatible versions gem "actionpack": in gemfile: rails (= 4.0.0) ruby depends on actionpack (= 4.0.0) ruby actionpack-action_caching (>= 0) ruby depends on actionpack (4.0.0.rc2) how can solve problem? globalize3 gem compatible ruby on rails 4? advisable wait upgrading ruby on rails 4?
note: seen #415 upgrading rails 4 railscast , made many searches on internet (the reasonable discussion "globalize3 not work rails4") problem, still in trouble.
the globalize3 gem has been renamed globalize , major version numbers correspond corresponding version of activerecord (3.x ar3 , 4.x ar4).
so need put in gemfile, , should not conflict:
gem 'globalize', '~> 4.0.0.alpha.2' see github repository more details.
Comments
Post a Comment