Running rake check_dependencies on master gives me
Missing some dependencies. Install them with the following commands:
gem install mocha --version ">= 1.2.9"
But I can't find a mocha release later than 0.9.8: http://rubygems.org/gems/mocha
Nor any mocha derivative projects: http://rubygems.org/search?query=mocha
Am I missing something? This is either an error in what is required or else we should provide some additional documentation for how to get this gem.
Thanks!
Bess
Is the answer to this problem "Start using RVM"?
It seems to be some problem with om (opinionated metadata). I'm using om 0.1.10 in both cases. I can re-create the bug like this:
[root@sdr-fedora-dev bess]# irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'om'
SyntaxError: /usr/lib/ruby/gems/1.8/gems/facets-2.8.4/lib/core/facets/objectspace/reflect.rb:34: syntax error
Functor.new do |meth, *a, &b|
^
/usr/lib/ruby/gems/1.8/gems/facets-2.8.4/lib/core/facets/objectspace/reflect.rb:39: syntax error
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/facets-2.8.4/lib/core/facets/objectspace.rb:4
from /usr/lib/ruby/gems/1.8/gems/facets-2.8.4/lib/core/facets/objectspace.rb:3:in `each'
from /usr/lib/ruby/gems/1.8/gems/facets-2.8.4/lib/core/facets/objectspace.rb:3
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/facets-2.8.4/lib/core/facets.rb:4
from /usr/lib/ruby/gems/1.8/gems/facets-2.8.4/lib/core/facets.rb:2:in `each'
from /usr/lib/ruby/gems/1.8/gems/facets-2.8.4/lib/core/facets.rb:2
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/gems/1.8/gems/om-0.1.10/lib/om.rb:4
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from (irb):2
On my local laptop the same commands work fine:
anon-36-189:hydrangea bess$ irb
ruby-1.8.7-p174 > require 'rubygems'
=> true
ruby-1.8.7-p174 > require 'om'
=> true
Bess
> --
> You received this message because you are subscribed to the Google Groups "ActiveFedora / Ruby + Fedora Commons" group.
> To post to this group, send email to active...@googlegroups.com.
> To unsubscribe from this group, send email to active-fedor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/active-fedora?hl=en.
>
It seems OM installed facets (it's dependency is marked as > 0). The
newest version of facets (2.8.4) does not seem to work with Ruby 1.8.6
(which some of our servers are still running). Although facets
documentation says it's compatible with 1.8.6, that does not seem to be
the case.
I've tested this out on my laptop using rvm versions of ruby 1.8.6 and
1.8.7 .
I installed facets 2.7.0 and everything seems to work fine.
best,chris.
>>> <mailto:active...@googlegroups.com>.
>>> To unsubscribe from this group, send email to
>>> active-fedor...@googlegroups.com
>>> <mailto:active-fedor...@googlegroups.com>.
>>> For more options, visit this group at
>>> http://groups.google.com/group/active-fedora?hl=en.
>>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "ActiveFedora / Ruby + Fedora Commons" group.
>> To post to this group, send email to active...@googlegroups.com
>> <mailto:active...@googlegroups.com>.
>> To unsubscribe from this group, send email to
>> active-fedor...@googlegroups.com
>> <mailto:active-fedor...@googlegroups.com>.
Matt, can we get the requirement for om changed so it requires facets 2.7.0 specifically?
Thanks!
Bess
Looks like I might have spoken too soon....I ran rake spec in the om gem
directory and am getting a number of failures when using ruby 1.8.6
(with facets 2.7.0 installed)
However, when I switch to 1.8.7 (with facets 2.8.4), it looks like all
the tasks pass.
The tests for Active Fedora 1.1.13 look like they pass for both ruby
1.8.6 and 1.8.7.
So, I'd say the fix is to use ruby 1.8.7 if you're using the om gem.
Apologize about the confusion .
best,chris.