[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: help with running tests for rails using gems



2013/6/2 Sam Ruby <rubys@intertwingly.net>:
> On 06/02/2013 11:16 AM, Christian Hofstaedtler wrote:
>> This does not include actually installing *rails*.
>>
>> This is a problem of broken build-dependencies in ruby-shoulda-matchers
>> (which needs to add ruby-rails-3.2).
>
> I'm getting conflicting input between you and Praveen, and I have a lot to
> learn.  Meanwhile, here is some data that might be helpful.
>
> 5. sudo apt-get install ruby-rails-3.2 ruby-sqlite3

Sam,

also add these two packages in Build-Depends of debian/control file.

> 6. git-buildpackage
>
> Produces the following symptoms:
>
>> 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:130:in `resolve': Could not
>> find gem 'actionpack (= 3.2.13) ruby', which is required by gem 'rails (=
>> 3.2.13) ruby', in any of the sources. (Bundler::VersionConflict)

We should not be using bundler or rubygems at all. So create a quilt
patch and comment out all usage of bundler and rubygems like require
'rubygems', require 'bundler/setup', Bundler.require etc.

See http://wiki.debian.org/Diaspora/Packaging/quilt for using quilt.
--
പ്രവീണ്‍ അരിമ്പ്രത്തൊടിയില്‍
You have to keep reminding your government that you don't get your
rights from them; you give them permission to rule, only so long as
they follow the rules: laws and constitution.


Reply to: