[Rubygems-developers] [ rubygems-Bugs-28411 ] unable to run a gem bin/xxx when newer version

noreply at rubyforge.org noreply at rubyforge.org
Wed Jul 21 06:36:40 EDT 2010


Bugs item #28411, was opened at 2010-07-20 23:41
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=28411&group_id=126

Category: #gem and #require methods
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Roger Pack (rogerdpack)
Assigned to: Nobody (None)
Summary: unable to run a gem bin/xxx when newer version

Initial Comment:
Here's what occurs currently:
$ gem install rspec
$ gem install rspec --pre
$ spec

c:/ruby19/lib/ruby/site_ruby/1.9.1/rubygems.rb:335:in `bin_path': can't find executable spec for rspec-2.0.0.beta.17 (Gem::Exception)
        from c:/ruby19/lib/ruby/site_ruby/1.9.1/faster_rubygems/prelude_bin_path.rb:44:in `bin_path'
        from c:/ruby19/bin/spec:19:in `<main>'


Unless there's a new requirement I'm not aware of that newer versions *have* to have any binary scripts that all previous versions had.

Thanks much.
-r

----------------------------------------------------------------------

Comment By: Marcus Rueckert (darix)
Date: 2010-07-21 12:36

Message:
and maybe document the requirement that you cant change the package of a script without breaking older versions.

----------------------------------------------------------------------

Comment By: Marcus Rueckert (darix)
Date: 2010-07-21 12:35

Message:
for the same reason the rails team moved the wrapper script back from railties to the rails package. as it also broke older rails versions.

So I would say close this bug and open a bug with the rspec team.

----------------------------------------------------------------------

Comment By: Roger Pack (rogerdpack)
Date: 2010-07-21 03:39

Message:
The spec stub can't but Gem.bin_path could, I believe, by 
looking it up in the gemspecs.


----------------------------------------------------------------------

Comment By: Luis Lavena (luislavena)
Date: 2010-07-21 00:33

Message:
rspec prerelease include the binary in rspec-core and is named rspec, not spec anymore.

http://github.com/rspec/rspec-core/blob/master/rspec-core.gemspec#L16

The spec stub:


gem 'rspec', version
load Gem.bin_path('rspec', 'spec', version)

Can't know that rspec gem no longer provide the binary needed.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=28411&group_id=126


More information about the Rubygems-developers mailing list