stripe_event 2.5.0 → 2.6.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04e746d341ec9847d041e56d9abfae58b7c76338f932050ea512f64e1ae56f7d
|
4
|
+
data.tar.gz: 7fa48ffb9b7bce0057ffa5234baebfa9bf5b5971936258f74a31bb4455d46b7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 353db17485cfcbb510965c1980b34c94b17ee43524d55b4cc7d0a02aebf5b6fef04629313f2ea9d09e5b28daa9f79d34328504cdc544c99fe1aba9f574193a21
|
7
|
+
data.tar.gz: fd6ac00dcff8aa8d15732288f4916bbe1d3a9093f0e674684bf1bdce4f3e6ec5256691d8beb8039bb7844386ba823f368bd68122052f0efbd2f8d86026249d3c
|
data/CHANGELOG.md
CHANGED
data/lib/stripe_event/version.rb
CHANGED
data/lib/stripe_event.rb
CHANGED
@@ -146,4 +146,14 @@ describe StripeEvent::WebhookController, type: :controller do
|
|
146
146
|
expect(response.code).to eq '200'
|
147
147
|
end
|
148
148
|
end
|
149
|
+
|
150
|
+
context "raising an error when things go bad and stripe should retry" do
|
151
|
+
before(:each) { StripeEvent.signing_secrets = [secret1] }
|
152
|
+
|
153
|
+
it "responds with 4xx" do
|
154
|
+
allow(StripeEvent).to receive(:instrument) { raise StripeEvent::ProcessError, "retry please" }
|
155
|
+
webhook_with_signature charge_succeeded, secret1
|
156
|
+
expect(response.code).to eq '422'
|
157
|
+
end
|
158
|
+
end
|
149
159
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe_event
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danny Whalen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|