For some reason my gem file in my rails app shows outdated versions of gems even though i've updated. Ie. gem 'uglifier', '>= 1.0.3' However after running bundle update my terminal showed Using uglifier (1.3.0) Is there a dependency path that is incorrect? How can I make sure my gemfile is using the correct versions? Thanks.
on 2012-09-17 21:45
on 2012-09-17 21:49
On Mon, Sep 17, 2012 at 2:44 PM, wragen22 <email@example.com> wrote: > is using the correct versions? You update the version string in the Gemfile. Just because you run a bundle update does not mean that bundler will alter your Gemfile. Actually that would be a violation of most principles if it did...that is why it has it's own lock file so it does not violate reasonable expectations from developers.
on 2012-09-17 21:52
Ok. Something interesting though. I've updated the version in the gemfile. Then when I run bundle update the gem file is then modified and version reverts back to old versions.
on 2012-09-18 15:52
On 17 September 2012 20:51, wragen22 <firstname.lastname@example.org> wrote: > Ok. Something interesting though. I've updated the version in the gemfile. > Then when I run bundle update the gem file is then modified and version > reverts back to old versions. Gemfile should not be modified when you run bundle update. Gemfile.lock (which you should not manually modify) will get automatically updated. Post Gemfile after you modify it, post the output from bundle update, and post the Gemfile again if you think it gets modified. Also post Gemfile.lock after the bundle update. Colin
on 2012-09-18 17:51
Gemfile here. It looks like it's no longer changing. source "http://rubygems.org" > > group :assets do > > > # gem 'unicorn' > > >> Output > Using activesupport (3.2.8) > > Using actionpack (3.2.8) > > Using coffee-script-source (1.3.3) > > Using sass (3.2.1) > > Using sass-rails (3.2.5) > > Using sqlite3 (1.3.6) > > Using uglifier (1.3.0) > > Your bundle is updated! Use `bundle show [gemname]` to see where a bundled > gem is installed. I'm running into issues when adding these lines here to my gemfile. group :test, :development do gem 'rspec-rails', '~> 2.11' end group :test do gem 'capybara', '1.1.2' end Output shows this when added to the gemfile. Installing nokogiri (1.5.5) with native extensions >> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h >> continue. > > Make sure that `gem install nokogiri -v '1.5.5'` succeeds before bundling. > >