Git Product home page Git Product logo

Comments (10)

byrnejb avatar byrnejb commented on May 28, 2024

I have run into the same issue. Email_spec 1.0.0 fails with missing require:

 --profile default
Using the default profile...
no such file to load -- rspec
/home/byrnejb/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/home/byrnejb/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:158:in `require'
/home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/email_spec-1.0.0/lib/email_spec.rb:8
/home/byrnejb/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/home/byrnejb/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:158:in `require'
/home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/rails-2.3.8/lib/rails/gem_dependency.rb:215:in `load'
/home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/rails-2.3.8/lib/initializer.rb:307:in `load_gems'
/home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/rails-2.3.8/lib/initializer.rb:307:in `each'
/home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/rails-2.3.8/lib/initializer.rb:307:in `load_gems'
/home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/rails-2.3.8/lib/initializer.rb:169:in `process'
/home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/rails-2.3.8/lib/initializer.rb:113:in `send'
/home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/rails-2.3.8/lib/initializer.rb:113:in `run'
/home/byrnejb/Software/Development/Projects/proforma.git/config/environment.rb:17
/home/byrnejb/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/home/byrnejb/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/home/byrnejb/Software/Development/Projects/proforma.git/features/support/env.rb:8
/home/byrnejb/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/home/byrnejb/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/cucumber-0.8.5/bin/../lib/cucumber/rb_support/rb_language.rb:141:in `load_code_file'
/home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/cucumber-0.8.5/bin/../lib/cucumber/step_mother.rb:108:in `load_code_file'
/home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/cucumber-0.8.5/bin/../lib/cucumber/step_mother.rb:100:in `load_code_files'
/home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/cucumber-0.8.5/bin/../lib/cucumber/step_mother.rb:99:in `each'
/home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/cucumber-0.8.5/bin/../lib/cucumber/step_mother.rb:99:in `load_code_files'
/home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/cucumber-0.8.5/bin/../lib/cucumber/cli/main.rb:53:in `execute!'
/home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/cucumber-0.8.5/bin/../lib/cucumber/cli/main.rb:25:in `execute'
/home/byrnejb/.rvm/gems/ruby-1.8.7-p249/gems/cucumber-0.8.5/bin/cucumber:8
Missing these required gems:
  email_spec  >= 0.6.0

You're running:
  ruby 1.8.7.249 at /home/byrnejb/.rvm/rubies/ruby-1.8.7-p249/bin/ruby
  rubygems 1.3.7 at /home/byrnejb/.rvm/gems/ruby-1.8.7-p249, /home/byrnejb/.rvm/gems/ruby-1.8.7-p249@global

Run `rake gems:install` to install the missing gems.
rake aborted!
Command failed with status (1): [/home/byrnejb/.rvm/rubies/ruby-1.8.7-p249/...]

$ gem list
*** LOCAL GEMS ***

actionmailer (2.3.8, 2.3.5)
.  .  .
cucumber (0.8.5)
cucumber-rails (0.3.2)
culerity (0.2.10)
database_cleaner (0.5.2)
.  .  .
email_spec (1.0.0, 0.6.2, 0.3.0)
.  .  .
rspec (1.3.0)
rspec-rails (1.3.2)
.  .  .
webrat (0.7.1)
$
$ spec
Usage: spec (FILE(:LINE)?|DIRECTORY|GLOB)+ [options]

from email-spec.

doon avatar doon commented on May 28, 2024

Email_spec 1.0 is for rails3/rspec 2. From history.txt

== 1.0 2010-07-31 Rails 3.0 Release
This release makes email-spec compatible with Rails 3 and RSpec 2.x.

IMPORTANT: As of 1.0 email-spec is no longer backwards compatible wit Rails 2.x. I will be maintaining a 0.6
branch on github/rubygems for Rails 2 compatibility if anyone wants new features backported.

So either use 0.6.x gems, or the 0.6-rails2-compat branch here...

from email-spec.

byrnejb avatar byrnejb commented on May 28, 2024

Since neither Rails 3 nor RSpec 2 are as yet in general release, putting this gem out as an update is a bit premature, don't you think? It seems so to me. Why not send it to RubyGems as a pre-release instead? Then those that are working with RoR3 and RSpec2 both can get it and those that are not do not have to accommodate yet another exception

from email-spec.

fullofcaffeine avatar fullofcaffeine commented on May 28, 2024

I completely agree with byrnejb. I just lost an hour trying to find out why my test suite suddenly started breaking, and ended up it was email_spec. Don't get me wrong, it's a great lib, but I don't think you should have been updated it on the general release branch for Rails 3 just now.

from email-spec.

 avatar commented on May 28, 2024

And what's even worse the gem does not declare its dependencies. If it declared them then bundler would be able to detect that a newer rspec version is required.

from email-spec.

danielfone avatar danielfone commented on May 28, 2024

+1 here. Fortunately this thread showed up in google before too much time was wasted. Even a warning in the README would help.

from email-spec.

byrnejb avatar byrnejb commented on May 28, 2024

Now this same problem has been back-ported to the 0.6.x branch with the latest 0.6.4 release running under Ruby-1.9.2 (which must use RSpec-1.3.0). Although Rails-3.0.0 is in general release RSpec-2.0.0 is still in beta.

from email-spec.

elia avatar elia commented on May 28, 2024

@bmabey you should yank the 1.0.0 version and issue a 1.0.1 with the added deps, otherwise bundler can't figure out the right gem to install for rails2/rspec1

from email-spec.

elia avatar elia commented on May 28, 2024

Done that in #88

from email-spec.

bmabey avatar bmabey commented on May 28, 2024

This was already addressed in new versions of email-spec IIRC. None the less, I've done as @elia reccomended and yanked the 1.0.0 release and published a 1.0.1 version. Hopefully people haven't locked the the exact 1.0.0 version...

from email-spec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.