Skip to content

Commit

Permalink
feat(gemfile): update with fix for recent rubocop violation
Browse files Browse the repository at this point in the history
```
Gemfile:3:8: C: [Correctable] Style/FetchEnvVar:
Use ENV.fetch('PROXY_RUBYGEMSORG', 'https://rubygems.org') instead of
    ENV['PROXY_RUBYGEMSORG'] || 'https://rubygems.org'.
    (https://rubystyle.guide/#hash-fetch-defaults)
source ENV['PROXY_RUBYGEMSORG'] || 'https://rubygems.org'
       ^^^^^^^^^^^^^^^^^^^^^^^^
```
  • Loading branch information
myii committed May 30, 2022
1 parent 6925281 commit d57cf4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

source ENV['PROXY_RUBYGEMSORG'] || 'https://rubygems.org'
source ENV.fetch('PROXY_RUBYGEMSORG', 'https://rubygems.org')

# Install the `inspec` gem using `git` because versions after `4.22.22`
# suppress diff output; this version fixes this for our uses.
Expand Down
2 changes: 1 addition & 1 deletion ssf/files/default/Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

source ENV['PROXY_RUBYGEMSORG'] || 'https://rubygems.org'
source ENV.fetch('PROXY_RUBYGEMSORG', 'https://rubygems.org')

# Install the `inspec` gem using `git` because versions after `4.22.22`
# suppress diff output; this version fixes this for our uses.
Expand Down

0 comments on commit d57cf4d

Please sign in to comment.