stripe-rails 2.2.0 → 2.3.2

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: 15856817d5ce2ac1b96f1ad4f6f93602b5b80f0790cfbbd56ae87c0d89654571
4
- data.tar.gz: 602743d7695c49114426acf961c7c7df1fd7e6d959cb1d00c860a729913847c3
3
+ metadata.gz: 209714ca692bff3f17dd0110e376363f10ad855576a989539e9ab5e1d3921f8f
4
+ data.tar.gz: 9693b59bc0ccfff844fea3c841078c891fb0da0235d07f692a8c7fe23b7ae433
5
5
  SHA512:
6
- metadata.gz: 29127701ac3cccb96aa0bd215f616fa83b41d55cfc40d41aaafd56ca0ca0a479822b4c473bfbe3d9fdb3dfac6d0061dd93e237a7a412811358952d0c97f51f60
7
- data.tar.gz: '07384662c64848e9e86bc592501b705e7879c8a8222dae408195b5b3b6fd8ef9e23cc6379d3f9dcd382dbe6806448a8978108f449984605de0232c81763c0423'
6
+ metadata.gz: ac5285be8f008cf3a15d2a9812bc9eed02685298a8c0a6079667dd9ee719bad46d977d409ca3ceb10c6e594ef2a5072abf4d1ad71bd83c85c8896de286942d73
7
+ data.tar.gz: 6b934140bf091757dc1ccf42aedcfff55adbb0dc81679ec709eba02b8b6b73deda291ca67ec4221e5d4d10b2a4762c5d0d57a61f02c1575a5acd4a736ff21b79
@@ -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/rails51.gemfile, gemfiles/rails52.gemfile]
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
@@ -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'
@@ -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,
@@ -1,5 +1,5 @@
1
1
  module Stripe
2
2
  module Rails
3
- VERSION = '2.2.0'.freeze
3
+ VERSION = '2.3.2'.freeze
4
4
  end
5
5
  end
@@ -7,6 +7,7 @@ describe 'building coupons' do
7
7
  describe 'default values' do
8
8
  before do
9
9
  @coupon = Stripe.coupon(:firesale) do |coupon|
10
+ coupon.name = '100% OFF FIRESALE'
10
11
  coupon.duration = 'once'
11
12
  coupon.duration_in_months = 100
12
13
  coupon.amount_off = 100
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.0
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: 2020-12-06 00:00:00.000000000 Z
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.1.4
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