lib/pg_objects/parser.rb in pg_objects-0.5.6 vs lib/pg_objects/parser.rb in pg_objects-0.5.7

- old
+ new

@@ -36,10 +36,10 @@ end private def fetch_dependencies(text) - text.split("\n").select { |ln| ln =~ /^(--|#)!/ }.map { |ln| ln.split(' ')[1] if ln =~ /!depends_on/ }.compact + text.split("\n").select { |ln| ln =~ /^(--|#)!/ }.map { |ln| ln.split[1] if ln =~ /!depends_on/ }.compact end end end end