Return-Path: Delivered-To: apmail-buildr-users-archive@www.apache.org Received: (qmail 39269 invoked from network); 21 Jun 2010 18:05:47 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Jun 2010 18:05:47 -0000 Received: (qmail 44128 invoked by uid 500); 21 Jun 2010 18:05:47 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 43999 invoked by uid 500); 21 Jun 2010 18:05:47 -0000 Mailing-List: contact users-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@buildr.apache.org Delivered-To: mailing list users@buildr.apache.org Received: (qmail 43991 invoked by uid 99); 21 Jun 2010 18:05:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jun 2010 18:05:47 +0000 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=AWL,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alex.boisvert@gmail.com designates 209.85.212.44 as permitted sender) Received: from [209.85.212.44] (HELO mail-vw0-f44.google.com) (209.85.212.44) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jun 2010 18:05:41 +0000 Received: by vws15 with SMTP id 15so2144060vws.17 for ; Mon, 21 Jun 2010 11:05:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=9xReVN7KjBGmM9s3WSZtpjLq0ceWj8LCtu08ZTTKkeY=; b=nkSvO0GMtz6mCfafxdDxfp1UP8Fy3E9Sl5QuXVxpgCUexzGOE/3dLY4wN3F8ffSv+P vdKjitBP5pZmju2MlZjO9pbGdERujQs55CzLlbR4nW3cNE8jHAST3e4Qayc+QAEjMlTT 7R7AY2jm8n71Y7dsca/fbUMhw17ob9ud8IERY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=SVyG2cn2Iq2CdwbG+MvoLNd3qyts2mrbZbdQ/G3qmd3dpuZSHateQ08lMhKEQkTUV2 5IFyF8l207++4NclKNyFYiSkPKFS/Sqhe64crNI/EXLV1eBiCyuDvE7oSuJwq9OxiFpn hpXwxAaFmaJA8V+bqtt6zHNXoGUN4LWG5NjDI= MIME-Version: 1.0 Received: by 10.224.65.29 with SMTP id g29mr3363179qai.262.1277143520849; Mon, 21 Jun 2010 11:05:20 -0700 (PDT) Received: by 10.229.211.140 with HTTP; Mon, 21 Jun 2010 11:05:20 -0700 (PDT) In-Reply-To: References: Date: Mon, 21 Jun 2010 11:05:20 -0700 Message-ID: Subject: Re: Buildr and Cucumber From: Alex Boisvert To: users@buildr.apache.org Content-Type: multipart/alternative; boundary=001636137a78e3302e04898e25c4 --001636137a78e3302e04898e25c4 Content-Type: text/plain; charset=ISO-8859-1 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 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 > > > --001636137a78e3302e04898e25c4--