Sha256: 1c37ab00bcbd8e7220a693259c6fd2122543feb61bf300c00eff00e02302551a

Contents?: true

Size: 277 Bytes

Versions: 12

Compression:

Stored size: 277 Bytes

Contents

require 'delegate'
require 'rubygems/package'
begin
  require 'rubygems/format'
rescue LoadError
end

module Gem2Rpm
  class Package < SimpleDelegator
    def initialize(gem)
      super(Gem::Package.new(gem)) rescue super(Gem::Format.from_file_by_path(gem))
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
gem2rpm-1.0.2 lib/gem2rpm/gem/package.rb
gem2rpm-1.0.1 lib/gem2rpm/gem/package.rb
gem2rpm-1.0.0 lib/gem2rpm/gem/package.rb
gem2rpm-0.11.3 lib/gem2rpm/package.rb
gem2rpm-0.11.2 lib/gem2rpm/package.rb
gem2rpm-0.11.1 lib/gem2rpm/package.rb
gem2rpm-0.11.0 lib/gem2rpm/package.rb
gem2rpm-0.10.1 lib/gem2rpm/package.rb
gem2rpm-0.10.0 lib/gem2rpm/package.rb
gem2rpm-0.9.2 lib/gem2rpm/package.rb
gem2rpm-0.9.1 lib/gem2rpm/package.rb
gem2rpm-0.9.0 lib/gem2rpm/package.rb