stripe-rails 2.2.1 → 2.3.3
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/ruby.yml +1 -1
- data/Changelog.md +18 -2
- data/gemfiles/rails60.gemfile +19 -0
- data/lib/stripe/callbacks.rb +13 -0
- data/lib/stripe/coupons.rb +2 -1
- data/lib/stripe/rails/version.rb +1 -1
- data/test/coupon_builder_spec.rb +1 -0
- metadata +7 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a2142c5871696a4809195aeb596944ec07ccbead820086b02aeaf4e27a0f890c
|
|
4
|
+
data.tar.gz: 4ba66f5d6fd19d1ed7801b5a1ad6318aa0b67c95ab933026fec15b3d0751e607
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b5169053a8d7753ad76bd0c86d3fe13e953dd0b9eac69b844c5d1989b544d46d842dda70f21760ce10a56f2ef690ae7e06d3819929d64d5130f229ff5c68bc6c
|
|
7
|
+
data.tar.gz: e72cdf92ccde93d0379969701f1011fce8d0b3d25e0957c55b0580fd6dff862b942f224546a3f5e01c091cc2eb63b522a80f02fdd149b7eb5f44b86b99d83668
|
data/.github/workflows/ruby.yml
CHANGED
|
@@ -15,7 +15,7 @@ jobs:
|
|
|
15
15
|
strategy:
|
|
16
16
|
matrix:
|
|
17
17
|
ruby: [2.5.x, 2.6.x, 2.7.x]
|
|
18
|
-
gemfile: [Gemfile, gemfiles/
|
|
18
|
+
gemfile: [Gemfile, gemfiles/rails60.gemfile, gemfiles/rails52.gemfile, gemfiles/rails51.gemfile]
|
|
19
19
|
steps:
|
|
20
20
|
- uses: actions/checkout@v1
|
|
21
21
|
- name: Set up Ruby
|
data/Changelog.md
CHANGED
|
@@ -1,10 +1,26 @@
|
|
|
1
1
|
## Unreleased
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
## 2.3.3 (2021-12-17)
|
|
5
|
+
|
|
6
|
+
- Add checkout.session.expired callback. Thanks @danielwellman !
|
|
7
|
+
|
|
8
|
+
## 2.3.2 (2021-10-15)
|
|
9
|
+
|
|
10
|
+
- Add Subscription Schedule and Tax Rate Callbacks #213 . Thanks @lesliepoolman !
|
|
11
|
+
|
|
12
|
+
## 2.3.1 (2021-09-17)
|
|
13
|
+
|
|
14
|
+
- Add price callbacks. Thanks @StevenElberger !
|
|
15
|
+
|
|
16
|
+
## 2.3.0 (2021-03-08)
|
|
17
|
+
|
|
18
|
+
- Adds testing for Rails 6.0
|
|
19
|
+
- Add `name` attribute to coupons. Thanks @ZilvinasKucinskas!
|
|
4
20
|
|
|
5
21
|
## 2.2.1 (2020-12-22)
|
|
6
22
|
|
|
7
|
-
-
|
|
23
|
+
- Add payment_intent.requires_action callback, thanks @VadimLeader.
|
|
8
24
|
|
|
9
25
|
## 2.2.0 (2020-12-06)
|
|
10
26
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
source :rubygems
|
|
2
|
+
|
|
3
|
+
gem 'rails', '~> 6.0.0'
|
|
4
|
+
|
|
5
|
+
gem 'rake'
|
|
6
|
+
gem 'responders'
|
|
7
|
+
gem 'stripe'
|
|
8
|
+
|
|
9
|
+
group :test do
|
|
10
|
+
gem 'mocha'
|
|
11
|
+
gem 'simplecov', require: false
|
|
12
|
+
gem 'stripe-ruby-mock'
|
|
13
|
+
gem 'webmock'
|
|
14
|
+
# Required for system tests
|
|
15
|
+
gem 'capybara'
|
|
16
|
+
gem 'puma'
|
|
17
|
+
gem 'selenium-webdriver'
|
|
18
|
+
gem 'webdrivers'
|
|
19
|
+
end
|
data/lib/stripe/callbacks.rb
CHANGED
|
@@ -26,6 +26,7 @@ module Stripe
|
|
|
26
26
|
callback 'charge.dispute.updated'
|
|
27
27
|
callback 'charge.refund.updated'
|
|
28
28
|
callback 'checkout.session.completed'
|
|
29
|
+
callback 'checkout.session.expired'
|
|
29
30
|
callback 'coupon.created'
|
|
30
31
|
callback 'coupon.deleted'
|
|
31
32
|
callback 'coupon.updated'
|
|
@@ -82,6 +83,9 @@ module Stripe
|
|
|
82
83
|
callback 'plan.created'
|
|
83
84
|
callback 'plan.deleted'
|
|
84
85
|
callback 'plan.updated'
|
|
86
|
+
callback 'price.created'
|
|
87
|
+
callback 'price.deleted'
|
|
88
|
+
callback 'price.updated'
|
|
85
89
|
callback 'product.created'
|
|
86
90
|
callback 'product.deleted'
|
|
87
91
|
callback 'product.updated'
|
|
@@ -101,6 +105,15 @@ module Stripe
|
|
|
101
105
|
callback 'source.chargeable'
|
|
102
106
|
callback 'source.failed'
|
|
103
107
|
callback 'source.transaction.created'
|
|
108
|
+
callback 'subscription_schedule.aborted'
|
|
109
|
+
callback 'subscription_schedule.canceled'
|
|
110
|
+
callback 'subscription_schedule.completed'
|
|
111
|
+
callback 'subscription_schedule.created'
|
|
112
|
+
callback 'subscription_schedule.expiring'
|
|
113
|
+
callback 'subscription_schedule.released'
|
|
114
|
+
callback 'subscription_schedule.updated'
|
|
115
|
+
callback 'tax_rate.created'
|
|
116
|
+
callback 'tax_rate.updated'
|
|
104
117
|
callback 'transfer.created'
|
|
105
118
|
callback 'transfer.reversed'
|
|
106
119
|
callback 'transfer.updated'
|
data/lib/stripe/coupons.rb
CHANGED
|
@@ -3,7 +3,7 @@ module Stripe
|
|
|
3
3
|
include ConfigurationBuilder
|
|
4
4
|
|
|
5
5
|
configuration_for :coupon do
|
|
6
|
-
attr_accessor :duration, :amount_off, :currency, :duration_in_months, :max_redemptions, :percent_off, :redeem_by
|
|
6
|
+
attr_accessor :name, :duration, :amount_off, :currency, :duration_in_months, :max_redemptions, :percent_off, :redeem_by
|
|
7
7
|
|
|
8
8
|
validates_presence_of :id, :duration
|
|
9
9
|
validates_presence_of :duration_in_months, :if => :repeating?
|
|
@@ -25,6 +25,7 @@ module Stripe
|
|
|
25
25
|
|
|
26
26
|
def create_options
|
|
27
27
|
{
|
|
28
|
+
:name => name,
|
|
28
29
|
:duration => duration,
|
|
29
30
|
:percent_off => percent_off,
|
|
30
31
|
:amount_off => amount_off,
|
data/lib/stripe/rails/version.rb
CHANGED
data/test/coupon_builder_spec.rb
CHANGED
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: 2.
|
|
4
|
+
version: 2.3.3
|
|
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:
|
|
13
|
+
date: 2021-12-17 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rails
|
|
@@ -87,6 +87,7 @@ files:
|
|
|
87
87
|
- config/routes.rb
|
|
88
88
|
- gemfiles/rails51.gemfile
|
|
89
89
|
- gemfiles/rails52.gemfile
|
|
90
|
+
- gemfiles/rails60.gemfile
|
|
90
91
|
- lib/generators/stripe/install_generator.rb
|
|
91
92
|
- lib/generators/templates/coupons.rb
|
|
92
93
|
- lib/generators/templates/plans.rb
|
|
@@ -172,7 +173,7 @@ homepage: https://github.com/tansengming/stripe-rails
|
|
|
172
173
|
licenses:
|
|
173
174
|
- MIT
|
|
174
175
|
metadata: {}
|
|
175
|
-
post_install_message:
|
|
176
|
+
post_install_message:
|
|
176
177
|
rdoc_options: []
|
|
177
178
|
require_paths:
|
|
178
179
|
- lib
|
|
@@ -187,8 +188,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
187
188
|
- !ruby/object:Gem::Version
|
|
188
189
|
version: '0'
|
|
189
190
|
requirements: []
|
|
190
|
-
rubygems_version: 3.
|
|
191
|
-
signing_key:
|
|
191
|
+
rubygems_version: 3.1.6
|
|
192
|
+
signing_key:
|
|
192
193
|
specification_version: 4
|
|
193
194
|
summary: A gem to integrate stripe into your rails app
|
|
194
195
|
test_files:
|