Complete the code to install a gem using Bundler.
system('bundle [1] rails')
The bundle install command installs gems listed in the Gemfile.
Complete the code to specify a gem version in the Gemfile.
gem 'nokogiri', '[1] 1.12.5'
The ~> operator specifies a version constraint allowing patch updates.
Fix the error in the Gemfile line to properly group gems for development and test.
group :development[1] :test do gem 'rspec-rails' end
Use a comma to list multiple groups in the group method.
Fill both blanks to check if a gem is installed and print its version.
if Gem::Specification.find_by_name('[1]') puts Gem::Specification.find_by_name('[2]').version end
Use the gem name consistently to check and print its version.
Fill all three blanks to add a gem with a specific version and group it for development only.
group :[1] do gem '[2]', '[3] 2.3.0' end
Group the gem 'rails' under development with version constraint '~> 2.3.0'.
