Sha256: 8bae5f984c16d9e54dc00e00372eedd9aeceea0ca9ebd8c1560c08da22da2e1b

Contents?: true

Size: 467 Bytes

Versions: 3

Compression:

Stored size: 467 Bytes

Contents

module Bibliothecary
  module Parsers
    class Julia
      include Bibliothecary::Analyser

      def self.mapping
        {
          /^REQUIRE$/i => :parse_require
        }
      end

      def self.parse_require(manifest)
        manifest.split("\n").map do |line|
          match = line.split(/\s/)
          {
            name: match[0],
            requirement: match[1] || '*',
            type: 'runtime'
          }
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bibliothecary-5.0.2 lib/bibliothecary/parsers/julia.rb
bibliothecary-5.0.1 lib/bibliothecary/parsers/julia.rb
bibliothecary-5.0.0 lib/bibliothecary/parsers/julia.rb