[JAVA] If you make a mistake in the description location of Gem, delete Gemfile.lock once.

This time we are talking about Gem.

hoge.js


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

//Partially deleted//

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
group :development do
  gem 'rubocop', require: false
end

 gem 'rspec-rails', '~> 4.0.0'
 gem 'factory_bot_rails'
 gem 'faker' 
//These three description positions are incorrect//
	

This time I tried to write faker, factorybot, rspec, etc. to write test code in rails. As some of you may have already noticed, these three descriptions should be written in group: development,: test do, not at the bottom. This time from I have no problems masu not even if Re you notice before you bundle install ends up is why I was wondering what to do because it was noticed. The conclusion of the solution is "" Delete Gemfile.lock under Gemfile, change the location and rebundle install "". Gemfile.lock is created by bundle install and regenerated by bundle install. Other installed gems will be processed without any problem, so please delete them with confidence! !!

Recommended Posts

If you make a mistake in the description location of Gem, delete Gemfile.lock once.
Solution if you delete the migration file in the up state
[Rails Tutorial Chapter 2] What to do when you make a mistake in the column name
[Swift] When you want to know if the number of characters in a String matches a certain number ...
What you are doing in the confirmation at the time of gem update
If you want to satisfy the test coverage of private methods in JUnit
Be careful about upgrade if you use | etc. in the URL of Tomcat
How to make a unique combination of data in the rails intermediate table
Make a margin to the left of the TextField
Measure the size of a folder in Java
Implementation of delete function (if you have foreign_key)
What to do if you get a wrong number of arguments error in binding.pry
What to do if you can't get the text of an element in Selenium
Count the number of occurrences of a string in Ruby
If you want to recreate the instance in cloud9