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

Gem doesn't specify its dependencies #11

Open
thoughtless opened this issue May 31, 2011 · 2 comments
Open

Gem doesn't specify its dependencies #11

thoughtless opened this issue May 31, 2011 · 2 comments

Comments

@thoughtless
Copy link

This is fairly minor because the use cases aren't all that common, but when I tried running bundle console while using this gem, I got this error:

$ bundle console
/home/mc/app/releases/2011-05-31_22-51-07Z/vendor/bundle/ruby/1.9.1/gems/validates_existence-0.6.2/lib/validates_existence.rb:3:in `<top (required)>': uninitialized constant ActiveRecord (NameError)

I believe this is because active_record is not listed as a dependency in the gemspec.

@kritik
Copy link
Member

kritik commented Dec 17, 2013

This gem doesn't have Gemfile inside that's why you had this problem.

Usually it is ok to work in ruby. Do you have any use-case where it is not?

@openface
Copy link

openface commented May 9, 2014

I hit a similar problem with bundle console and this gem.

$ bundle console
Unfortunately, a fatal error has occurred. Please see the Bundler troubleshooting documentation at http://bit.ly/bundler-issues. Thanks!
/u/jhines/.rvm/gems/ruby-2.1.1@burt_api_server/gems/activerecord-4.0.2/lib/active_record/core.rb:90:in `block in <module:Core>': uninitialized constant ActiveRecord::ConnectionAdapters::ConnectionHandler (NameError)
        from /u/jhines/.rvm/gems/ruby-2.1.1@burt_api_server/gems/activesupport-4.0.2/lib/active_support/concern.rb:114:in `class_eval'
        from /u/jhines/.rvm/gems/ruby-2.1.1@burt_api_server/gems/activesupport-4.0.2/lib/active_support/concern.rb:114:in `append_features'
        from /u/jhines/.rvm/gems/ruby-2.1.1@burt_api_server/gems/activerecord-4.0.2/lib/active_record/base.rb:319:in `include'
        from /u/jhines/.rvm/gems/ruby-2.1.1@burt_api_server/gems/activerecord-4.0.2/lib/active_record/base.rb:319:in `<class:Base>'
        from /u/jhines/.rvm/gems/ruby-2.1.1@burt_api_server/gems/activerecord-4.0.2/lib/active_record/base.rb:281:in `<module:ActiveRecord>'
        from /u/jhines/.rvm/gems/ruby-2.1.1@burt_api_server/gems/activerecord-4.0.2/lib/active_record/base.rb:22:in `<top (required)>'
        from /u/jhines/.rvm/gems/ruby-2.1.1@burt_api_server/gems/validates_existence-0.9.2/lib/validates_existence.rb:85:in `<top (required)>'
        from /u/jhines/.rvm/gems/ruby-2.1.1@burt_api_server/gems/bundler-1.6.2/lib/bundler/runtime.rb:76:in `require'
        from /u/jhines/.rvm/gems/ruby-2.1.1@burt_api_server/gems/bundler-1.6.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
        from /u/jhines/.rvm/gems/ruby-2.1.1@burt_api_server/gems/bundler-1.6.2/lib/bundler/runtime.rb:72:in `each'
        from /u/jhines/.rvm/gems/ruby-2.1.1@burt_api_server/gems/bundler-1.6.2/lib/bundler/runtime.rb:72:in `block in require'
        from /u/jhines/.rvm/gems/ruby-2.1.1@burt_api_server/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:in `each'
        from /u/jhines/.rvm/gems/ruby-2.1.1@burt_api_server/gems/bundler-1.6.2/lib/bundler/runtime.rb:61:in `require'
        from /u/jhines/.rvm/gems/ruby-2.1.1@burt_api_server/gems/bundler-1.6.2/lib/bundler.rb:132:in `require'
        from /u/jhines/.rvm/gems/ruby-2.1.1@burt_api_server/gems/bundler-1.6.2/lib/bundler/cli/console.rb:11:in `run'
        from /u/jhines/.rvm/gems/ruby-2.1.1@burt_api_server/gems/bundler-1.6.2/lib/bundler/cli.rb:287:in `console'
        from /u/jhines/.rvm/gems/ruby-2.1.1@burt_api_server/gems/bundler-1.6.2/lib/bundler/vendor/thor/command.rb:27:in `run'
        from /u/jhines/.rvm/gems/ruby-2.1.1@burt_api_server/gems/bundler-1.6.2/lib/bundler/vendor/thor/invocation.rb:121:in `invoke_command'
        from /u/jhines/.rvm/gems/ruby-2.1.1@burt_api_server/gems/bundler-1.6.2/lib/bundler/vendor/thor.rb:363:in `dispatch'
        from /u/jhines/.rvm/gems/ruby-2.1.1@burt_api_server/gems/bundler-1.6.2/lib/bundler/vendor/thor/base.rb:440:in `start'
        from /u/jhines/.rvm/gems/ruby-2.1.1@burt_api_server/gems/bundler-1.6.2/lib/bundler/cli.rb:9:in `start'
        from /u/jhines/.rvm/gems/ruby-2.1.1@burt_api_server/gems/bundler-1.6.2/bin/bundle:20:in `block in <top (required)>'
        from /u/jhines/.rvm/gems/ruby-2.1.1@burt_api_server/gems/bundler-1.6.2/lib/bundler/friendly_errors.rb:5:in `with_friendly_errors'
        from /u/jhines/.rvm/gems/ruby-2.1.1@burt_api_server/gems/bundler-1.6.2/bin/bundle:20:in `<top (required)>'
        from /u/jhines/.rvm/gems/ruby-2.1.1@burt_api_server/bin/bundle:23:in `load'
        from /u/jhines/.rvm/gems/ruby-2.1.1@burt_api_server/bin/bundle:23:in `<main>'
        from /u/jhines/.rvm/gems/ruby-2.1.1@global/bin/ruby_executable_hooks:15:in `eval'
        from /u/jhines/.rvm/gems/ruby-2.1.1@global/bin/ruby_executable_hooks:15:in `<main>'

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

3 participants