rubygems 1.5.0 hits F-15

Vít Ondruch vondruch at redhat.com
Thu Feb 10 09:26:25 UTC 2011


Dne 9.2.2011 20:36, Mamoru Tasaka napsal(a):
> Hello, all:
>
> I have updated rubygems to 1.5.0. If you see some issues with new rubygems,
> please feel free to file bugs.
>
> Some notes I have noticed for now:
> - Some gem based packages install ruby wrapper scripts under /usr/bin which contain
>    something like
> -----------------------------------------------------------------
> #!/usr/bin/ruby
> # This file was generated by RubyGems.
>
> require 'rubygems'
> version = ">= 0"
> if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then
>    version = $1
>    ARGV.shift
> end
>
> gem 'foo', version
> load 'foo'
> -----------------------------------------------------------------
>    The last line "load 'foo'" style is now obsolete and rubygems 1.5.0 will
>    no longer accept this.

Just for clarity, this was replaced by new syntax:

load Gem.bin_path('rake', 'rake', version)


Vit



More information about the ruby-sig mailing list