Sha256: 312de1bf67f4a6fd9301c135b8f47471a6227832c8ed3f93824758be6e0f7263

Contents?: true

Size: 719 Bytes

Versions: 5

Compression:

Stored size: 719 Bytes

Contents

require 'fig/logging'
require 'fig/packageerror'
require 'fig/package/statement'

module Fig; end
class Fig::Package; end

# Overrides one package version dependency with another in an include
# statement.
#
#    include blah/1.2.3 override somedependency/3.2.6
#
# indicates that, regardless of which version of somedependency the blah
# package says it needs, the blah package will actually use v3.2.6.
class Fig::Package::Override
  include Fig::Package::Statement

  attr_reader :package_name, :version_name

  def initialize(package_name, version_name)
    @package_name = package_name
    @version_name = version_name
  end

  def unparse()
    return ' override ' + @package_name + '/' + @version_name
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
fig18-0.1.51-i386-mswin32 lib/fig/package/override.rb
fig18-0.1.51-i386-mingw32 lib/fig/package/override.rb
fig18-0.1.51 lib/fig/package/override.rb
fig-0.1.51-java lib/fig/package/override.rb
fig-0.1.51 lib/fig/package/override.rb