[DRE-maint] Bug#741331: Bug#741331: ruby-rspec-puppet - Fails to find rspec: Could not find rspec (>= 2.0.0) amongst [] (Gem::LoadError)

Stig Sandbeck Mathisen ssm at debian.org
Mon Mar 17 11:23:48 UTC 2014


bastian.blank at credativ.de writes:

> The bug is here:
>> |         from /usr/lib/ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
>> |         from /usr/lib/ruby/1.9.1/rubygems.rb:1231:in `gem'
>> |         from /usr/lib/ruby/vendor_ruby/puppetlabs_spec_helper/puppet_spec_helper.rb:10:in `<top (required)>'
>
> Installing rubygems-integration makes it work, so
> ruby-puppetlabs-spec-helper lacks this dependency or should not use
> gems in this state, as plain loading works also.

Thanks.

I've added a patch in the packaging repository which fixes this issue by
loading rspec using "require", and not with "gem".

Using the package built with this patch seems to work fine, without
"rubygems-integration" installed.

If it doesn't cause any trouble, it'll make the next upload. :)

-- 
Stig Sandbeck Mathisen



More information about the Pkg-ruby-extras-maintainers mailing list