I realize “releases with a 4th partial [are] interim (unofficial)
release[s]” and I should use them at my own risk. Could someone
kindly provide fairly explicit instructions for getting RSpec running
with 2.3 RC1? I suspect I’m making things more difficult than they
are.
If needed I can post error messages, but I’m not sure I’m on the right
path to start with, so I don’t think that would be helpful.
spec spec/models/html_page_spec.rb
/opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:636:in report_activate_error': RubyGem version error: rspec(1.1.99.9 not = 1.1.11.1) (Gem::LoadError) from /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:141:inactivate’
from /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:165:in activate' from /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:164:ineach’
from /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:164:in activate' from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:35:inrequire’
from
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.0/lib/active_support/dependencies.rb:158:in require' from ./spec/models/../spec_helper.rb:6 from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:ingem_original_require’
… 7 levels…
from
/opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.99.9/lib/spec/runner/command_line.rb:9:in run' from /opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.99.9/bin/spec:4 from /opt/local/bin/spec:19:inload’
from /opt/local/bin/spec:19
OK - I know what the cause might be here. Do me a favor and repeat
that process please (using pull instead of clone - I just pushed some
code to github) and let me know if you still have a problem.
I pulled both repos and tried ‘rake gem’ but got ‘permission denied’
‘sudo rake gem’ worked:
~/work/rspec (master) $ rake gem
(in /Users/george/work/rspec)
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/gempackagetask.rb:13:Warning:
Gem::manage_gems is deprecated and will be removed on or after March
2009.
Successfully built RubyGem
Name: rspec
Version: 1.1.99.9
File: rspec-1.1.99.9.gem
mv rspec-1.1.99.9.gem pkg/rspec-1.1.99.9.gem
rake aborted!
Permission denied - rspec-1.1.99.9.gem or pkg/rspec-1.1.99.9.gem
(See full trace by running task with --trace)
~/work/rspec (master) $ sudo rake gem
(in /Users/george/work/rspec)
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/gempackagetask.rb:13:Warning:
Gem::manage_gems is deprecated and will be removed on or after March
2009.
Successfully built RubyGem
Name: rspec
Version: 1.1.99.9
File: rspec-1.1.99.9.gem
mv rspec-1.1.99.9.gem pkg/rspec-1.1.99.9.gem
same with ‘rake install_gem’ (required sudo)
After re-running “script/generate rspec” it still fails:
it:pdf_revisions!stc_partner_plan> spec spec/models/html_page_spec.rb
/opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:636:in report_activate_error': RubyGem version error: rspec(1.1.99.9 not = 1.1.11.1) (Gem::LoadError) from /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:141:inactivate’
from /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:165:in activate' from /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:164:ineach’
from /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:164:in activate' from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:35:inrequire’
from
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.0/lib/active_support/dependencies.rb:158:in require' from ./spec/models/../spec_helper.rb:6 from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:ingem_original_require’
… 7 levels…
from
/opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.99.9/lib/spec/runner/command_line.rb:9:in run' from /opt/local/lib/ruby/gems/1.8/gems/rspec-1.1.99.9/bin/spec:4 from /opt/local/bin/spec:19:inload’
from /opt/local/bin/spec:19
Is something in your app is requiring version 1.1.11.1 in specific?
Negative.
That was my thought too, but no such requirement exists.
Gotta be coming from somewhere. May not be in your app, but something
somewhere on your machine is requiring rspec-1.1.11.1, otherwise we
wouldn’t be getting that error. What about other gems you might be
using?