buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Boisvert <alex.boisv...@gmail.com>
Subject Re: Buildr and Cucumber
Date Mon, 21 Jun 2010 18:05:20 GMT
The issue has to do with Gem initialization order...

Easiest would probably to edit the gemspec to allow this combination.  (On
my system, it's located under /usr/lib/ruby/gems/1.8/gems/buildr-1.4.0/;
your system may place gems elsewhere)

Index: buildr.gemspec
===================================================================
--- buildr.gemspec    (revision 954999)
+++ buildr.gemspec    (working copy)
@@ -48,12 +48,12 @@

   # Tested against these dependencies.
   spec.add_dependency 'rake',                 '0.8.7'
   spec.add_dependency 'builder',              '2.1.2'
   spec.add_dependency 'net-ssh',              '2.0.15'
   spec.add_dependency 'net-sftp',             '2.0.2'
   spec.add_dependency 'rubyzip',              '0.9.1'
   spec.add_dependency 'highline',             '1.5.1'
-  spec.add_dependency 'json_pure',            '1.4.0'
+  spec.add_dependency 'json_pure',            '>= 1.4.0'
   spec.add_dependency 'rubyforge',            '2.0.3'
   spec.add_dependency 'hoe',                  '2.3.3'
   spec.add_dependency 'rjb',                  '1.2.5' if spec.platform.to_s
== 'ruby'

alex

On Mon, Jun 21, 2010 at 10:25 AM, Duncan McGregor <duncan@oneeyedmen.com>wrote:

> Hi
>
> I'm trying Buildr for a new project and very much liking what I find (usual
> ant / Maven refugee status applies).
>
> I'd like to run some Cucumber tests using Buildr under JRuby on MacOs. But
> when I
>
> require 'cucumber'
>
> in my buildfile, I get
>
> Gem::LoadError : can't activate json_pure (~> 1.4.3, runtime) for
> ["cucumber-0.8.3"], already activated json_pure-1.4.0 for
> ["buildr-1.4.0-java"]
>
> I've used Cucumber under Rake and 'normal' Ruby without incident, but
> obviously without such nice Java support. Can suggest how to persuade buildr
> to use a later version of json_pure?
>
> Cheers
>
> Duncan McGregor
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message