stripe_event 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +16 -7
- data/Appraisals +8 -0
- data/CHANGELOG.md +11 -1
- data/README.md +2 -2
- data/gemfiles/rails6.0.gemfile +7 -0
- data/gemfiles/stripe5.gemfile +7 -0
- data/lib/stripe_event/version.rb +1 -1
- data/stripe_event.gemspec +4 -4
- metadata +37 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 622e6067f00eb0c34af4261c16e7ddee15a0dc3938d12121154827cd5fc78453
|
4
|
+
data.tar.gz: 0f5135cb03f10177a68bbb07762dfc43e8acdac1d4453fe795b3307673f75b3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fea8d1feadced10288c2f663b54cc6b497485a3b25e27d002330fe24c2fbb9e4d67d8beda3c555c1c9fa5beb8dece21987e5c4a514bde9cbb96aa540b1679c5e
|
7
|
+
data.tar.gz: 6087e16c92ea14b3e34381589763c0b27ccc2d67296f63f7368e56b3f24acfba895376edee81e890515dcfd50f8453364bfb6ece68f4912de0d5d5e2daf84cc4
|
data/.travis.yml
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
language: ruby
|
2
2
|
cache: bundler
|
3
|
-
sudo: false
|
4
3
|
|
5
4
|
rvm:
|
6
|
-
- 2.3
|
7
|
-
- 2.4
|
8
|
-
- 2.5
|
5
|
+
- 2.3
|
6
|
+
- 2.4
|
7
|
+
- 2.5
|
8
|
+
- 2.6
|
9
9
|
|
10
10
|
gemfile:
|
11
11
|
- gemfiles/rails4.2.gemfile
|
@@ -13,14 +13,23 @@ gemfile:
|
|
13
13
|
- gemfiles/rails5.2.gemfile
|
14
14
|
- gemfiles/stripe3.gemfile
|
15
15
|
- gemfiles/stripe4.gemfile
|
16
|
+
- gemfiles/stripe5.gemfile
|
16
17
|
|
17
18
|
matrix:
|
18
19
|
include:
|
19
|
-
- rvm: 2.3
|
20
|
+
- rvm: 2.3
|
20
21
|
gemfile: gemfiles/rails3.2.gemfile
|
21
|
-
|
22
|
-
|
22
|
+
- rvm: 2.5
|
23
|
+
gemfile: gemfiles/rails6.0.gemfile
|
24
|
+
- rvm: 2.6
|
25
|
+
gemfile: gemfiles/rails6.0.gemfile
|
26
|
+
- rvm: 2.6
|
23
27
|
gemfile: gemfiles/rails_master.gemfile
|
28
|
+
exclude:
|
29
|
+
- rvm: 2.5
|
30
|
+
gemfile: gemfiles/rails4.2.gemfile
|
31
|
+
- rvm: 2.6
|
32
|
+
gemfile: gemfiles/rails4.2.gemfile
|
24
33
|
allow_failures:
|
25
34
|
- gemfile: gemfiles/rails_master.gemfile
|
26
35
|
fast_finish: true
|
data/Appraisals
CHANGED
@@ -15,6 +15,10 @@ appraise "rails5.2" do
|
|
15
15
|
gem "rails", "~> 5.2.0"
|
16
16
|
end
|
17
17
|
|
18
|
+
appraise "rails6.0" do
|
19
|
+
gem "rails", "~> 6.0.0"
|
20
|
+
end
|
21
|
+
|
18
22
|
appraise "stripe3" do
|
19
23
|
gem "stripe", "~> 3.0"
|
20
24
|
end
|
@@ -23,6 +27,10 @@ appraise "stripe4" do
|
|
23
27
|
gem "stripe", "~> 4.0"
|
24
28
|
end
|
25
29
|
|
30
|
+
appraise "stripe5" do
|
31
|
+
gem "stripe", "~> 5.0"
|
32
|
+
end
|
33
|
+
|
26
34
|
appraise "rails_master" do
|
27
35
|
gem "rails", github: "rails"
|
28
36
|
end
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,14 @@
|
|
1
|
-
### 2.
|
1
|
+
### 2.3.0 (August 23, 2019)
|
2
|
+
|
3
|
+
- Add support for Stripe v5.x (#119)
|
4
|
+
- Add support for Rails v6.x to the build matrix (#119)
|
5
|
+
|
6
|
+
### 2.2.0 (December 6, 2018)
|
7
|
+
|
8
|
+
- Add support for Stripe v4.x (#119)
|
9
|
+
- Documentation Updates and Fixes (#113 and #117)
|
10
|
+
|
11
|
+
### 2.1.1 (January 31, 2018)
|
2
12
|
|
3
13
|
- Adds better support for Rails 5.2 (#105, #106, #107)
|
4
14
|
- `StripeEvent::WebhookController` now calls `skip_before_action :verify_authenticity_token` if `Rails.application.config.action_controller.default_protect_from_forgery` is set (as it is by default in Rails 5.2)
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
[![Coverage Status](https://coveralls.io/repos/integrallis/stripe_event/badge.svg)](https://coveralls.io/r/integrallis/stripe_event)
|
7
7
|
[![Gem Downloads](https://img.shields.io/gem/dt/stripe_event.svg)](https://rubygems.org/gems/stripe_event)
|
8
8
|
|
9
|
-
StripeEvent is built on the [ActiveSupport::Notifications API](http://api.rubyonrails.org/classes/ActiveSupport/Notifications.html). Incoming webhook requests are [authenticated with the webhook signature](#authenticating-webhooks-with-signatures
|
9
|
+
StripeEvent is built on the [ActiveSupport::Notifications API](http://api.rubyonrails.org/classes/ActiveSupport/Notifications.html). Incoming webhook requests are [authenticated with the webhook signature](#authenticating-webhooks-with-signatures). Define subscribers to handle specific event types. Subscribers can be a block or an object that responds to `#call`.
|
10
10
|
|
11
11
|
## Install
|
12
12
|
|
@@ -172,7 +172,7 @@ end
|
|
172
172
|
|
173
173
|
## Testing
|
174
174
|
|
175
|
-
Handling webhooks is a critical piece of modern billing systems. Verifying the behavior of StripeEvent subscribers can be done fairly easily by stubbing out the HTTP signature header used to authenticate the webhook request. Tools like [Webmock](https://github.com/bblimke/webmock) and [VCR](https://github.com/vcr/vcr) work well. [RequestBin](
|
175
|
+
Handling webhooks is a critical piece of modern billing systems. Verifying the behavior of StripeEvent subscribers can be done fairly easily by stubbing out the HTTP signature header used to authenticate the webhook request. Tools like [Webmock](https://github.com/bblimke/webmock) and [VCR](https://github.com/vcr/vcr) work well. [RequestBin](https://requestbin.com/) is great for collecting the payloads. For exploratory phases of development, [UltraHook](http://www.ultrahook.com/) and other tools can forward webhook requests directly to localhost. You can check out [test-hooks](https://github.com/invisiblefunnel/test-hooks), an example Rails application to see how to test StripeEvent subscribers with RSpec request specs and Webmock. A quick look:
|
176
176
|
|
177
177
|
```ruby
|
178
178
|
# spec/requests/billing_events_spec.rb
|
data/lib/stripe_event/version.rb
CHANGED
data/stripe_event.gemspec
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
$LOAD_PATH.push File.expand_path("lib", __dir__)
|
2
2
|
|
3
3
|
# Maintain your gem's version:
|
4
4
|
require "stripe_event/version"
|
@@ -18,12 +18,12 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.test_files = `git ls-files -- Appraisals {spec,gemfiles}/*`.split("\n")
|
19
19
|
|
20
20
|
s.add_dependency "activesupport", ">= 3.1"
|
21
|
-
s.add_dependency "stripe", [">= 2.8", "<
|
21
|
+
s.add_dependency "stripe", [">= 2.8", "< 6"]
|
22
22
|
|
23
|
+
s.add_development_dependency "appraisal"
|
24
|
+
s.add_development_dependency "coveralls"
|
23
25
|
s.add_development_dependency "rails", [">= 3.1"]
|
24
26
|
s.add_development_dependency "rake", "< 11.0"
|
25
27
|
s.add_development_dependency "rspec-rails", "~> 3.7"
|
26
28
|
s.add_development_dependency "webmock", "~> 1.9"
|
27
|
-
s.add_development_dependency "appraisal"
|
28
|
-
s.add_development_dependency "coveralls"
|
29
29
|
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.3.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:
|
11
|
+
date: 2019-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: '2.8'
|
34
34
|
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: '
|
36
|
+
version: '6'
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -43,91 +43,91 @@ dependencies:
|
|
43
43
|
version: '2.8'
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
46
|
+
version: '6'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
48
|
+
name: appraisal
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
53
|
+
version: '0'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
60
|
+
version: '0'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
62
|
+
name: coveralls
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- - "
|
65
|
+
- - ">="
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
67
|
+
version: '0'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- - "
|
72
|
+
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
74
|
+
version: '0'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
76
|
+
name: rails
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- - "
|
79
|
+
- - ">="
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '3.
|
81
|
+
version: '3.1'
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
|
-
- - "
|
86
|
+
- - ">="
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: '3.
|
88
|
+
version: '3.1'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
|
-
name:
|
90
|
+
name: rake
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
|
-
- - "
|
93
|
+
- - "<"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: '
|
95
|
+
version: '11.0'
|
96
96
|
type: :development
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
|
-
- - "
|
100
|
+
- - "<"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: '
|
102
|
+
version: '11.0'
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
|
-
name:
|
104
|
+
name: rspec-rails
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
|
-
- - "
|
107
|
+
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '3.7'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
|
-
- - "
|
114
|
+
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
116
|
+
version: '3.7'
|
117
117
|
- !ruby/object:Gem::Dependency
|
118
|
-
name:
|
118
|
+
name: webmock
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
|
-
- - "
|
121
|
+
- - "~>"
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version: '
|
123
|
+
version: '1.9'
|
124
124
|
type: :development
|
125
125
|
prerelease: false
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
|
-
- - "
|
128
|
+
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: '
|
130
|
+
version: '1.9'
|
131
131
|
description: Stripe webhook integration for Rails applications.
|
132
132
|
email: daniel.r.whalen@gmail.com
|
133
133
|
executables: []
|
@@ -150,9 +150,11 @@ files:
|
|
150
150
|
- gemfiles/rails4.2.gemfile
|
151
151
|
- gemfiles/rails5.1.gemfile
|
152
152
|
- gemfiles/rails5.2.gemfile
|
153
|
+
- gemfiles/rails6.0.gemfile
|
153
154
|
- gemfiles/rails_master.gemfile
|
154
155
|
- gemfiles/stripe3.gemfile
|
155
156
|
- gemfiles/stripe4.gemfile
|
157
|
+
- gemfiles/stripe5.gemfile
|
156
158
|
- lib/stripe_event.rb
|
157
159
|
- lib/stripe_event/engine.rb
|
158
160
|
- lib/stripe_event/version.rb
|
@@ -213,8 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
213
215
|
- !ruby/object:Gem::Version
|
214
216
|
version: '0'
|
215
217
|
requirements: []
|
216
|
-
|
217
|
-
rubygems_version: 2.7.6
|
218
|
+
rubygems_version: 3.0.3
|
218
219
|
signing_key:
|
219
220
|
specification_version: 4
|
220
221
|
summary: Stripe webhook integration for Rails applications.
|
@@ -224,9 +225,11 @@ test_files:
|
|
224
225
|
- gemfiles/rails4.2.gemfile
|
225
226
|
- gemfiles/rails5.1.gemfile
|
226
227
|
- gemfiles/rails5.2.gemfile
|
228
|
+
- gemfiles/rails6.0.gemfile
|
227
229
|
- gemfiles/rails_master.gemfile
|
228
230
|
- gemfiles/stripe3.gemfile
|
229
231
|
- gemfiles/stripe4.gemfile
|
232
|
+
- gemfiles/stripe5.gemfile
|
230
233
|
- spec/controllers/webhook_controller_spec.rb
|
231
234
|
- spec/dummy/README.rdoc
|
232
235
|
- spec/dummy/Rakefile
|