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

Not loading in Sinatra #3

Open
HoneyryderChuck opened this issue Aug 9, 2012 · 1 comment
Open

Not loading in Sinatra #3

HoneyryderChuck opened this issue Aug 9, 2012 · 1 comment

Comments

@HoneyryderChuck
Copy link

Hi,

I'm trying to bundle this gem with data mapper in my sinatra app, but somehow it cannot be loaded. I have them defined like this in my gemfile:


gem "data_mapper",              '1.2.0'
gem "dm-mysql-adapter",         '1.2.0'
gem "dm-polymorphic",           '0.10.2'

and I'm getting the following backtrace:


/Users/tiagocardoso/Projects/rightclearing-api/bundled_gems/ruby/1.9.1/gems/dm-polymorphic-0.10.2/lib/dm-polymorphic.rb:46:in `': undefined method `/' for # (NoMethodError)
    from /Users/tiagocardoso/Projects/rightclearing-api/app.rb:5:in `require'
    from /Users/tiagocardoso/Projects/rightclearing-api/app.rb:5:in `'
    from /Users/tiagocardoso/Projects/rightclearing-api/spec/spec_helper.rb:3:in `require'
    from /Users/tiagocardoso/Projects/rightclearing-api/spec/spec_helper.rb:3:in `'
    from /Users/tiagocardoso/Projects/rightclearing-api/spec/models/authorization_spec.rb:2:in `require'
    from /Users/tiagocardoso/Projects/rightclearing-api/spec/models/authorization_spec.rb:2:in `'
    from /Users/tiagocardoso/Projects/rightclearing-api/bundled_gems/ruby/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `load'
    from /Users/tiagocardoso/Projects/rightclearing-api/bundled_gems/ruby/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `block in load_spec_files'
    from /Users/tiagocardoso/Projects/rightclearing-api/bundled_gems/ruby/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `map'
    from /Users/tiagocardoso/Projects/rightclearing-api/bundled_gems/ruby/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `load_spec_files'
    from /Users/tiagocardoso/Projects/rightclearing-api/bundled_gems/ruby/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:22:in `run'
    from /Users/tiagocardoso/Projects/rightclearing-api/bundled_gems/ruby/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'
    from /Users/tiagocardoso/Projects/rightclearing-api/bundled_gems/ruby/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `block in autorun'

Should this work under Sinatra?

@HoneyryderChuck
Copy link
Author

Now that I have looked further into this, it looks like ur gem is outdated concerning the data mapper version. Is it so?

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

1 participant