lib/rubocop/cop/gem_fetcher.rb in gitlab-styles-9.2.0 vs lib/rubocop/cop/gem_fetcher.rb in gitlab-styles-10.0.0
- old
+ new
@@ -12,10 +12,10 @@
# See https://bundler.io/guides/git.html#custom-git-sources
GIT_SOURCES = %i[git github gist bitbucket].freeze
# @!method gem_option(node)
def_node_matcher :gem_option, <<~PATTERN
- (send nil? :gem _
+ (send nil? :gem _ ...
(hash
<$(pair (sym {#{GIT_SOURCES.map(&:inspect).join(' ')}}) _)
...>
)
)