Bundle installation not working?

I am working on a rails project and keep getting this error when I try to start the paperclips migration generator. He tells me that I have to install the package, since the source of the gems was not found, but then when I start the installation of the package, everything goes fine, except that I get the same error message to start the update every time package.

I had the same problem a few hours ago, however this time he could not find the sources for json gem -v 1.8.1.

To solve this problem, I ran gem install json -v 1.8.1, after which everything went fine. Now the problem has returned for another gem, and installing a gem install for the gem does not seem to have an effect this time.

The error I am getting is:

Could not find climate_control-0.0.3 in any of the sources Run bundle install to install missing gems.

Gemfile:

source 'https://rubygems.org'


# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.1'
# Use postgresql as the database for Active Record
gem 'pg'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.3'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer',  platforms: :ruby

# Authentication gems
gem 'sorcery'
gem 'bcrypt'

# Photo Upload
gem 'paperclip', '~> 4.1'

# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'rabl'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0',          group: :doc

# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
group :development do
  gem 'spring'
  gem 'pry'
end


# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use unicorn as the app server
# gem 'unicorn'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

# Use debugger
# gem 'debugger', group: [:development, :test]

, , -, .

Using climate_control 0.0.3

, rvm ruby ​​-v 2.1.1, , - , .

.

+4
2

- Spring gemfile ( - paperclip)

paperclip repo : https://github.com/thoughtbot/paperclip/issues/2226

, , , , , , spring.

, , .

+1

?

, .

rubygems gem update -system.

0

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


All Articles