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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a15817b36adbede92cb27a9ceea978c9b0c54331a5dcf02b62fc92e1e0cd1ca
4
- data.tar.gz: '09022bc7c1330fa75f41cd676c841a47637438414e462e8a09aedbd7b06add6a'
3
+ metadata.gz: a52368767b30c28e92ebf64e7ff30612ac619290ad20e68bbfe722df08d4692b
4
+ data.tar.gz: c59ec530c237cee41067a6f66cdd10d5f3be759e4f661b48656aeb8d0cb508e3
5
5
  SHA512:
6
- metadata.gz: 4358816b6c78747d9c3b03179895cbb62bf63cf4e7a42ac3e0108447c7e2c63f361520112bd70815c550bbc53cf3c4024538c6253e4e0249a2d09ec7f208482a
7
- data.tar.gz: 19e6384d6cdbed7393a010f4c7b812c33ebe4f45beb01df90b5776327429f40c7a6e565497ea69b12706ef01a00e4a86d2e6f45e56f2c2dc5f42a4e3b952819f
6
+ metadata.gz: 0cef390de99616809fc7da580e9447420a6b78048618339a0352e2df485a98239d7bac00b19d2a9fcb2ec68312b2dbc7c5a7fb724b7ecdef53008aed5f857c1d
7
+ data.tar.gz: 6878b61c5766dd21346cb633e7ad85797bf6b0aae9fbf63f612cfe279f3aaf34b784e0e940dc5014cd8224c2925f4a7081a7bce1458a491a91567dad100c2490
@@ -3,21 +3,22 @@ cache: bundler
3
3
  sudo: false
4
4
 
5
5
  rvm:
6
- - 2.2.8
7
- - 2.3.5
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.1.10
18
+ - rvm: 2.3.6
18
19
  gemfile: gemfiles/rails3.2.gemfile
19
- - rvm: 2.4.2
20
- gemfile: gemfiles/rails5.1.gemfile
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~> 5.0.0"
5
+ gem "rails", ">= 5.2.0.rc1", "< 5.3"
6
6
 
7
7
  gemspec path: "../"
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~> 4.1.0"
5
+ gem "rails", github: "rails"
6
6
 
7
7
  gemspec path: "../"
@@ -1,3 +1,3 @@
1
1
  module StripeEvent
2
- VERSION = "2.0.0"
2
+ VERSION = "2.1.1"
3
3
  end
@@ -0,0 +1,4 @@
1
+ if Gem::Version.new(Rails::VERSION::STRING) > Gem::Version.new("5.1.999")
2
+ # New default in Rails 5.2
3
+ Rails.application.config.action_controller.default_protect_from_forgery = true
4
+ 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.0.0
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: 2017-12-14 00:00:00.000000000 Z
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