我有一個現有的應用程序,我期待從rails 4.2.5更新到Rails 5.0(尚未5.1)和ruby 2.3.0到2.4.0 。我試圖更新gemfile,但遇到了一些我認爲與我的gemfile.lock有關的依賴問題。這是從我的命令行的快照 - 升級到Rails 5.0 - 更新gem文件/ gemfile.lock
這是我的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
我Gemfile.lock的文件包含了以前的更新版本。我看到有關是否簡單地刪除該文件的混合消息,因爲它似乎只打開其他罐蠕蟲,如果我刪除它。我應該簡單地將gemfile上的任何引用刪除到「版本」?任何援助表示讚賞。
能否請您複製粘貼+文字而不是在這裏嵌入圖像?這使得閱讀起來更容易。 –
使用這種屏幕顏色後,您仍然可以看到嗎?就像我的意思是,你是不是失去了你的視野?長時間零秒看圖片是不可能的。照顧你的眼睛:) –
你的意見是注意。我最近在搞亂顏色,並沒有轉回去。我會盡我所能解決這個問題。有什麼想法嗎? –