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

noreply at rubyforge.org noreply at rubyforge.org
Sun Sep 12 16:33:04 EDT 2010


Bugs item #28411, was opened at 2010-07-20 21: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: James Tucker (raggi)
Date: 2010-09-12 20:33

Message:
Fixed.

http://github.com/rubygems/rubygems/commit/18b1d2d4b57abd1b7adee0215c04e4faaed781b0

Thanks Roger. If you are able to notify the rspec folks that this is fixed in future, that would be good.

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

Comment By: James Tucker (raggi)
Date: 2010-07-22 10:57

Message:
This is definitely a bug in rubygems, although not entirely trivial to solve. I will have a think about it, certainly bin_path should make it easier.

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

Comment By: Marcus Rueckert (darix)
Date: 2010-07-21 10: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 10: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 01: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-20 22: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