Sha256: 38568cf8d9fadd3736211d297778505de156152e904c38abb85acd55eaa847e2

Contents?: true

Size: 313 Bytes

Versions: 12

Compression:

Stored size: 313 Bytes

Contents

require 'delegate'

module Gem2Rpm
  class Format < SimpleDelegator
    # Returns the value of attribute gem_path
    def gem_path
      super
    rescue
      spec.file_name
    end

    # Returns the value of attribute file_entries
    def file_entries
      super
    rescue
      spec.files
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

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