class Bundler::Patch::GemPatch
Attributes
gem_name[R]
TODO: requested_version is better name than new_version
?
new_version[R]
TODO: requested_version is better name than new_version
?
old_version[R]
TODO: requested_version is better name than new_version
?
patched_versions[R]
TODO: requested_version is better name than new_version
?
Public Class Methods
new(gem_name:, old_version: nil, new_version: nil, patched_versions: nil)
click to toggle source
# File lib/bundler/patch/advisory_consolidator.rb, line 77 def initialize(gem_name:, old_version: nil, new_version: nil, patched_versions: nil) @gem_name = gem_name @old_version = Gem::Version.new(old_version) if old_version @new_version = Gem::Version.new(new_version) if new_version @patched_versions = patched_versions end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/bundler/patch/advisory_consolidator.rb, line 84 def <=>(other) self.gem_name <=> other.gem_name end
eql?(other)
click to toggle source
# File lib/bundler/patch/advisory_consolidator.rb, line 92 def eql?(other) @gem_name.eql?(other.gem_name) end
hash()
click to toggle source
# File lib/bundler/patch/advisory_consolidator.rb, line 88 def hash @gem_name.hash end