8000 Apply `RESTRICT_ON_SEND` to `Bundler/GemVersion` · rubocop/rubocop@60432f5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 60432f5

Browse files
committed
Apply RESTRICT_ON_SEND to Bundler/GemVersion
1 parent adb7cee commit 60432f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/rubocop/cop/bundler/gem_version.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class GemVersion < Base
5656

5757
REQUIRED_MSG = 'Gem version specification is required.'
5858
FORBIDDEN_MSG = 'Gem version specification is forbidden.'
59+
RESTRICT_ON_SEND = %i[gem].freeze
5960
VERSION_SPECIFICATION_REGEX = /^\s*[~<>=]*\s*[0-9.]+/.freeze
6061

6162
# @!method includes_version_specification?(node)

0 commit comments

Comments
 (0)
0