bundle exec ruby script.rb:require 'colorize' puts 'Hello'.colorize(:red)
bundle exec when running Ruby scripts?bundle exec is used before running Ruby commands.bundle exec runs commands using the gems and versions locked in the Gemfile.lock, preventing conflicts with other installed gems.bundle exec?ruby script.rb (without bundle exec) causes an error. What is the most likely error?require 'nokogiri' puts Nokogiri::VERSION
bundle exec ruby script.rb with this Gemfile?source 'https://rubygems.org' gem 'rails', '7.0.4' gem 'puma', '~> 5.0' gem 'nokogiri', '1.12.5'And
bundle install was run successfully. How many gems (including dependencies) are loaded when running bundle exec ruby script.rb?