lib/bibliothecary/parsers/julia.rb in bibliothecary-4.0.4 vs lib/bibliothecary/parsers/julia.rb in bibliothecary-5.0.0
- old
+ new
@@ -1,16 +1,13 @@
module Bibliothecary
module Parsers
class Julia
include Bibliothecary::Analyser
- def self.parse(filename, path)
- if filename.match(/^REQUIRE$/i)
- file_contents = File.open(path).read
- parse_require(file_contents)
- else
- []
- end
+ def self.mapping
+ {
+ /^REQUIRE$/i => :parse_require
+ }
end
def self.parse_require(manifest)
manifest.split("\n").map do |line|
match = line.split(/\s/)