stripe-rails 2.2.0 → 2.3.2
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 +19 -0
- 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 +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 209714ca692bff3f17dd0110e376363f10ad855576a989539e9ab5e1d3921f8f
|
4
|
+
data.tar.gz: 9693b59bc0ccfff844fea3c841078c891fb0da0235d07f692a8c7fe23b7ae433
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac5285be8f008cf3a15d2a9812bc9eed02685298a8c0a6079667dd9ee719bad46d977d409ca3ceb10c6e594ef2a5072abf4d1ad71bd83c85c8896de286942d73
|
7
|
+
data.tar.gz: 6b934140bf091757dc1ccf42aedcfff55adbb0dc81679ec709eba02b8b6b73deda291ca67ec4221e5d4d10b2a4762c5d0d57a61f02c1575a5acd4a736ff21b79
|
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,3 +1,22 @@
|
|
1
|
+
## Unreleased
|
2
|
+
|
3
|
+
## 2.3.2 (2021-10-15)
|
4
|
+
|
5
|
+
- Add Subscription Schedule and Tax Rate Callbacks #213 . Thanks @lesliepoolman !
|
6
|
+
|
7
|
+
## 2.3.1 (2021-09-17)
|
8
|
+
|
9
|
+
- Add price callbacks. Thanks @StevenElberger !
|
10
|
+
|
11
|
+
## 2.3.0 (2021-03-08)
|
12
|
+
|
13
|
+
- Adds testing for Rails 6.0
|
14
|
+
- Add `name` attribute to coupons. Thanks @ZilvinasKucinskas!
|
15
|
+
|
16
|
+
## 2.2.1 (2020-12-22)
|
17
|
+
|
18
|
+
- Add payment_intent.requires_action callback, thanks @VadimLeader.
|
19
|
+
|
1
20
|
## 2.2.0 (2020-12-06)
|
2
21
|
|
3
22
|
- Add Prices as a configuration object. Thanks @jamesprior!
|
@@ -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
@@ -68,6 +68,7 @@ module Stripe
|
|
68
68
|
callback 'payment_intent.created'
|
69
69
|
callback 'payment_intent.payment_failed'
|
70
70
|
callback 'payment_intent.processing'
|
71
|
+
callback 'payment_intent.requires_action'
|
71
72
|
callback 'payment_intent.succeeded'
|
72
73
|
callback 'payment_method.attached'
|
73
74
|
callback 'payment_method.card_automatically_updated'
|
@@ -81,6 +82,9 @@ module Stripe
|
|
81
82
|
callback 'plan.created'
|
82
83
|
callback 'plan.deleted'
|
83
84
|
callback 'plan.updated'
|
85
|
+
callback 'price.created'
|
86
|
+
callback 'price.deleted'
|
87
|
+
callback 'price.updated'
|
84
88
|
callback 'product.created'
|
85
89
|
callback 'product.deleted'
|
86
90
|
callback 'product.updated'
|
@@ -100,6 +104,15 @@ module Stripe
|
|
100
104
|
callback 'source.chargeable'
|
101
105
|
callback 'source.failed'
|
102
106
|
callback 'source.transaction.created'
|
107
|
+
callback 'subscription_schedule.aborted'
|
108
|
+
callback 'subscription_schedule.canceled'
|
109
|
+
callback 'subscription_schedule.completed'
|
110
|
+
callback 'subscription_schedule.created'
|
111
|
+
callback 'subscription_schedule.expiring'
|
112
|
+
callback 'subscription_schedule.released'
|
113
|
+
callback 'subscription_schedule.updated'
|
114
|
+
callback 'tax_rate.created'
|
115
|
+
callback 'tax_rate.updated'
|
103
116
|
callback 'transfer.created'
|
104
117
|
callback 'transfer.reversed'
|
105
118
|
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,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2
|
4
|
+
version: 2.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charles Lowell
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2021-10-15 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
|
@@ -187,7 +188,7 @@ 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
|
+
rubygems_version: 3.2.26
|
191
192
|
signing_key:
|
192
193
|
specification_version: 4
|
193
194
|
summary: A gem to integrate stripe into your rails app
|