Friday, May 25, 2012

Re: [Rails] gemlock and rails version

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 Walker <jez.walker@gmail.com> wrote:


On 26 May 2012 01:20, S Ahmed <sahmed1020@gmail.com> wrote:
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?

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.
 

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.



--
- Aziz M. Bookwala

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate