stripe-rails 1.10.1 → 2.0.0.pre

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: 71f634d5d4a82d22c99a17ecc2bfdb313564c161d9fb8113cee4046b545b056f
4
- data.tar.gz: 62628badc191b1f737fdcbf1608e5d36cbfd264399dc94da98e9a59a2c07ff6f
3
+ metadata.gz: ebffd01386755b4675cdbdffc65daeb686342bde1e57ac21f4a7da025fe0d6ab
4
+ data.tar.gz: 69341ad24b03113c1f0ca9de29cd7e644ac4ccac33decc972c205ad86010baa7
5
5
  SHA512:
6
- metadata.gz: 99cab9c0756eae42185a33ca6a62f9ff3038e912b7f10492a9fa400b18663576cac483441041e805c34b603f38d67763bb639323bdb238033ff043d03c512a26
7
- data.tar.gz: 8969c43692b09fd949fbb0d6bb810e79fa7a1efab27c73e9147edf2ded0d16da1cc295ec09a7ddef8832932ce8460c50650f16a602766f299e97e0d04fcd1693
6
+ metadata.gz: 69409504a7e36670c46cbb1330b354b6e0ca78846eb5e665ef4cfa6adb5d4f247d1d39a24955edd0a61732de32c6706cc486f9c83c0770fbd8a5be71acff2cb7
7
+ data.tar.gz: 60c5e212ff5fd64e657148b6d55d620e595a323220423f09eabd626c79d0ffc0ee027214c54e857ad4f8c68c58f120cc068ca5705c6947262e685f92b7708b51
@@ -14,9 +14,8 @@ jobs:
14
14
 
15
15
  strategy:
16
16
  matrix:
17
- ruby: [2.4.x, 2.5.x, 2.6.x]
18
- gemfile: [Gemfile, gemfiles/rails51.gemfile, gemfiles/rails52.gemfile, gemfiles/rails4.gemfile]
19
-
17
+ ruby: [2.5.x, 2.6.x, 2.7.x]
18
+ gemfile: [Gemfile, gemfiles/rails51.gemfile, gemfiles/rails52.gemfile]
20
19
  steps:
21
20
  - uses: actions/checkout@v1
22
21
  - name: Set up Ruby
@@ -34,10 +33,8 @@ jobs:
34
33
  CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
35
34
  RUBY_VERSION: ${{ matrix.ruby }}
36
35
  run: |
37
- gem uninstall bundler
38
- gem install bundler -v 1.17.3
39
36
  bundle install --jobs 4 --retry 3
40
37
  bundle exec rake
41
- if [ `basename $BUNDLE_GEMFILE` == "Gemfile" ] && [ $RUBY_VERSION == "2.6.x" ] && [ ! -z ${CC_TEST_REPORTER_ID} ] ;
38
+ if [ `basename $BUNDLE_GEMFILE` == "Gemfile" ] && [ $RUBY_VERSION == "2.7.x" ] && [ ! -z ${CC_TEST_REPORTER_ID} ] ;
42
39
  then ./cc-test-reporter after-build --exit-code $? ;
43
40
  fi
@@ -2,6 +2,13 @@
2
2
 
3
3
  -
4
4
 
5
+ ## 2.0.0.pre (2020-05-29)
6
+
7
+ * [Breaking] Updated to work only with Rails >= 5.1
8
+ * [Breaking] It'll only be tested on Ruby 2.7, 2.6 and 2.5.
9
+ * [Breaking] Supports the Stripe gem => 3.15.0 (from 2 years ago)
10
+ * [Breaking] Removes Stripe::PingsController controller.
11
+
5
12
  ## 1.10.1 (2020-05-29)
6
13
 
7
14
  - adds missing callbacks for `payment_intent`. Thanks @klapperkopp .
data/Gemfile CHANGED
@@ -14,9 +14,9 @@ group :test do
14
14
  gem 'simplecov', '< 0.18', require: false
15
15
  gem 'stripe-ruby-mock'
16
16
  gem 'webmock'
17
- # Required for system tests
17
+ # System tests
18
18
  gem 'capybara'
19
- gem 'webdrivers'
20
19
  gem 'puma'
21
20
  gem 'selenium-webdriver'
22
- end
21
+ gem 'webdrivers'
22
+ end
@@ -105,10 +105,6 @@ module Stripe
105
105
  callback 'ping'
106
106
  callback 'stripe.event'
107
107
 
108
- # Deprecated
109
- callback 'transfer.failed' # https://stripe.com/docs/upgrades#2017-04-06
110
- callback 'transfer.paid' # https://stripe.com/docs/upgrades#2017-04-06
111
-
112
108
  class << self
113
109
  def run_callbacks(evt, target)
114
110
  _run_callbacks evt.type, evt, target
@@ -1,5 +1,5 @@
1
1
  module Stripe
2
2
  module Rails
3
- VERSION = '1.10.1'.freeze
3
+ VERSION = '2.0.0.pre'.freeze
4
4
  end
5
5
  end
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
14
14
  gem.name = "stripe-rails"
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = Stripe::Rails::VERSION
17
- gem.add_dependency 'rails', '>= 3'
18
- gem.add_dependency 'stripe', '>= 1.36.2'
17
+ gem.add_dependency 'rails', '>= 5.1'
18
+ gem.add_dependency 'stripe', '>= 3.15.0'
19
19
  gem.add_dependency 'responders'
20
20
  end
@@ -1,8 +1,3 @@
1
- require File.expand_path("null_system_test_case", __dir__)
2
-
3
- # For Rails 4 compat
4
- SystemTestCaseKlass = defined?(ActionDispatch::SystemTestCase) ? ActionDispatch::SystemTestCase : NullSystemTestCase
5
-
6
- class ApplicationSystemTestCase < SystemTestCaseKlass
1
+ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
7
2
  driven_by :selenium_chrome_headless
8
- end
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.1
4
+ version: 2.0.0.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Lowell
@@ -18,28 +18,28 @@ dependencies:
18
18
  requirements:
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: '3'
21
+ version: '5.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
- version: '3'
28
+ version: '5.1'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: stripe
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - ">="
34
34
  - !ruby/object:Gem::Version
35
- version: 1.36.2
35
+ version: 3.15.0
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 1.36.2
42
+ version: 3.15.0
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: responders
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -78,16 +78,13 @@ files:
78
78
  - app/assets/stripe/stripe_elements.js
79
79
  - app/controllers/stripe/application_controller.rb
80
80
  - app/controllers/stripe/events_controller.rb
81
- - app/controllers/stripe/pings_controller.rb
82
81
  - app/helpers/stripe/javascript_helper.rb
83
82
  - app/models/stripe/event_dispatch.rb
84
- - app/models/stripe/ping.rb
85
83
  - app/views/stripe/_elements.html.erb
86
84
  - app/views/stripe/_elements_js.html.erb
87
85
  - app/views/stripe/_js.html.erb
88
86
  - config/locales/en.yml
89
87
  - config/routes.rb
90
- - gemfiles/rails4.gemfile
91
88
  - gemfiles/rails51.gemfile
92
89
  - gemfiles/rails52.gemfile
93
90
  - lib/generators/stripe/install_generator.rb
@@ -158,7 +155,6 @@ files:
158
155
  - test/fixtures/stripe_plans_headers_2017.json
159
156
  - test/invoice.json
160
157
  - test/javascript_helper_spec.rb
161
- - test/pings_controller_spec.rb
162
158
  - test/plan_builder_spec.rb
163
159
  - test/product_builder_spec.rb
164
160
  - test/spec_helper.rb
@@ -166,7 +162,6 @@ files:
166
162
  - test/support/application_system_test_case.rb
167
163
  - test/support/callback_helpers.rb
168
164
  - test/support/fixture_loader.rb
169
- - test/support/null_system_test_case.rb
170
165
  - test/testing_spec.rb
171
166
  homepage: https://github.com/tansengming/stripe-rails
172
167
  licenses:
@@ -183,9 +178,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
183
178
  version: '0'
184
179
  required_rubygems_version: !ruby/object:Gem::Requirement
185
180
  requirements:
186
- - - ">="
181
+ - - ">"
187
182
  - !ruby/object:Gem::Version
188
- version: '0'
183
+ version: 1.3.1
189
184
  requirements: []
190
185
  rubygems_version: 3.1.2
191
186
  signing_key:
@@ -241,7 +236,6 @@ test_files:
241
236
  - test/fixtures/stripe_plans_headers_2017.json
242
237
  - test/invoice.json
243
238
  - test/javascript_helper_spec.rb
244
- - test/pings_controller_spec.rb
245
239
  - test/plan_builder_spec.rb
246
240
  - test/product_builder_spec.rb
247
241
  - test/spec_helper.rb
@@ -249,5 +243,4 @@ test_files:
249
243
  - test/support/application_system_test_case.rb
250
244
  - test/support/callback_helpers.rb
251
245
  - test/support/fixture_loader.rb
252
- - test/support/null_system_test_case.rb
253
246
  - test/testing_spec.rb
@@ -1,10 +0,0 @@
1
- module Stripe
2
- class PingsController < ::Stripe::ApplicationController
3
- respond_to :json
4
-
5
- def show
6
- @ping = Ping.new
7
- respond_with @ping
8
- end
9
- end
10
- end
@@ -1,9 +0,0 @@
1
- module Stripe
2
- class Ping
3
- attr_reader :message
4
-
5
- def initialize
6
- @message = "Your sound card works perfectly!"
7
- end
8
- end
9
- end
@@ -1,20 +0,0 @@
1
- source :rubygems
2
-
3
- gem 'rails', '~> 4.2'
4
- gem 'sprockets', '< 4'
5
-
6
- gem 'rake'
7
- gem 'responders', '~> 2.0' # to support Rails 4.2
8
- gem 'stripe'
9
-
10
- group :test do
11
- gem 'mocha'
12
- gem 'simplecov', require: false
13
- gem 'stripe-ruby-mock'
14
- gem 'webmock'
15
- # Required for system tests
16
- gem 'capybara'
17
- gem 'webdrivers'
18
- gem 'puma'
19
- gem 'selenium-webdriver'
20
- end
@@ -1,18 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Stripe::PingsController do
4
- parallelize_me!
5
- include Rack::Test::Methods
6
-
7
- let(:app) { Rails.application }
8
- before do
9
- header 'Accept', 'application/json'
10
- header 'Content-Type', 'application/json'
11
- end
12
-
13
- describe 'the ping interface' do
14
- subject { get '/stripe/ping' }
15
-
16
- it { _(subject).must_be :ok? }
17
- end
18
- end
@@ -1,11 +0,0 @@
1
- class NullSystemTestCase
2
- def self.driven_by(*_)
3
- end
4
-
5
- def self.setup
6
- end
7
-
8
- def self.test(_)
9
- warn 'WARNING: Skipping system test because this version of Rails does not support it!'
10
- end
11
- end