Fix bundler and rake #5

Merged
merged 3 commits into from Mar 7, 2012

Conversation

Projects
None yet
2 participants
Contributor

apohllo commented Mar 6, 2012

I had some problems running the Rake tasks. I suppose it was due to the require 'bundler' entry in the Rakefile. I made some require reorderings, added a dependency on rake-compiler task and also defined cleaning and compilation as a dependencies for spec. Now everything seems to work fine.

Owner

igrigorik commented Mar 7, 2012

Weird, works just fine on this end, but your changes work as well.. scratches head

@igrigorik igrigorik added a commit that referenced this pull request Mar 7, 2012

@igrigorik igrigorik Merge pull request #5 from apohllo/fix-bundler-and-rake
Fix bundler and rake
91ec1ab

@igrigorik igrigorik merged commit 91ec1ab into igrigorik:master Mar 7, 2012

Contributor

apohllo commented Mar 7, 2012

I had problems like this:

/usr/local/rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/runtime.rb:31:in`block in setup': You have already activated rspec-core 2.8.0, but your Gemfile requires rspec-core 2.5.1. Using bundle exec may solve this. (Gem::LoadError)
    from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/runtime.rb:17:in `setup'
    from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler.rb:110:in`setup'
    from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/setup.rb:7:in `<top (required)>'
    from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in`require'

<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- helper (LoadError)
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from spec/native_spec.rb:1:in `<main>'````

```rake spec
/usr/local/rvm/rubies/ruby-1.9.2-p290/bin/ruby -S rspec ./spec/native_spec.rb ./spec/counting_redis_spec.rb ./spec/redis_spec.rb
/usr/local/rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/runtime.rb:31:in `block in setup': You have already activated rspec-core 2.8.0, but your Gemfile requires rspec-core 2.5.1. Using bundle exec may solve this. (Gem::LoadError)
    from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/runtime.rb:17:in `setup'
    from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler.rb:110:in `setup'
    from /usr/local/rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.21/lib/bundler/setup.rb:7:in `<top (required)>'
    from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `require'
    from /usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'````

```bundle exec ruby spec/native_spec.rb 
spec/native_spec.rb:1:in `require': no such file to load -- helper (LoadError)
    from spec/native_spec.rb:1:in `<main>'
/home/fox/src/nlp/wsd/bloomfilter-rb/lib/bloomfilter-rb.rb:4:in`require': no such file to load -- cbloomfilter (LoadError)
    from /home/fox/src/nlp/wsd/bloomfilter-rb/lib/bloomfilter-rb.rb:4:in `<top (required)>'
    from spec/native_spec.rb:2:in`require'
    from spec/native_spec.rb:2:in `<main>'

but now when I call bundle exec rake spec everything works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment