Class: Bundler::Checksum::Source
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/bundler/checksum.rb |
Class Method Summary
- .new(type, location) ⇒ Source constructor
Instance Attribute Summary
- #location readonly
- #removable? ⇒ Boolean readonly
- #type readonly
Instance Method Summary
- #==(other)
-
#removal
A full sentence describing how to remove the checksum.
-
#to_s
phrased so that the usual string format is grammatically correct.
Constructor Details
.new(type, location) ⇒ Source
Instance Attribute Details
#location (readonly)
[ GitHub ]# File 'lib/bundler/checksum.rb', line 121
attr_reader :type, :location
#removable? ⇒ Boolean
(readonly)
[ GitHub ]
#type (readonly)
[ GitHub ]# File 'lib/bundler/checksum.rb', line 121
attr_reader :type, :location
Instance Method Details
#==(other)
[ GitHub ]#removal
A full sentence describing how to remove the checksum
# File 'lib/bundler/checksum.rb', line 152
def removal case type when :lock "remove the matching checksum in #{location}" when :gem "remove the gem at #{location}" when :api "checksums from #{location} cannot be locally modified, you may need to update your sources" else "remove #{location} (#{type})" end end
#to_s
phrased so that the usual string format is grammatically correct
rake (10.3) sha256=abc123 from #{to_s}