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

Add kaminari-grape dependency #37

Closed
wants to merge 2 commits into from
Closed

Conversation

jaronson
Copy link

This corrects the following error when attempting to load the grape-kaminari gem. kaminari-grape now appears to be a needed dependency.

LoadError: cannot load such file -- kaminari/grape
  /Users/jaronson/.rbenv/versions/2.3.3/gemsets/beachy-api/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `require'
  /Users/jaronson/.rbenv/versions/2.3.3/gemsets/beachy-api/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `block in require'
  /Users/jaronson/.rbenv/versions/2.3.3/gemsets/beachy-api/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in `load_dependency'
  /Users/jaronson/.rbenv/versions/2.3.3/gemsets/beachy-api/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `require'
  /Users/jaronson/.rbenv/versions/2.3.3/gemsets/beachy-api/gems/grape-kaminari-0.1.9/lib/grape/kaminari.rb:4:in `<top (required)>'
  /Users/jaronson/.rbenv/versions/2.3.3/gemsets/beachy-api/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `require'
  /Users/jaronson/.rbenv/versions/2.3.3/gemsets/beachy-api/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `block in require'
  /Users/jaronson/.rbenv/versions/2.3.3/gemsets/beachy-api/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in `load_dependency'
  /Users/jaronson/.rbenv/versions/2.3.3/gemsets/beachy-api/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `require'
  /Users/jaronson/.rbenv/versions/2.3.3/gemsets/beachy-api/gems/grape-kaminari-0.1.9/lib/grape-kaminari.rb:11:in `<top (required)>'
  /Users/jaronson/.rbenv/versions/2.3.3/gemsets/beachy-api/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `require'
  /Users/jaronson/.rbenv/versions/2.3.3/gemsets/beachy-api/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `block in require'
  /Users/jaronson/.rbenv/versions/2.3.3/gemsets/beachy-api/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in `load_dependency'
  /Users/jaronson/.rbenv/versions/2.3.3/gemsets/beachy-api/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:274:in `require'

@gustavosobral
Copy link

gustavosobral commented Jan 25, 2017

I'm suffering with the same issue. I don't think that kaminari-grape is a new dependency, is it? 🤔 (Apparently, our environment is the same, Rails 4.2.7.1 and Ruby 2.3.3)

@erickitkit
Copy link

I got the same error, I just remove the follow line from /lib/grape/kaminari.rb

require "kaminari/grape"

to bring the gem work. Don't know any issue occur afterward.

@raviiitb
Copy link

raviiitb commented May 4, 2017

What happened to this issue? When it is going to be fixed?

@joshmn
Copy link

joshmn commented May 9, 2017

@raviiitb doesn't look like it. You can pull down my fork,

gem 'grape-kaminari', :github => 'joshmn/grape-kaminari'

or fork it yourself and edit /lib/grape/kaminari.rb, removing require "kaminari/grape"

@raviiitb
Copy link

@joshmn Thanks

@szsoppa
Copy link

szsoppa commented May 23, 2017

The other solution is to add this dependency manually in your gemfile.

@jacek213
Copy link

jacek213 commented Aug 9, 2017

Monterail guys come on, u made a useful gem, why won't u spend a few minutes to support it?

@marinhero
Copy link

marinhero commented Aug 11, 2017

This happened to me as well. Version 0.1.9 breaks my app. Rolled the gem back to 0.1.8 to make the app work

acotie added a commit to acotie/rails_stripe_connect_api that referenced this pull request Oct 9, 2017
…e change the namespace of grape-kaminari -> kaminari-grape ?? bsm/grape-kaminari#37
@ghost ghost mentioned this pull request Oct 4, 2019
@dim
Copy link
Member

dim commented Jun 18, 2020

Resolved via #51

@dim dim closed this Jun 18, 2020
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

Successfully merging this pull request may close these issues.

10 participants