billionverify 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b77f3e2e6baf30a6896b2adbb21fe108abf610040a7208634fb07afc06c19f83
4
- data.tar.gz: d0643f4e316b57abd4c279f4157f8f56c6f4ce0a50effd48dc35f50b06dc565d
3
+ metadata.gz: efae458023f92cbdcc978b6cf368e9182ab5c3e67211d0dd0db5f3224d44405c
4
+ data.tar.gz: 0e6f3c770e756d0ac8105023787cb0bad85b511b77d9fa9059be629fdacccb55
5
5
  SHA512:
6
- metadata.gz: 848c1d61ab8ce1685895fdab124b60931536173e0db9501523c071fe500146a7cf03a885df8cc0e2c85646d019955a422101c36ff31fed4630020702e4641091
7
- data.tar.gz: 9e2bb0f3465703c61304fd9d05667ddcc77d937044e78352dc1e2b9bd29b7f8c3a1daff95b3f85d94fe4ea7e2f90c625a37580e661c00fd54bb0efa94e69e35d
6
+ metadata.gz: '0820f4af91529c3825c972417b0d467959b4c2a989b4ef62f471b1a78c8e032c12cda80c360ba8cac0a01d9db26a10ba35fd5df6251318f771f8484387130049'
7
+ data.tar.gz: 47c6b0308e70dc30dd821be7f5e1ddf7b49d059a4cdf63368f97835c92e2ac6bab97a08c6e6990634afcc2f7b8ce8b4da55bd46625ce3fd7c363bd24c093d72b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.1
4
+
5
+ - `WebhookSignature.valid?` returns false for an empty secret instead of checking against an empty key.
6
+ - Drop the RubyGems MFA requirement from the gemspec metadata.
7
+
3
8
  ## 1.0.0
4
9
 
5
10
  First release.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BillionVerify
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
@@ -22,6 +22,7 @@ module BillionVerify
22
22
  # @return [Boolean]
23
23
  def valid?(payload:, signature:, timestamp:, secret:, tolerance: DEFAULT_TOLERANCE, now: Time.now)
24
24
  return false if signature.nil? || timestamp.nil? || secret.nil? || payload.nil?
25
+ return false if secret.to_s.strip.empty?
25
26
 
26
27
  ts = Integer(timestamp.to_s, 10, exception: false)
27
28
  return false if ts.nil?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: billionverify
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - BillionVerify