Sha256: b0893d4cb4b3dde643a0ef4550049bb28ac22a338c162acfe177b7ba549fd486

Contents?: true

Size: 462 Bytes

Versions: 4

Compression:

Stored size: 462 Bytes

Contents

require_relative 'gemspec'

module Gem
  module Release
    class Context
      class Gem
        attr_reader :name, :spec

        def initialize(name)
          @spec = Gemspec.new(name)
          @name = name
        end

        def version
          spec.version.to_s if spec
        end

        def filename
          spec.gem_filename if spec
        end

        def spec_filename
          spec.filename if name
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gem-release-2.2.4 lib/gem/release/context/gem.rb
gem-release-2.2.3 lib/gem/release/context/gem.rb
gem-release-2.2.3.alpha4 lib/gem/release/context/gem.rb
gem-release-2.2.3.alpha3 lib/gem/release/context/gem.rb