Sha256: 92974e44aa26749023d2eb614840b3380aaa7f6c502bbd406c6ee1993c401d38

Contents?: true

Size: 439 Bytes

Versions: 6

Compression:

Stored size: 439 Bytes

Contents

require "zlib"
require "stringio"

module Artifactory
  module GemImport
    module GemSpecs
      class Parser
        def self.call(data)
          new(data).call
        end

        def initialize(data)
          @io = StringIO.new data
        end

        def call
          Marshal.load inflated_data
        end

        private

        def inflated_data
          Zlib::GzipReader.new @io
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
artifactory-gem_import-1.1.0 lib/artifactory/gem_import/gem_specs/parser.rb
artifactory-gem_import-1.0.0 lib/artifactory/gem_import/gem_specs/parser.rb
artifactory-gem_import-0.2.2 lib/artifactory/gem_import/gem_specs/parser.rb
artifactory-gem_import-0.2.0 lib/artifactory/gem_import/gem_specs/parser.rb
artifactory-gem_import-0.1.4 lib/artifactory/gem_import/gem_specs/parser.rb
artifactory-gem_import-0.1.3 lib/artifactory/gem_import/gem_specs/parser.rb