stripe_event 2.0.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +8 -7
- data/Appraisals +8 -8
- data/app/controllers/stripe_event/webhook_controller.rb +4 -0
- data/gemfiles/{rails5.0.gemfile → rails5.2.gemfile} +1 -1
- data/gemfiles/{rails4.1.gemfile → rails_master.gemfile} +1 -1
- data/lib/stripe_event/version.rb +1 -1
- data/spec/dummy/config/initializers/new_framework_defaults_5_2.rb +4 -0
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a52368767b30c28e92ebf64e7ff30612ac619290ad20e68bbfe722df08d4692b
|
4
|
+
data.tar.gz: c59ec530c237cee41067a6f66cdd10d5f3be759e4f661b48656aeb8d0cb508e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cef390de99616809fc7da580e9447420a6b78048618339a0352e2df485a98239d7bac00b19d2a9fcb2ec68312b2dbc7c5a7fb724b7ecdef53008aed5f857c1d
|
7
|
+
data.tar.gz: 6878b61c5766dd21346cb633e7ad85797bf6b0aae9fbf63f612cfe279f3aaf34b784e0e940dc5014cd8224c2925f4a7081a7bce1458a491a91567dad100c2490
|
data/.travis.yml
CHANGED
@@ -3,21 +3,22 @@ cache: bundler
|
|
3
3
|
sudo: false
|
4
4
|
|
5
5
|
rvm:
|
6
|
-
- 2.
|
7
|
-
- 2.3
|
6
|
+
- 2.3.6
|
7
|
+
- 2.4.3
|
8
|
+
- 2.5.0
|
8
9
|
|
9
10
|
gemfile:
|
10
|
-
- gemfiles/rails4.1.gemfile
|
11
11
|
- gemfiles/rails4.2.gemfile
|
12
|
-
- gemfiles/rails5.0.gemfile
|
13
12
|
- gemfiles/rails5.1.gemfile
|
13
|
+
- gemfiles/rails5.2.gemfile
|
14
|
+
- gemfiles/rails_master.gemfile
|
14
15
|
|
15
16
|
matrix:
|
16
17
|
include:
|
17
|
-
- rvm: 2.
|
18
|
+
- rvm: 2.3.6
|
18
19
|
gemfile: gemfiles/rails3.2.gemfile
|
19
|
-
|
20
|
-
|
20
|
+
allow_failures:
|
21
|
+
- gemfile: gemfiles/rails_master.gemfile
|
21
22
|
fast_finish: true
|
22
23
|
|
23
24
|
notifications:
|
data/Appraisals
CHANGED
@@ -3,18 +3,18 @@ appraise "rails3.2" do
|
|
3
3
|
gem "test-unit", "~> 3.0"
|
4
4
|
end
|
5
5
|
|
6
|
-
appraise "rails4.1" do
|
7
|
-
gem "rails", "~> 4.1.0"
|
8
|
-
end
|
9
|
-
|
10
6
|
appraise "rails4.2" do
|
11
7
|
gem "rails", "~> 4.2.0"
|
12
8
|
end
|
13
9
|
|
14
|
-
appraise "rails5.0" do
|
15
|
-
gem "rails", "~> 5.0.0"
|
16
|
-
end
|
17
|
-
|
18
10
|
appraise "rails5.1" do
|
19
11
|
gem "rails", "~> 5.1.0"
|
20
12
|
end
|
13
|
+
|
14
|
+
appraise "rails5.2" do
|
15
|
+
gem "rails", ">= 5.2.0.rc1", "< 5.3"
|
16
|
+
end
|
17
|
+
|
18
|
+
appraise "rails_master" do
|
19
|
+
gem "rails", github: "rails"
|
20
|
+
end
|
@@ -1,5 +1,9 @@
|
|
1
1
|
module StripeEvent
|
2
2
|
class WebhookController < ActionController::Base
|
3
|
+
if Rails.application.config.action_controller.default_protect_from_forgery
|
4
|
+
skip_before_action :verify_authenticity_token
|
5
|
+
end
|
6
|
+
|
3
7
|
def event
|
4
8
|
StripeEvent.instrument(verified_event)
|
5
9
|
head :ok
|
data/lib/stripe_event/version.rb
CHANGED
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.1.1
|
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: 2018-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -147,10 +147,10 @@ files:
|
|
147
147
|
- app/controllers/stripe_event/webhook_controller.rb
|
148
148
|
- config/routes.rb
|
149
149
|
- gemfiles/rails3.2.gemfile
|
150
|
-
- gemfiles/rails4.1.gemfile
|
151
150
|
- gemfiles/rails4.2.gemfile
|
152
|
-
- gemfiles/rails5.0.gemfile
|
153
151
|
- gemfiles/rails5.1.gemfile
|
152
|
+
- gemfiles/rails5.2.gemfile
|
153
|
+
- gemfiles/rails_master.gemfile
|
154
154
|
- lib/stripe_event.rb
|
155
155
|
- lib/stripe_event/engine.rb
|
156
156
|
- lib/stripe_event/version.rb
|
@@ -173,6 +173,7 @@ files:
|
|
173
173
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
174
174
|
- spec/dummy/config/initializers/inflections.rb
|
175
175
|
- spec/dummy/config/initializers/mime_types.rb
|
176
|
+
- spec/dummy/config/initializers/new_framework_defaults_5_2.rb
|
176
177
|
- spec/dummy/config/initializers/secret_token.rb
|
177
178
|
- spec/dummy/config/initializers/session_store.rb
|
178
179
|
- spec/dummy/config/initializers/stripe.rb
|
@@ -218,10 +219,10 @@ summary: Stripe webhook integration for Rails applications.
|
|
218
219
|
test_files:
|
219
220
|
- Appraisals
|
220
221
|
- gemfiles/rails3.2.gemfile
|
221
|
-
- gemfiles/rails4.1.gemfile
|
222
222
|
- gemfiles/rails4.2.gemfile
|
223
|
-
- gemfiles/rails5.0.gemfile
|
224
223
|
- gemfiles/rails5.1.gemfile
|
224
|
+
- gemfiles/rails5.2.gemfile
|
225
|
+
- gemfiles/rails_master.gemfile
|
225
226
|
- spec/controllers/webhook_controller_spec.rb
|
226
227
|
- spec/dummy/README.rdoc
|
227
228
|
- spec/dummy/Rakefile
|
@@ -241,6 +242,7 @@ test_files:
|
|
241
242
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
242
243
|
- spec/dummy/config/initializers/inflections.rb
|
243
244
|
- spec/dummy/config/initializers/mime_types.rb
|
245
|
+
- spec/dummy/config/initializers/new_framework_defaults_5_2.rb
|
244
246
|
- spec/dummy/config/initializers/secret_token.rb
|
245
247
|
- spec/dummy/config/initializers/session_store.rb
|
246
248
|
- spec/dummy/config/initializers/stripe.rb
|