Sha256: cbf5507f014780ae85e8632b8d0027511f9f2850566bbad6b0ecf0b70c45d35e

Contents?: true

Size: 432 Bytes

Versions: 4

Compression:

Stored size: 432 Bytes

Contents

require 'delegate'
require 'gem2rpm/helpers'

module Gem2Rpm
  class Dependency < SimpleDelegator
    # What does this dependency require?
    def requirement
      r = begin
        super
      rescue
        version_requirements # For RubyGems < 1.3.6
      end

      Helpers.requirement_versions_to_rpm r
    end

    # Dependency type. Needs to be explicitly reimplemented.
    def type
      __getobj__.type
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gem2rpm-1.0.2 lib/gem2rpm/gem/dependency.rb
gem2rpm-1.0.1 lib/gem2rpm/gem/dependency.rb
gem2rpm-1.0.0 lib/gem2rpm/gem/dependency.rb
gem2rpm-0.11.3 lib/gem2rpm/dependency.rb