stripe-rails 1.10.2 → 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: 73acf591d97fe139b79c035da2794c439658693ad685e109e538c9e43d06fb8d
4
- data.tar.gz: 18ffadcb37501896be79ee56f57c48a8a3213b9330bca42d5edc17de92f5a3ba
3
+ metadata.gz: ebffd01386755b4675cdbdffc65daeb686342bde1e57ac21f4a7da025fe0d6ab
4
+ data.tar.gz: 69341ad24b03113c1f0ca9de29cd7e644ac4ccac33decc972c205ad86010baa7
5
5
  SHA512:
6
- metadata.gz: 29d167609bc9a3dd383acce2f4aaf1a833fe17158d12dfc08e87d164cd58e1da2a141009b6de127e04f8a03186e44f88f1bfffc019a93bfb45ff47545a57f77c
7
- data.tar.gz: 72c31c0977018cdd1fe81134aef5e888c2820ae7264d1c263f90a6521dd904ea7cfe9a3c1d8e4fa0982059365ff0c311649aec807534a607d018b2d0fe74e202
6
+ metadata.gz: 69409504a7e36670c46cbb1330b354b6e0ca78846eb5e665ef4cfa6adb5d4f247d1d39a24955edd0a61732de32c6706cc486f9c83c0770fbd8a5be71acff2cb7
7
+ data.tar.gz: 60c5e212ff5fd64e657148b6d55d620e595a323220423f09eabd626c79d0ffc0ee027214c54e857ad4f8c68c58f120cc068ca5705c6947262e685f92b7708b51
@@ -14,11 +14,8 @@ jobs:
14
14
 
15
15
  strategy:
16
16
  matrix:
17
- ruby: [2.4.x, 2.5.x, 2.6.x, 2.7.x]
18
- gemfile: [Gemfile, gemfiles/rails51.gemfile, gemfiles/rails52.gemfile, gemfiles/rails4.gemfile]
19
- exclude:
20
- - ruby: 2.7.x
21
- gemfile: gemfiles/rails4.gemfile
17
+ ruby: [2.5.x, 2.6.x, 2.7.x]
18
+ gemfile: [Gemfile, gemfiles/rails51.gemfile, gemfiles/rails52.gemfile]
22
19
  steps:
23
20
  - uses: actions/checkout@v1
24
21
  - name: Set up Ruby
@@ -36,8 +33,6 @@ jobs:
36
33
  CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
37
34
  RUBY_VERSION: ${{ matrix.ruby }}
38
35
  run: |
39
- gem uninstall bundler
40
- gem install bundler -v 1.17.3
41
36
  bundle install --jobs 4 --retry 3
42
37
  bundle exec rake
43
38
  if [ `basename $BUNDLE_GEMFILE` == "Gemfile" ] && [ $RUBY_VERSION == "2.7.x" ] && [ ! -z ${CC_TEST_REPORTER_ID} ] ;
@@ -1,8 +1,13 @@
1
1
  ## Unreleased
2
2
 
3
- ## 1.10.2 (2020-09-18)
3
+ -
4
4
 
5
- - adds missing callback `invoice.paid`. Thanks @SyborgStudios.
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.
6
11
 
7
12
  ## 1.10.1 (2020-05-29)
8
13
 
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
@@ -47,7 +47,6 @@ module Stripe
47
47
  callback 'invoice.created'
48
48
  callback 'invoice.finalized'
49
49
  callback 'invoice.marked_uncollectible'
50
- callback 'invoice.paid'
51
50
  callback 'invoice.payment_action_required'
52
51
  callback 'invoice.payment_failed'
53
52
  callback 'invoice.payment_succeeded'
@@ -106,10 +105,6 @@ module Stripe
106
105
  callback 'ping'
107
106
  callback 'stripe.event'
108
107
 
109
- # Deprecated
110
- callback 'transfer.failed' # https://stripe.com/docs/upgrades#2017-04-06
111
- callback 'transfer.paid' # https://stripe.com/docs/upgrades#2017-04-06
112
-
113
108
  class << self
114
109
  def run_callbacks(evt, target)
115
110
  _run_callbacks evt.type, evt, target
@@ -1,5 +1,5 @@
1
1
  module Stripe
2
2
  module Rails
3
- VERSION = '1.10.2'.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,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.2
4
+ version: 2.0.0.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Lowell
8
8
  - Nola Stowe
9
9
  - SengMing Tan
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-09-18 00:00:00.000000000 Z
13
+ date: 2020-05-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -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,13 +162,12 @@ 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:
173
168
  - MIT
174
169
  metadata: {}
175
- post_install_message:
170
+ post_install_message:
176
171
  rdoc_options: []
177
172
  require_paths:
178
173
  - lib
@@ -183,12 +178,12 @@ 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
- signing_key:
186
+ signing_key:
192
187
  specification_version: 4
193
188
  summary: A gem to integrate stripe into your rails app
194
189
  test_files:
@@ -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