Starting package installation does not allow remote fetching from rubygems.org/quick/Marshal

I get a strange error when installing the package:

$ bundle install
Fetching source index for http://rubygems.org/
rvm/rubies/ree-1.8.7-2010.02/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:304
    :in `open_uri_or_path': bad response Not Found 404 
    (http://rubygems.org/quick/Marshal.4.8/resque-scheduler-1.09.7.gemspec.rz) 
    (Gem::RemoteFetcher::FetchError)

I tried updating the package, gem -c source, gem update -system, gem cleaning, etc. etc. It seems that does not solve anything. I noticed that the URL starting with http://rubygems.org/quick seems to be 404 - I don't think there are any problems with my network, although if it is available to someone else it will a simple explanation of my problem.

Other hints: if I just install the resc scheduler, it works fine:

$ gem install resque-scheduler
Successfully installed resque-scheduler-1.9.7
1 gem installed
Installing ri documentation for resque-scheduler-1.9.7...
Installing RDoc documentation for resque-scheduler-1.9.7...

And here is my gemfile:

source 'http://rubygems.org'

gem 'json'
gem 'rails', '>=3.0.0'
gem 'mongo'
gem 'mongo_mapper', :git => 'git://github.com/jnunemaker/mongomapper', :branch => 'rails3'
gem 'bson_ext', '1.1'
gem 'bson', '1.1'
gem 'mm-multi-parameter-attributes', :git=>'git://github.com/rlivsey/mm-multi-parameter-attributes.git'
gem 'devise', '~>1.1.3'
gem 'devise_invitable', '~> 0.3.4'
gem 'devise-mongo_mapper', :git => 'git://github.com/collectiveidea/devise-mongo_mapper'
gem 'carrierwave', :git => 'git://github.com/rsofaer/carrierwave.git' , :branch => 'master'
gem 'mini_magick'
gem 'jquery-rails', '>= 0.2.6'
gem 'resque'
gem 'resque-scheduler'
gem 'SystemTimer'
gem 'capistrano'
gem 'will_paginate', '3.0.pre2'
gem 'twitter', '~> 1.0.0'
gem 'oauth', '~> 0.4.4'
+3
source share
3 answers

There is not even a version of this gem available:

http://rubygems.org/gems/resque-scheduler/versions

Gemfile?

, 404, . gem gemspec, S3/CloudFront. , , RubyGems , CDN.

, Bundler .

+1

. , rubygems.org.

sudo gem install resque-scheduler - bundler .

1.9.7, 1.09.7 - ?

0

, :

  • gem 'resque-scheduler' Gemfile.
  • bundle install.
  • Uncomment gem 'resque-scheduler' Gemfile.
  • Run bundle installagain.

I have no idea why this worked, and maybe it was some other random move around, I really wanted to try the gem install bundler. But right before trying the above 4 steps, he still failed, and right after that he worked.

0
source

Source: https://habr.com/ru/post/1783015/


All Articles