lib/rubocop/cop/bundler/duplicated_group.rb in rubocop-1.56.2 vs lib/rubocop/cop/bundler/duplicated_group.rb in rubocop-1.56.3
- old
+ new
@@ -115,10 +115,10 @@
def group_attributes(node)
node.arguments.map do |argument|
if argument.hash_type?
argument.pairs.map(&:source).sort.join(', ')
else
- argument.value.to_s
+ argument.respond_to?(:value) ? argument.value.to_s : argument.source
end
end
end
end
end