skip to Main Content

I have an existing application which I’m looking to update from rails 4.2.5 to Rails 5.0 (not doing 5.1 yet) and ruby 2.3.0 to 2.4.0. I’m trying to update the gemfile but hitting a number of dependency issues which I believe relates to my gemfile.lock. This is a snapshot from my command line –
enter image description here

This is my gemfile –

     source 'https://rubygems.org'

     ruby '2.4.0'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '5.0.1'
gem 'railties', '~> 5.0'
gem 'actionpack', '~> 5.0.1', '>= 5.0.1'
gem 'rails-dom-testing', '~> 2.0', '>= 2.0.2'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.1.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

# 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 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc

gem 'bootstrap-sass', '~> 3.3', '>= 3.3.6'
# for styling - not happy but best for grid usage I need (I hope!!)

gem 'simple_form', '~> 3.2', '>= 3.2.1'
# for building form templates on the site

gem 'devise', '~> 4.0'
# for creating sign-in / sign-up process

gem 'paperclip', '~> 4.3', '>= 4.3.2'
# for using images on the site

gem 'jquery-ui-rails', '~> 5.0', '>= 5.0.5'
# Adding Datepicker

gem 'jquery-turbolinks', '~> 0.2.1'
# to fix problems with turbolinks

gem 'stripe', '~> 1.38'
# for payments / bookings

gem 'omniauth', '~> 1.3', '>= 1.3.1'
gem 'omniauth-twitter', '~> 1.2', '>= 1.2.1'
gem 'omniauth-facebook', '~> 3.0'
# social logins

gem 'money-rails'
# add money feature

gem 'geocoder', '~> 1.3', '>= 1.3.7'
# for google maps / locations

gem 'rubocop', '~> 0.42.0'
# for code styling / errors

gem 'counter_culture', '~> 0.1.33'
# for counting bookings and quantity




# 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

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug'
end

group :development do
  # Access an IRB console on exception pages or by using <%= console %> in views
  gem 'web-console', '~> 2.0'

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

My Gemfile.lock file contains versions from previous updates. I’m seeing mixed messages about whether to simply delete this file or not as it appears to only open other cans of worms if I do delete it. Should I simply delete any reference on the gemfile to ‘versions’? Any assistance is appreciated.

2

Answers


  1. how about remove Gemfile.lock entirely and run bundle install again 😉 haha

    Login or Signup to reply.
  2. Just run :

    bundle update
    

    and it will update your Gemfile.lock

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search