lib/drg/tasks/gemfile.rb in drg-1.5.1 vs lib/drg/tasks/gemfile.rb in drg-1.5.2

- old
+ new

@@ -24,10 +24,10 @@ def find_by_name(name) lines.each_with_index.each do |line, index| next if line =~ /^\s*#/ next if line =~ /:?path:?\s*(=>)?\s*/ - next if line =~ /:?git(hub)?:?\s*(=>)?\s*/ + next if line =~ /(:git(hub)?)|(git(hub)?:)\s*(=>)?\s*/ next if line =~ /@drg\s+(frozen|ignore|skip)/ return GemfileLine.new line, index, name if line =~ /gem\s*['"]#{name}["']/ end nil end