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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 105a2243c1fcc5b1b89fd01661d786c0b7eef8c5cc0effaa82c872a2b34d136c
4
- data.tar.gz: 17bd105f6628735885b95f112cc13c177cb731eb51ef5d030b5d51c342296f80
3
+ metadata.gz: 46baaaa845f5afe4032955851befe69a526da79c2a1bf4f94a2e975372ba1910
4
+ data.tar.gz: aa22ef4ec0c9f3dc87344d08e7f7e15a410201af4769ec10bee34472b7770456
5
5
  SHA512:
6
- metadata.gz: 898e6c1e5f6067ca50debdc93c13c6a8becec96bbd308892fbbc6edc3240db2e76d95c8aeac775e17a19d926df27898af35f6b85088a27010c739f371cfde498
7
- data.tar.gz: f488fe73ef576fd167d3123af36d66ae29c57314853b1a7d5ad02ac37653924f2efa3dd41b4c0d25c8068054cd13b39fae60ed791c36cbd20c24fe7cbb0d4ba2
6
+ metadata.gz: 67417c2b273b58def7c26ae64556f0323a006d57041d41b052797fb6a04ea4d9e96bf8bea8c2fc4dfdaf6821bbb4e684c9dba837c7632d56ac0a209c65a36885
7
+ data.tar.gz: d06404ce89203065d0fc365ba981a8efe2fb1328d80fe1f450e72a702d7af570e9f2ba1684965412ee4bcc00f8fa3cc5e91f41bb6064f755518dcc22913687f4
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module S6kPay
4
- VERSION = "0.3.0"
4
+ VERSION = "0.4.0"
5
5
  end
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
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s6kpay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - s6kpay