[rspec-users] RSpec 1.1.9 on JRuby
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:
> 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
> for inspection.
> Results logged to
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
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users