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

Bundler fail #113

Closed
rtrv opened this issue Oct 26, 2017 · 3 comments
Closed

Bundler fail #113

rtrv opened this issue Oct 26, 2017 · 3 comments

Comments

@rtrv
Copy link
Collaborator

rtrv commented Oct 26, 2017

When I clone the source and just run bundle install, I get the following:

[!] There was an error parsing `Gemfile`: There are no gemspecs at /home/rtrv/mongoid_search. Bundler cannot continue.

 #  from /home/rtrv/mongoid_search/Gemfile:8
 #  -------------------------------------------
 #  platforms :jruby do
 >    gemspec :name => "mongoid_search-java"
 #  end
 #  -------------------------------------------

Gemspec name and gem name inside it are different. Is it my local issue or this JRuby dependenies gemspec requires some workaround?

UPD: Travis fails with another error:

[!] There was an error parsing `Gemfile`: There are multiple gemspecs at /home/travis/build/mongoid/mongoid_search. Please use the :name option to specify which one should be used. Bundler cannot continue.
 #  from /home/travis/build/mongoid/mongoid_search/Gemfile:4
 #  -------------------------------------------
 #  platforms :ruby do
 >    gemspec :name => "mongoid_search"
 #  end
 #  -------------------------------------------
@rtrv
Copy link
Collaborator Author

rtrv commented Oct 27, 2017

The only difference between gemspecs is stemmer gem:

# For :ruby platform
s.add_dependency("fast-stemmer", ["~> 1.0.0"])

# For :jruby platform
s.add_dependency("jruby-stemmer", ["~> 0.0.1"])

jruby-stemmer is not in rubygems already! I suppose, it's ok to use fast-stemmer with jruby and keep just one .gemspec

@rtrv rtrv mentioned this issue Oct 27, 2017
@rtrv
Copy link
Collaborator Author

rtrv commented Oct 27, 2017

@sveredyuk, have you successfully run specs locally for Mongoid 6? I have working bundle exec rake for versions 3-5, but for 6 there is a problem with ActiveSupport.

@rtrv
Copy link
Collaborator Author

rtrv commented Nov 3, 2017

Actually fixed, the problem with JRuby is in #118

@rtrv rtrv closed this as completed Nov 3, 2017
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