Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't load reek 1.1.3.13 with 1.1.3.10 installed #44

Closed
ashmoran opened this issue Aug 5, 2009 · 3 comments
Closed

Can't load reek 1.1.3.13 with 1.1.3.10 installed #44

ashmoran opened this issue Aug 5, 2009 · 3 comments

Comments

@ashmoran
Copy link

ashmoran commented Aug 5, 2009

Got this in spec_helper.rb:

gem 'kevinrutherford-reek'
require 'reek'
require 'reek/spec'

You get this error:

/opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:149:in `activate': can't activate kevinrutherford-reek (= 1.1.3.10, runtime), already activated kevinrutherford-reek-1.1.3.13 (Gem::Exception)
    from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:35:in `require'

Removing old gems solves it, but it should be able to load?

@kevinrutherford
Copy link
Collaborator

Ah, this may be a breakdown in backwards compatibility. In 1.1.3.13 the spec matchers have moved. Try:

require 'reek/adapters/spec'

Does that work?
(This series of patch releases -- 1.1.3.x -- are working towards a major 1.2 release that will have numerous incompatible changes compared to 1.1; thanks for beta testing them!)

@ashmoran
Copy link
Author

ashmoran commented Aug 5, 2009

Actually it seems to work with require 'reek/spec' even with 1.1.3.13 - as long as the old gem isn't there.

If you're going to be doing a lot more refactoring, can you run the final 1.2 tests (or the interim builds) on a server with 1.1 installed? Sounds like it's simply RubyGems searching too hard for files to load.

Reek seems pretty stable so I've got no issue using beta releases!

@kevinrutherford
Copy link
Collaborator

Will do.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants