gemfile

Bundler cannot find a version of a gem, but gem install with the same name works

痞子三分冷 提交于 2019-12-03 05:43:11
I've created a gem, and for some reason this one keeps bugging me, and refuses to install properly through bundler. Here's the Gemfile : source 'https://rubygems.org' gem 'rails', '3.2.9' gem "switch_access-rails", "~> 1.1.6" bundle install fails with: Could not find gem 'switch_access-rails (~> 1.1.6) ruby' in the gems available on this machine. This works: gem install switch_access-rails -v 1.1.6 And the gem is here on rubygems: https://rubygems.org/gems/switch_access-rails/versions/1.1.6 I even tried bumping from version 1.1.5 to 1.1.6 just to see if that helped. Installing version 1.1.4 in

An error occurred while installing debugger-linecache (1.1.1), and Bundler cannot continue

拟墨画扇 提交于 2019-12-03 02:20:30
问题 Any idea how to fix this? Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /home/durrantm/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb checking for vm_core.h... no checking for vm_core.h... no Makefile creation failed ************************************************************************** No source for ruby-1.9.3-p194 provided with debugger-ruby_core_source gem. ************************************************************************** 回答1: I had this

Gemfile.lock Use in Rails?

冷暖自知 提交于 2019-12-03 01:18:35
What is the purpose of "Gemfile.lock" in Rails? I have been searching around for but could not find a satisfactory answer. You should read all the documentation from the bundler gem: http://gembundler.com/ THE GEMFILE.LOCK When you run bundle install, Bundler will persist the full names and versions of all gems that you used (including dependencies of the gems specified in the Gemfile(5)) into a file called Gemfile.lock. Bundler uses this file in all subsequent calls to bundle install, which guarantees that you always use the same exact code, even as your application moves across machines.

can't get gemfile to allow for bundle update

倖福魔咒の 提交于 2019-12-02 08:32:01
问题 I'm a ruby/rails newbie. Here is my gemfile: source 'https://rubygems.org' ruby '2.0.0' #ruby-gemset=railstutorial_rails_4_0 gem 'rails', '4.0.0' group :development do gem 'sqlite3', '1.3.8' gem 'ruby-debug-ide' end gem 'sass-rails', '4.0.0' gem 'uglifier', '2.1.1' gem 'coffee-rails', '4.0.0' gem 'jquery-rails', '3.0.4' gem 'turbolinks', '1.1.1' gem 'jbuilder', '1.0.2' gem 'wash_out', :git => 'git://github.com/inossidabile/wash_out.git' gem 'haml' gem "railties", "~> 4.0.0" group :doc do gem

Why does the Gemfile semantic versioning operator (~>) produce inconsistent results with one number?

百般思念 提交于 2019-12-01 18:01:11
The gemspec semantic versioning operator ~> (aka twiddle-wakka , aka pessimistic operator) allows a gem version to be constrained yet allow some upgrades. I have often seen that it can be read as: "~> 3.1" => "Any version 3.x, but at least 3.1" "~> 3.1.1" => "Any version 3.1.x, but at least 3.1.1" But with one number, this rule breaks down: "~> 3" => "Any version x, but at least 3" *NOT TRUE!* "~> 3" => "Any version 3.x" *True. But why?* If I wanted "Any version 3.x", I could just use "~> 3.0", which is consistent. As it stands, this change of operation at one number is inconsistent and

Heroku push failing, perhaps timeout from rubygems

喜你入骨 提交于 2019-12-01 13:10:25
I'm trying to push to heroku using git push heroku master It gets stuck when trying to access rubygems: -> Heroku receiving push -----> Removing .DS_Store files -----> Ruby/Rails app detected -----> Installing dependencies using Bundler version 1.1.rc.5 Running: bundle install --without development:test --path vendor/bundle --binstubs bin/ Fetching gem metadata from http://rubygems.org/....... /app/slug-compiler/lib/utils.rb:62:in `block (2 levels) in spawn': command='/app/slug-compiler/lib/../buildpacks/ruby/bin/compile /tmp/build_38k3w88w3yxzg /app/tmp/repo.git/.cache' exit_status=0 out=''

Heroku push failing, perhaps timeout from rubygems

孤街浪徒 提交于 2019-12-01 10:04:59
问题 I'm trying to push to heroku using git push heroku master It gets stuck when trying to access rubygems: -> Heroku receiving push -----> Removing .DS_Store files -----> Ruby/Rails app detected -----> Installing dependencies using Bundler version 1.1.rc.5 Running: bundle install --without development:test --path vendor/bundle --binstubs bin/ Fetching gem metadata from http://rubygems.org/....... /app/slug-compiler/lib/utils.rb:62:in `block (2 levels) in spawn': command='/app/slug-compiler/lib/.

Your bundle is locked to rake (12.0.0), but that version could not be found in any of the sources listed in your Gemfile.

前提是你 提交于 2019-11-30 22:02:41
I get the following error message when starting the rails server: Your bundle is locked to rake (12.0.0), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources, that means the author of rake (12.0.0) has removed it. You'll need to update your bundle to a different version of rake (12.0.0) that hasn't been removed in order to install. I specified gem 'rake', '12.0.0' in the gemfile but that doesn't fix it. I tried bundle update rake , deleting the Gemfile.lock and generating it with bundle exec bundle install . I also prepended `bundle

Can I force a gem's dependencies in gemfile?

瘦欲@ 提交于 2019-11-30 18:07:21
If there are two gems, A and B . A1.0.0 depends on B1.0.0 . In my Gemfile: gem 'A', '~> 1.0.0' Then run bundle . It will generate a Gemfile.lock like: A (1.0.0) B (1.0.0) But if I want to force A to use B1.0.1 , what's the best practice? Moreover, if the B1.0.1 is not release but a github tag? You'll need to explicitly specify the B gem in your Gemfile to use a git repository or another version. As long as A 1.0.0 is compatible with B 1.0.1 you'll be fine. If it is only compatible with B 1.0.0 then you'll have to create your own fork of the A gem and upgrade the gemspec to be compatible with B

Your bundle is locked to rake (12.0.0), but that version could not be found in any of the sources listed in your Gemfile.

自闭症网瘾萝莉.ら 提交于 2019-11-30 17:46:11
问题 I get the following error message when starting the rails server: Your bundle is locked to rake (12.0.0), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources, that means the author of rake (12.0.0) has removed it. You'll need to update your bundle to a different version of rake (12.0.0) that hasn't been removed in order to install. I specified gem 'rake', '12.0.0' in the gemfile but that doesn't fix it. I tried bundle update rake ,