Hello,
I have a may be dummy question:
Is it possible to switch between versions of an installed gem without need to uninstall the newer versions.
Regards,
Ivan Cenov
Hello,
I have a may be dummy question:
Is it possible to switch between versions of an installed gem without need to uninstall the newer versions.
Regards,
Ivan Cenov
Is it possible to switch between versions of an installed gem without need to uninstall the newer versions.
Yes.
For regular ol’ library gems, just specify different versions in your Gemfile, run `bundle` to set up the `Gemfile.lock`, and use `bundle exec` with your command-line tools to set up the environment right.
If you want to use a specific gem’s version of a command-line tool, i.e. you want to run `sass` with `3.4.18`, you can add the version as a first argument to the command line, surrounded by underscores:
> sass --version
Sass 3.4.21 (Selective Steve)
> sass _3.4.18_ --version
Sass 3.4.18 (Selective Steve)
My question: where is that underscore behavior documented? I first learned about it from a tweet, which isn’t useful for anyone else.
On 8 Feb 2016, at 10:47, Ivan Cenov wrote:
Yes, In case you want the bleeding edge of the version you can even directly pull from that using git:”path-to-repository” option. Otherwise, you can specify the version number as “~>x.x.x” and run bundle install. It would overwrite the gem. Also, I recommend using RVM or RBenv.
On 08-Feb-2016, at 9:17 PM, Ivan Cenov <i_cenov@botevgrad.com> wrote:
Hello,
I have a may be dummy question:
Is it possible to switch between versions of an installed gem without need to uninstall the newer versions.Regards,
Ivan Cenov
Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
@Ivan,
if you need a specific library version in a simple script and do not
want to use a Gemfile and bundler, you can use the Kernel#gem method
directly in your script:
gem "mygem", "= 3.1.4"
Regards,
Marcus
Am 08.02.2016 um 17:04 schrieb Bryce Kerley:
On 8 Feb 2016, at 10:47, Ivan Cenov wrote:
Is it possible to switch between versions of an installed gem
without need to uninstall the newer versions.Yes.
For regular ol’ library gems, just specify different versions in your
Gemfile, run |bundle| to set up the |Gemfile.lock|, and use |bundle
exec> with your command-line tools to set up the environment right.
--
GitHub: stomar (Marcus Stollsteimer) · GitHub
PGP: 0x6B3A101A
На 13.2.2016 г. в 12:15 ч., sto.mar@web.de написа:
@Ivan,
if you need a specific library version in a simple script and do not
want to use a Gemfile and bundler, you can use the Kernel#gem method
directly in your script:gem "mygem", "= 3.1.4"
Regards,
Marcus
Hi,
In my case, I use an old version of a gem (ceedling). However I modified it for my needs.
I have rakefile.rb in the folder where I start this gem. The content of this rakefile.rb is
require 'ceedling'
I want to upgrade to the new version of the gem 'ceedling' and modify it for my needs
and I also want to keep the old version meanwhile.
I start the gem by
ruby.exe "path_to_ruby\bin\rake" test:all
--
Regards,
and let's make better business with http://www.redmine.org
Ivan Cenov
OKTO-7 Ltd. Bulgaria
imc@okto7.com, i_cenov@botevgrad.com
mobile:+359888761080,
phone:+35972366161, fax:+35972366262