Support Crystal 0.35.0

This commit is contained in:
Omar Roth
2020-06-15 17:57:20 -05:00
parent 338dc3223c
commit d30a972a90
6 changed files with 48 additions and 22 deletions

View File

@@ -332,7 +332,7 @@ end
def sha256(text)
digest = OpenSSL::Digest.new("SHA256")
digest << text
return digest.hexdigest
return digest.final.hexstring
end
def subscribe_pubsub(topic, key, config)