Re: help with running tests for rails using gems
On 06/02/2013 08:34 AM, Christian Hofstaedtler wrote:
Hi,
* Sam Ruby <rubys@intertwingly.net> [130602 13:43]:
On 05/28/2013 02:27 PM, Praveen A wrote:
Hi,
I have been getting stuck trying to build many rails based gems,
shoulda-matchers - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=709431
[..]
Offlist, Praveen pointed me to
git://anonscm.debian.org/pkg-ruby-extras/ruby-shoulda-matchers.git
Running that, the current error is as follows:
/usr/bin/ruby1.9.1: No such file or directory -- /usr/bin/bundle (LoadError)
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in
`gem_original_require': no such file to load -- bundler/setup
(LoadError)
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in
`require'
from /ruby-shoulda-matchers/tmp/aruba/testapp/config/boot.rb:6
[..]
Therefore, the right place to focus is on getting a version of
bundler which play's nice with Debian?
I am not sure what you mean with that. How does the existing
bundler package not help?
If you have a minimal testcase which shows where bundler and/or
rubygems-integration breaks something, I can take a look at that.
Indeed, I may be confused. So lets start over with the latest symptom:
Invalid gemspec in
[/usr/share/rubygems-integration/1.9.1/specifications/actionpack-3.2.13.gemspec]:
Illformed requirement ["~> #<Gem::Version:0x00000001d13660>"]
Invalid gemspec in
[/usr/share/rubygems-integration/1.9.1/specifications/actionpack-3.2.13.gemspec]:
Illformed requirement ["~> #<Gem::Version:0x00000001d13660>"]
Invalid gemspec in
[/usr/share/rubygems-integration/1.8/specifications/actionpack-3.2.13.gemspec]:
Illformed requirement ["~> #<Gem::Version:0x00000001d13660>"]
Invalid gemspec in
[/usr/share/rubygems-integration/1.8/specifications/actionpack-3.2.13.gemspec]:
Illformed requirement ["~> #<Gem::Version:0x00000001d13660>"]
/usr/lib/ruby/vendor_ruby/bundler/resolver.rb:296:in `resolve': Could
not find gem 'rails (= 3.2.13) ruby' in the gems available on this
machine. (Bundler::GemNotFound)
---
Relevant excerpt from the stack trace
from /ruby-shoulda-matchers/tmp/aruba/testapp/config/boot.rb:6
from
/ruby-shoulda-matchers/tmp/aruba/testapp/config/application.rb:1:in
`require'
from /ruby-shoulda-matchers/tmp/aruba/testapp/config/application.rb:1
from
/ruby-shoulda-matchers/spec/../tmp/aruba/testapp/config/environment.rb:2:in
`require'
from
/ruby-shoulda-matchers/spec/../tmp/aruba/testapp/config/environment.rb:2
from /ruby-shoulda-matchers/spec/spec_helper.rb:9:in `require'
from /ruby-shoulda-matchers/spec/spec_helper.rb:9
---
Reproduction instructions:
1. sudo apt-get install git-buildpackage
2. # clone the packaging repo
gbp-clone --pristine-tar
git://anonscm.debian.org/pkg-ruby-extras/ruby-shoulda-matchers.git
3. # install build dependencies (like a bundle install - we need to
capture all dependencies during packaging)
sudo aptitude install debhelper gem2deb rake ruby-jquery-rails \
ruby-coffee-rails ruby-sass-rails ruby-uglifier ruby-actionpack-3.2 \
ruby-rspec bundler
4. # build the package
cd ruby-shoulda-matchers
git-buildpackage
---
C.
- Sam Ruby
Reply to: