V
V
Viktor Zuev2017-05-06 22:29:19
Ruby on Rails
Viktor Zuev, 2017-05-06 22:29:19

Why doesn't bundler see installed gems?

Good time, colleagues!
I installed RVM on a fresh machine , ruby ​​version 2.4.1, rails 5.1, all the gems were installed, everything was done as it had been done many times. Created a project - bundle install worked without problems. I added the gems of interest to the gemfile, I run bundle install - it says that it does not see the railties gem. I commented out the added gems, left only the default ones - all the rules. In Gemfile.lock I checked the versions - everything is in order.
gemfile:

source ' https://rubygems.org '
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
" https://github.com/#{repo_name}.git "
end
# Bundle edge Rails instead: gem 'rails' , github: 'rails/rails'
gem 'rails', '~> 5.1.0'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use Puma as the app server
gem 'puma', '~> 3.7'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.
for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 3.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Capistrano for deployment
# gem '
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
# Adds support for Capybara system testing and selenium driver
gem 'capybara', ' ~> 2.13.0'
gem 'selenium-webdriver'
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
# My gemset
gem 'bootstrap', '~> 4.0. 0.alpha6'
source ' https://rails-assets.org ' do
gem 'rails-assets-tether', '>= 1.3.3'
end
gem 'font-awesome-rails', '~> 4.7', ' >= 4.7.0.2'
gem 'russian', '~> 0.6.0'
gem 'devise', '~> 4.2', '>= 4.2.1'
gem 'devise-i18n', '~> 1.1', ' >= 1.1.2'
gem 'simple_form', '~> 3.4'

bundler's curses:
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby ​​but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rails-assets.org/...
Fetching version metadata from https://rails-assets.org/..
Fetching gem metadata from https://rails-assets.org/...
Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rails-assets.org/..
Fetching version metadata from https://rubygems.org/ ...
Fetching dependency metadata from https://rails-assets.org/..
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "railties":
In snapshot ( Gemfile.lock):
railties (= 5.1.0)
In Gemfile:
coffee-rails (~> 4.2) was resolved to 4.2.1, which depends on
railties (< 5.2.x, >= 4.0.0)
devise (>= 4.2.1, ~> 4.2) was resolved to 4.2.1, which depends on
railties (< 5.1, >= 4.1.0)
font-awesome-rails (>= 4.7.0.2, ~> 4.7) was resolved to 4.7. 0.2, which depends on
railties (< 5.2, >= 3.2)
rails (~> 5.1.0) was resolved to 5.1.0, which depends on
railties (= 5.1.0)
devise (>= 4.2.1, ~> 4.2) was resolved to 4.2.1, which depends on
responders was resolved to 2.4.0, which depends on
railties (< 5.3, >= 4.2.0)
sass-rails (~> 5.0) was resolved to 5.0.6, which depends on
railties (< 6, >= 4.0.0)
web- console (>= 3.3.0) was resolved to 3.5.0, which depends on
railties (>= 5.0)
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

I'm basically new to rails. Tell me where to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri, 2017-05-06
@Winter_Silence

Have you tried deleting Gemfile.lock and running bundle install again with this list of gems?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question