Skip to content

Commit

Permalink
CI: Use eval_gemfile from Bundler (#428)
Browse files Browse the repository at this point in the history
This method isn't documented, but the RuboCop repo uses it and has been
doing so for years:

- rubocop/rubocop#2793
- rubocop/rubocop#3903
  • Loading branch information
dentarg committed Aug 28, 2021
1 parent 9646c3c commit a4a30a0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -2,7 +2,7 @@

source 'https://rubygems.org'

gemspec(path: __FILE__ == "(eval)" ? ".." : ".")
gemspec

group :test do
gem 'rspec', '~> 3.8'
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/public_suffix_2.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true

# Assumes this gemfile is used from the project root
eval File.read("Gemfile") # rubocop:disable Security/Eval
eval_gemfile "../Gemfile"

gem "public_suffix", ">= 2.0.2", "~> 2.0"
2 changes: 1 addition & 1 deletion gemfiles/public_suffix_3.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true

# Assumes this gemfile is used from the project root
eval File.read("Gemfile") # rubocop:disable Security/Eval
eval_gemfile "../Gemfile"

gem "public_suffix", "~> 3.0"

0 comments on commit a4a30a0

Please sign in to comment.