Gemlock and rails version

Trying to understand how the version of rails is handled in the gem
file,
if you do:

gem “rails”

and call bundle, it from what I understand will pull down the latest
stable
release right?

And then a gemlock file is created, which will contain the version
number
so any future calls to bundle will get the same version (it will just be
ignored).

So if you want to upgrade you have to delete the gemlock line with rails
right?

On 26 May 2012 01:20, S Ahmed [email protected] wrote:

so any future calls to bundle will get the same version (it will just be
ignored).

So if you want to upgrade you have to delete the gemlock line with rails
right?

You can just run “bundle update” to update all the gems to the latest
version.

You can also specify a specific version of a gem in your Gemfile with:
gem rails “3.2.3”

Running bundle install will then install that specific version.

You don’t need to every really worry about touching the lock file -
bundler
will handle that for you.

To add to that Jeremy said, you could use:

bundle update rails

To update just rails.

On Sat, May 26, 2012 at 6:10 AM, Jeremy W. [email protected]
wrote:

stable release right?
You can just run “bundle update” to update all the gems to the latest


You received this message because you are subscribed to the Google G.
“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

  • Aziz M. Bookwala

Website http://azizmb.in/ | Twitter https://twitter.com/azizbookwala
|
Github http://github.com/azizmb