Class: Bundler::Patch::GemPatch

Inherits:
Object
  • Object
show all
Defined in:
lib/bundler/patch/advisory_consolidator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gem_name:, old_version: nil, new_version: nil, patched_versions: nil) ⇒ GemPatch

Returns a new instance of GemPatch.



66
67
68
69
70
71
# File 'lib/bundler/patch/advisory_consolidator.rb', line 66

def initialize(gem_name:, old_version: nil, new_version: nil, patched_versions: nil)
  @gem_name = gem_name
  @old_version = old_version
  @new_version = new_version
  @patched_versions = patched_versions
end

Instance Attribute Details

#gem_nameObject (readonly)

Returns the value of attribute gem_name.



64
65
66
# File 'lib/bundler/patch/advisory_consolidator.rb', line 64

def gem_name
  @gem_name
end

#new_versionObject (readonly)

Returns the value of attribute new_version.



64
65
66
# File 'lib/bundler/patch/advisory_consolidator.rb', line 64

def new_version
  @new_version
end

#old_versionObject (readonly)

Returns the value of attribute old_version.



64
65
66
# File 'lib/bundler/patch/advisory_consolidator.rb', line 64

def old_version
  @old_version
end

#patched_versionsObject (readonly)

Returns the value of attribute patched_versions.



64
65
66
# File 'lib/bundler/patch/advisory_consolidator.rb', line 64

def patched_versions
  @patched_versions
end