stripe_event 2.7.0 → 2.9.0
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 +4 -4
- data/.github/workflows/ci.yml +6 -4
- data/Appraisals +16 -0
- data/CHANGELOG.md +81 -55
- data/README.md +0 -1
- data/gemfiles/rails7.1.gemfile +7 -0
- data/gemfiles/stripe10.gemfile +7 -0
- data/gemfiles/stripe11.gemfile +7 -0
- data/gemfiles/stripe9.gemfile +7 -0
- data/lib/stripe_event/version.rb +1 -1
- data/spec/spec_helper.rb +0 -3
- data/stripe_event.gemspec +3 -4
- metadata +21 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ccb216941af5e191416caf6d05acc03bfad4b7ba4ed80fbb49a44211650a737
|
4
|
+
data.tar.gz: e340d77f96ca22b8b99cf6c93162651032b3f58f61b5ccb4d407fb09a70840f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c011157f7a63915912ebc23ae05885a839b4f1741ef07a4c3c0e0b54a05dd2c9c6aa4b0e4fac38b34d5ed08974ea6cd19c2474c48bf436dc4d74b5256da1ac0
|
7
|
+
data.tar.gz: '0539367cc4ae4df8dabc1c91292fa2ee787e9f0406a3bbb4afd068318c4d35504ee42cecf9ef32cce17ac37c9be18f61e22a777f3b16dd84f0c4d44e5aaf7274'
|
data/.github/workflows/ci.yml
CHANGED
@@ -10,20 +10,22 @@ jobs:
|
|
10
10
|
runs-on: ubuntu-latest
|
11
11
|
strategy:
|
12
12
|
matrix:
|
13
|
-
ruby: ["
|
13
|
+
ruby: ["3.0", "3.1", "3.2"]
|
14
14
|
bundler: [default]
|
15
15
|
gemfile:
|
16
16
|
- rails6.0
|
17
17
|
- rails6.1
|
18
18
|
- rails7.0
|
19
|
+
- rails7.1
|
19
20
|
- stripe5
|
20
21
|
- stripe6
|
21
22
|
- stripe7
|
22
23
|
- stripe8
|
24
|
+
- stripe9
|
25
|
+
- stripe10
|
26
|
+
- stripe11
|
23
27
|
include:
|
24
28
|
- { ruby: "2.3", gemfile: "rails3.2", bundler: "1" }
|
25
|
-
- { ruby: "2.3", gemfile: "rails4.2", bundler: "1" }
|
26
|
-
- { ruby: "2.4", gemfile: "rails4.2", bundler: "1" }
|
27
29
|
- { ruby: "2.5", gemfile: "rails5.1", bundler: "default" }
|
28
30
|
- { ruby: "2.5", gemfile: "rails5.2", bundler: "default" }
|
29
31
|
- { ruby: "2.6", gemfile: "rails5.2", bundler: "default" }
|
@@ -40,7 +42,7 @@ jobs:
|
|
40
42
|
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
41
43
|
steps:
|
42
44
|
# https://github.com/marketplace/actions/checkout
|
43
|
-
- uses: actions/checkout@
|
45
|
+
- uses: actions/checkout@v4
|
44
46
|
# https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
45
47
|
- name: Set up Ruby
|
46
48
|
uses: ruby/setup-ruby@v1
|
data/Appraisals
CHANGED
@@ -27,6 +27,10 @@ appraise "rails7.0" do
|
|
27
27
|
gem "rails", "~> 7.0.0"
|
28
28
|
end
|
29
29
|
|
30
|
+
appraise "rails7.1" do
|
31
|
+
gem "rails", "~> 7.1.0"
|
32
|
+
end
|
33
|
+
|
30
34
|
appraise "stripe3" do
|
31
35
|
gem "stripe", "~> 3.0"
|
32
36
|
end
|
@@ -51,6 +55,18 @@ appraise "stripe8" do
|
|
51
55
|
gem "stripe", "~> 8.0"
|
52
56
|
end
|
53
57
|
|
58
|
+
appraise "stripe9" do
|
59
|
+
gem "stripe", "~> 9.0"
|
60
|
+
end
|
61
|
+
|
62
|
+
appraise "stripe10" do
|
63
|
+
gem "stripe", "~> 10.0"
|
64
|
+
end
|
65
|
+
|
66
|
+
appraise "stripe11" do
|
67
|
+
gem "stripe", "~> 11.0"
|
68
|
+
end
|
69
|
+
|
54
70
|
appraise "rails_master" do
|
55
71
|
gem "rails", github: "rails"
|
56
72
|
end
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
### [Unreleased] - TBD
|
2
2
|
|
3
|
+
-
|
4
|
+
|
5
|
+
### 2.9.0 (Apr 22, 2024)
|
6
|
+
|
7
|
+
- Add Stripe 11 support (#165)
|
8
|
+
|
9
|
+
### 2.8.0 (Mar 18, 2024)
|
10
|
+
|
11
|
+
- Add Stripe 9 support (#162)
|
12
|
+
- Add Stripe 10 support (#163)
|
13
|
+
|
3
14
|
### 2.7.0 (Nov 27, 2022)
|
4
15
|
|
5
16
|
- Add Stripe 8 support (#159)
|
@@ -59,107 +70,122 @@
|
|
59
70
|
### 1.9.1 (December 5, 2017)
|
60
71
|
|
61
72
|
This release is in preparation for some backward incompatible changes due to
|
62
|
-
arrive in v2.0.0.
|
73
|
+
arrive in v2.0.0. It is highly recommended that everyone secure their webhook
|
63
74
|
endpoints by using `StripeEvent.signing_secret`. See the README and [Stripe's
|
64
75
|
documentation](https://stripe.com/docs/webhooks#signatures) for more
|
65
76
|
information.
|
66
77
|
|
67
|
-
|
68
|
-
|
78
|
+
- Deprecate `StripeEvent.authentication_secret` (#96)
|
79
|
+
- Deprecate unverified use of Stripe's webhooks (#96)
|
69
80
|
|
70
81
|
### 1.9.0 (November 30, 2017)
|
71
82
|
|
72
|
-
|
83
|
+
- Support for Rails 5.1 (#94, Thanks @krasnoukhov and @simplepractice!)
|
73
84
|
|
74
85
|
### 1.8.0 (August 29, 2017)
|
75
86
|
|
76
|
-
|
77
|
-
|
87
|
+
- Support for [Stripe's Webhook Signature Verification](https://stripe.com/docs/webhooks#signatures) (#83, #90, Thanks @mikeycgto!)
|
88
|
+
- Secure compare during basic authentication check (#91, Thanks @mikeycgto!)
|
78
89
|
|
79
90
|
### 1.7.0 (July 5, 2017)
|
80
91
|
|
81
|
-
|
92
|
+
- Support stripe v3 gem as a dependency (#87)
|
82
93
|
|
83
94
|
### 1.6.0 (February 27, 2017)
|
84
95
|
|
85
|
-
|
96
|
+
- Support stripe v2 gem as a dependency (#82, b3cee03)
|
86
97
|
|
87
98
|
### 1.5.1 (September 20, 2016)
|
88
99
|
|
89
|
-
|
100
|
+
- Better Rails 5 support. Prefer `before_action` over `before_filter`. (#69, Thanks @mcolyer)
|
90
101
|
|
91
102
|
### 1.5.0 (February 25, 2015)
|
92
|
-
|
93
|
-
|
103
|
+
|
104
|
+
- Added [replay attack protection](https://github.com/integrallis/stripe_event#securing-your-webhook-endpoint) on webhooks. See `StripeEvent.authentication_secret`. Thanks @brentdax for both the initial discussion and the implementation! #53, #55
|
105
|
+
- Dropped official support for Rails 3.1 and Rails 4.0
|
94
106
|
|
95
107
|
### 1.4.0 (November 1, 2014)
|
96
|
-
|
108
|
+
|
109
|
+
- Add `StripeEvent.listening?` method to easily determine if an event type has any registered handlers. Thank you to [Vladimir Andrijevik](https://github.com/vandrijevik) for the [idea and implementation](https://github.com/integrallis/stripe_event/pull/42).
|
97
110
|
|
98
111
|
### 1.3.0 (July 22, 2014)
|
99
|
-
|
112
|
+
|
113
|
+
- Allow for ignoring particular events. Thank you to [anark](https://github.com/anark) for suggesting the change, and [Ryan McGeary](https://github.com/rmm5t) and [Pete Keen](https://github.com/peterkeen) for working on the implementation.
|
100
114
|
|
101
115
|
### 1.2.0 (June 17, 2014)
|
102
|
-
|
116
|
+
|
117
|
+
- Gracefully authenticate `account.application.deauthorized` events. Thank you to [Ryan McGeary](https://github.com/rmm5t) for the pull request and for taking the time to test the change in a live environment.
|
103
118
|
|
104
119
|
### 1.1.0 (January 8, 2014)
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
120
|
+
|
121
|
+
- Deprecate `StripeEvent.setup` in favor of `StripeEvent.configure`. Remove `setup` at next major release.
|
122
|
+
- `StripeEvent.configure` yields the module to the block for configuration.
|
123
|
+
- `StripeEvent.configure` will raise `ArgumentError` unless a block is given.
|
124
|
+
- Track test coverage
|
109
125
|
|
110
126
|
### 1.0.0 (December 19, 2013)
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
127
|
+
|
128
|
+
- Internally namespace dispatched events to avoid maintaining a list of all possible event types.
|
129
|
+
- Subscribe to all event types with `StripeEvent.all` instead of `StripeEvent.subscribe`.
|
130
|
+
- Remove ability to subscribe to many event types with once call to `StripeEvent.subscribe`.
|
131
|
+
- Subscribers can be an object that responds to #call.
|
132
|
+
- Allow subscriber-generated `Stripe::StripeError`'s to bubble up. Thank you to [adamonduty](https://github.com/adamonduty) for the [patch](https://github.com/integrallis/stripe_event/pull/26).
|
133
|
+
- Only depend on `stripe` and `activesupport` gems.
|
134
|
+
- Add `rails` as a development dependency.
|
135
|
+
- Only `require 'stripe_event/engine'` if `Rails` constant exists to allow StripeEvent to be used outside of a Rails application.
|
119
136
|
|
120
137
|
### 0.6.1 (August 19, 2013)
|
121
|
-
|
122
|
-
|
138
|
+
|
139
|
+
- Update event type list
|
140
|
+
- Update test gemfiles
|
123
141
|
|
124
142
|
### 0.6.0 (March 18, 2013)
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
143
|
+
|
144
|
+
- Rails 4 compatibility. Thank you to Ben Ubois for reporting the [issue](https://github.com/integrallis/stripe_event/issues/13) and to Matt Goldman for the [pull request](https://github.com/integrallis/stripe_event/pull/14).
|
145
|
+
- Run specs against different Rails versions
|
146
|
+
- Refactor internal usage of AS::Notifications
|
147
|
+
- Remove jruby-openssl as platform conditional dependency
|
129
148
|
|
130
149
|
### 0.5.0 (December 16, 2012)
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
150
|
+
|
151
|
+
- Remove `Gemfile.lock` from version control
|
152
|
+
- Internal event type list is now a set
|
153
|
+
- Update event type list
|
154
|
+
- Various internal refactorings
|
155
|
+
- More readable tests
|
136
156
|
|
137
157
|
### 0.4.0 (September 24, 2012)
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
158
|
+
|
159
|
+
- Add configuration for custom event retrieval. Thanks to Dan Hodos for the [pull request](https://github.com/integrallis/stripe_event/pull/6).
|
160
|
+
- Move module methods only used in tests into a test helper.
|
161
|
+
- Various internal refactorings and additional tests.
|
162
|
+
- Error classes will inherit from a base error class now.
|
142
163
|
|
143
164
|
### 0.3.1 (August 14, 2012)
|
144
|
-
|
145
|
-
|
165
|
+
|
166
|
+
- Fix controller inheritance issue. Thanks to Christopher Baran for [reporting the bug](https://github.com/integrallis/stripe_event/issues/1), and to Robert Bousquet for [fixing it](https://github.com/integrallis/stripe_event/pull/3).
|
167
|
+
- Deprecate registration method. Use 'setup' instead.
|
146
168
|
|
147
169
|
### 0.3.0 (July 16, 2012)
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
170
|
+
|
171
|
+
- Add registration method for conveniently adding many subscribers
|
172
|
+
- Depend on jruby-openssl when running on jruby
|
173
|
+
- Remove unneeded rake dependency
|
174
|
+
- Remove configure method
|
152
175
|
|
153
176
|
### 0.2.0 (July 12, 2012)
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
177
|
+
|
178
|
+
- Register a subscriber to one/many/all events
|
179
|
+
- Remove sqlite3 development dependency
|
180
|
+
- Setup travis-ci for repo
|
181
|
+
- Hard code a placeholder api key in dummy app. Fixes failing tests when env var not defined.
|
158
182
|
|
159
183
|
### 0.1.1 (July 4, 2012)
|
160
|
-
|
161
|
-
|
162
|
-
|
184
|
+
|
185
|
+
- Improve README
|
186
|
+
- Specify development dependency versions
|
187
|
+
- Fix controller test which was passing incorrectly
|
163
188
|
|
164
189
|
### 0.1.0 (June 24, 2012)
|
165
|
-
|
190
|
+
|
191
|
+
- Initial release
|
data/README.md
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
[](https://github.com/integrallis/stripe_event/actions?query=workflow%3ACI)
|
4
4
|
[](http://badge.fury.io/rb/stripe_event)
|
5
5
|
[](https://codeclimate.com/github/integrallis/stripe_event)
|
6
|
-
[](https://coveralls.io/r/integrallis/stripe_event)
|
7
6
|
[](https://rubygems.org/gems/stripe_event)
|
8
7
|
|
9
8
|
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`.
|
data/lib/stripe_event/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
data/stripe_event.gemspec
CHANGED
@@ -18,12 +18,11 @@ 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", "< 12"]
|
22
22
|
|
23
23
|
s.add_development_dependency "appraisal"
|
24
|
-
s.add_development_dependency "coveralls"
|
25
24
|
s.add_development_dependency "rails", [">= 3.1"]
|
26
25
|
s.add_development_dependency "rake"
|
27
|
-
s.add_development_dependency "rspec-rails"
|
28
|
-
s.add_development_dependency "webmock"
|
26
|
+
s.add_development_dependency "rspec-rails"
|
27
|
+
s.add_development_dependency "webmock"
|
29
28
|
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.9.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: 2024-04-22 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: '12'
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '2.8'
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
46
|
+
version: '12'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: appraisal
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,20 +58,6 @@ dependencies:
|
|
58
58
|
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0'
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: coveralls
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - ">="
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '0'
|
68
|
-
type: :development
|
69
|
-
prerelease: false
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - ">="
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: '0'
|
75
61
|
- !ruby/object:Gem::Dependency
|
76
62
|
name: rails
|
77
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -104,30 +90,30 @@ dependencies:
|
|
104
90
|
name: rspec-rails
|
105
91
|
requirement: !ruby/object:Gem::Requirement
|
106
92
|
requirements:
|
107
|
-
- - "
|
93
|
+
- - ">="
|
108
94
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
95
|
+
version: '0'
|
110
96
|
type: :development
|
111
97
|
prerelease: false
|
112
98
|
version_requirements: !ruby/object:Gem::Requirement
|
113
99
|
requirements:
|
114
|
-
- - "
|
100
|
+
- - ">="
|
115
101
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
102
|
+
version: '0'
|
117
103
|
- !ruby/object:Gem::Dependency
|
118
104
|
name: webmock
|
119
105
|
requirement: !ruby/object:Gem::Requirement
|
120
106
|
requirements:
|
121
|
-
- - "
|
107
|
+
- - ">="
|
122
108
|
- !ruby/object:Gem::Version
|
123
|
-
version: '
|
109
|
+
version: '0'
|
124
110
|
type: :development
|
125
111
|
prerelease: false
|
126
112
|
version_requirements: !ruby/object:Gem::Requirement
|
127
113
|
requirements:
|
128
|
-
- - "
|
114
|
+
- - ">="
|
129
115
|
- !ruby/object:Gem::Version
|
130
|
-
version: '
|
116
|
+
version: '0'
|
131
117
|
description: Stripe webhook integration for Rails applications.
|
132
118
|
email: daniel.r.whalen@gmail.com
|
133
119
|
executables: []
|
@@ -153,13 +139,17 @@ files:
|
|
153
139
|
- gemfiles/rails6.0.gemfile
|
154
140
|
- gemfiles/rails6.1.gemfile
|
155
141
|
- gemfiles/rails7.0.gemfile
|
142
|
+
- gemfiles/rails7.1.gemfile
|
156
143
|
- gemfiles/rails_master.gemfile
|
144
|
+
- gemfiles/stripe10.gemfile
|
145
|
+
- gemfiles/stripe11.gemfile
|
157
146
|
- gemfiles/stripe3.gemfile
|
158
147
|
- gemfiles/stripe4.gemfile
|
159
148
|
- gemfiles/stripe5.gemfile
|
160
149
|
- gemfiles/stripe6.gemfile
|
161
150
|
- gemfiles/stripe7.gemfile
|
162
151
|
- gemfiles/stripe8.gemfile
|
152
|
+
- gemfiles/stripe9.gemfile
|
163
153
|
- lib/stripe_event.rb
|
164
154
|
- lib/stripe_event/engine.rb
|
165
155
|
- lib/stripe_event/version.rb
|
@@ -220,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
220
210
|
- !ruby/object:Gem::Version
|
221
211
|
version: '0'
|
222
212
|
requirements: []
|
223
|
-
rubygems_version: 3.
|
213
|
+
rubygems_version: 3.4.15
|
224
214
|
signing_key:
|
225
215
|
specification_version: 4
|
226
216
|
summary: Stripe webhook integration for Rails applications.
|
@@ -233,13 +223,17 @@ test_files:
|
|
233
223
|
- gemfiles/rails6.0.gemfile
|
234
224
|
- gemfiles/rails6.1.gemfile
|
235
225
|
- gemfiles/rails7.0.gemfile
|
226
|
+
- gemfiles/rails7.1.gemfile
|
236
227
|
- gemfiles/rails_master.gemfile
|
228
|
+
- gemfiles/stripe10.gemfile
|
229
|
+
- gemfiles/stripe11.gemfile
|
237
230
|
- gemfiles/stripe3.gemfile
|
238
231
|
- gemfiles/stripe4.gemfile
|
239
232
|
- gemfiles/stripe5.gemfile
|
240
233
|
- gemfiles/stripe6.gemfile
|
241
234
|
- gemfiles/stripe7.gemfile
|
242
235
|
- gemfiles/stripe8.gemfile
|
236
|
+
- gemfiles/stripe9.gemfile
|
243
237
|
- spec/controllers/webhook_controller_spec.rb
|
244
238
|
- spec/dummy/README.rdoc
|
245
239
|
- spec/dummy/Rakefile
|