My gem file contains:
gem "breadcrumb", :git => "[email protected]:mjacobus/Breadcrumb.git" gem "simple_menu", :git => "[email protected]:mjacobus/simple_menu.git"
The first gem installs as expected, but the second one fails.
Updating [email protected]:mjacobus/simple_menu.git Fetching gem metadata from https://rubygems.org/........ Could not find gem 'simple_menu (>= 0) ruby' in [email protected]:mjacobus/simple_menu.git (at master). Source does not contain any versions of 'simple_menu (>= 0) ruby'
Similar posts points to the lack of the .gemspec file, but this file exists. https://github.com/mjacobus/simple_menu/blob/master/simple_menu.gemspec
I am probably doing something stupid that someone else's eyes will be able to see.
I cloned the repo into the vendor/plugins folder and changed my Gemfile
gem "simple_menu", :path => "vendor/plugins/simple_menu"
Bundle install issues now the error:
bundle install Fetching gem metadata from https://rubygems.org/....... Could not find gem 'simple_menu (>= 0) ruby' in source at vendor/plugins/simple_menu. Source does not contain any versions of 'simple_menu (>= 0) ruby'
I knew it was a stupid error. The gem name was not correct.
https://github.com/mjacobus/simple_menu/commit/1afca04b08a084dafb9bdf6e595a2bb9a7b7a55f
Now, If I use following command: bundle install --without production. In above command, the --without production option prevents the local installation of any production gem means whatever gems are in the production group will not be installed -- which in our example is just one gem: pg .
bundle install is a command we use to install the dependencies specified in your Gemfile.
As Marcelo mentioned, I got same error and it was a stupid thing:
gemspec file
Gem::Specification.new do |s| s.name = 'niche_wir_theme' ....
Gem file (include)
gem 'niche-wir-theme', :git => ....
As you can see in my gemspec i named using ("_") underscore and on my gemfile i was trying to call it with "-" (dash)...
(palmface) so just take care of the name notation, the one you are declaring at gemspec file against the one you use for the call in the gem file of the other project are probably different
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With