[rspec-users] RSpec 1.1.9 on JRuby

David Chelimsky dchelimsky at gmail.com
Thu Oct 23 09:58:53 EDT 2008


On Thu, Oct 23, 2008 at 7:43 AM, Ashley Moran
<ashley.moran at patchspace.co.uk> wrote:
> Hi
>
> Can you use RSpec 1.1.9 on JRuby? Now it depends on spicycode-rcov, I can't
> install it:
>
> # jgem install rspec --development
> Building native extensions.  This could take a while...
> ERROR:  Error installing rspec:
>        ERROR: Failed to build gem native extension.
>
> /opt/local/share/java/jruby/bin/jruby extconf.rb install rspec --development
>
>
> Gem files will remain installed in
> /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/spicycode-rcov-0.8.1.3.0
> for inspection.
> Results logged to
> /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/spicycode-rcov-0.8.1.3.0/ext/rcovrt/gem_make.out

For rspec-1.1.9 you have to be on rubygems 1.3 to avoid those
dependencies (as they are developer deps and I just used hoe to create
the gemspec, which makes them normal deps for rubygems <= 1.2).

I'll make sure that dep is not there for the next rspec release, but
in the mean time, upgrading to rubygems 1.3 and reinstalling rspec
will solve your problem. That assumes that there is a jgem-1.3. If
not, you can probably do this:

git clone git://github.com/dchelimsky/rspec.git
git co 1.1.9

Then modify rspec.gemspec to eliminate the dependency and build the gem locally:

jgem build rspec.gemspec
jgem install pkg/rspec-1.1.9.gem

HTH,
David


>
> Thanks
> Ashley
>
> --
> http://www.patchspace.co.uk/
> http://aviewfromafar.net/
>
>
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list