s6kpay 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/s6kpay/version.rb +1 -1
- data/lib/s6kpay.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46baaaa845f5afe4032955851befe69a526da79c2a1bf4f94a2e975372ba1910
|
4
|
+
data.tar.gz: aa22ef4ec0c9f3dc87344d08e7f7e15a410201af4769ec10bee34472b7770456
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67417c2b273b58def7c26ae64556f0323a006d57041d41b052797fb6a04ea4d9e96bf8bea8c2fc4dfdaf6821bbb4e684c9dba837c7632d56ac0a209c65a36885
|
7
|
+
data.tar.gz: d06404ce89203065d0fc365ba981a8efe2fb1328d80fe1f450e72a702d7af570e9f2ba1684965412ee4bcc00f8fa3cc5e91f41bb6064f755518dcc22913687f4
|
data/lib/s6kpay/version.rb
CHANGED
data/lib/s6kpay.rb
CHANGED
@@ -42,9 +42,10 @@ module S6kPay
|
|
42
42
|
sorted_params = params.sort.to_h
|
43
43
|
query_str = sorted_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
44
44
|
signed_data = OpenSSL::HMAC.hexdigest("sha256", @options[:secret], query_str)
|
45
|
-
secure_hash == signed_data
|
45
|
+
return secure_hash == signed_data
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
49
49
|
class Error < StandardError; end
|
50
|
-
end
|
50
|
+
end
|
51
|
+
|