Sha256: dc1544429babbcbac0ac2bcb506d5b3ceeb3d10214e35b9612d9c59a15546b27

Contents?: true

Size: 531 Bytes

Versions: 21

Compression:

Stored size: 531 Bytes

Contents

module Bibliothecary
  module Parsers
    class Julia
      include Bibliothecary::Analyser

      def self.mapping
        {
          /^REQUIRE$/i => {
            kind: 'manifest',
            parser: :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

21 entries across 21 versions & 1 rubygems

Version Path
bibliothecary-6.2.1 lib/bibliothecary/parsers/julia.rb
bibliothecary-6.2.0 lib/bibliothecary/parsers/julia.rb
bibliothecary-6.1.0 lib/bibliothecary/parsers/julia.rb
bibliothecary-6.0.0 lib/bibliothecary/parsers/julia.rb
bibliothecary-5.6.2 lib/bibliothecary/parsers/julia.rb
bibliothecary-5.6.1 lib/bibliothecary/parsers/julia.rb
bibliothecary-5.6.0 lib/bibliothecary/parsers/julia.rb
bibliothecary-5.5.5 lib/bibliothecary/parsers/julia.rb
bibliothecary-5.5.4 lib/bibliothecary/parsers/julia.rb
bibliothecary-5.5.3 lib/bibliothecary/parsers/julia.rb
bibliothecary-5.5.2 lib/bibliothecary/parsers/julia.rb
bibliothecary-5.5.1 lib/bibliothecary/parsers/julia.rb
bibliothecary-5.5.0 lib/bibliothecary/parsers/julia.rb
bibliothecary-5.4.0 lib/bibliothecary/parsers/julia.rb
bibliothecary-5.3.4 lib/bibliothecary/parsers/julia.rb
bibliothecary-5.3.3 lib/bibliothecary/parsers/julia.rb
bibliothecary-5.3.2 lib/bibliothecary/parsers/julia.rb
bibliothecary-5.3.1 lib/bibliothecary/parsers/julia.rb
bibliothecary-5.3.0 lib/bibliothecary/parsers/julia.rb
bibliothecary-5.2.0 lib/bibliothecary/parsers/julia.rb