Sha256: 64290630236e40b5dbf45b29469fbce3c2c641e7d5633174b08ac8cf809c3aa3

Contents?: true

Size: 473 Bytes

Versions: 19

Compression:

Stored size: 473 Bytes

Contents

require 'gem/release/context/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

19 entries across 19 versions & 1 rubygems

Version Path
gem-release-2.2.3.alpha2 lib/gem/release/context/gem.rb
gem-release-2.2.3.alpha1 lib/gem/release/context/gem.rb
gem-release-2.2.2 lib/gem/release/context/gem.rb
gem-release-2.2.1 lib/gem/release/context/gem.rb
gem-release-2.2.0 lib/gem/release/context/gem.rb
gem-release-2.1.1 lib/gem/release/context/gem.rb
gem-release-2.1.0 lib/gem/release/context/gem.rb
gem-release-2.0.4 lib/gem/release/context/gem.rb
gem-release-2.0.3 lib/gem/release/context/gem.rb
gem-release-2.0.2 lib/gem/release/context/gem.rb
gem-release-2.0.1 lib/gem/release/context/gem.rb
gem-release-2.0.0.rc.3 lib/gem/release/context/gem.rb
gem-release-2.0.0.rc.2 lib/gem/release/context/gem.rb
gem-release-2.0.0.rc.1 lib/gem/release/context/gem.rb
gem-release-2.0.0.dev.5 lib/gem/release/context/gem.rb
gem-release-2.0.0.dev.4 lib/gem/release/context/gem.rb
gem-release-2.0.0.dev.3 lib/gem/release/context/gem.rb
gem-release-2.0.0.dev.2 lib/gem/release/context/gem.rb
gem-release-2.0.0.dev.1 lib/gem/release/context/gem.rb