lib/defmastership/definition.rb in defmastership-1.0.11 vs lib/defmastership/definition.rb in defmastership-1.0.12
- old
+ new
@@ -29,10 +29,10 @@
def value
@lines.join("\n")
end
def sha256
- "~#{Digest::SHA2.new(256).hexdigest(value).split(//).last(8).join}"
+ "~#{Digest::SHA2.new(256).hexdigest(value).chars.last(8).join}"
end
def wrong_explicit_checksum
@explicit_checksum if @explicit_checksum != sha256
end