stripe-rails 2.2.1 → 2.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f26ebab2bc444b8cfed817e5358c4ff1c22997809ccd3f5eb28247b668ae2e4f
4
- data.tar.gz: 45d0c174fd4f73b7fb0c1450893e6789b465deb323a8051b94f288856307e2ec
3
+ metadata.gz: 4e1778aaa249a48297d0f7c95ff5d893d3dcda21107d608ab6b262cf500b2a70
4
+ data.tar.gz: babf50def492764aba044d993a2acd8338161485dc96ae28eae8bb88dc0bc15b
5
5
  SHA512:
6
- metadata.gz: cbde57581c09ece4b1da730215b06aeaf4677e962e37315552bc325c920ca43f6572fe380337752d72839bece474cc03b44cf549908da1f231e83d56acb4ab0b
7
- data.tar.gz: a4892d8959859ecc41863be4fecd7570a294dfeb309e5cc470cebf745fb4cc507a589fea21bb5c2dcaaa6e0cdbe1269ff3801c23359c34755ce5a742a2bc7ff6
6
+ metadata.gz: 4a656096e3c1fa2988387a31b535dd879418466661e805a3351bfd6b0728c67bd9880146359d840fcffb18b50dfa940f207fb4916eede34c38685469b9060b8e
7
+ data.tar.gz: 812f9988e7bbc66f2eff2c433cf918c05732799bf5ecd5d9b161fa954ee7ec38a9a9715ac43332bd27782978b1c1142fcb531cd3ef053a9d61162a8822e969d5
@@ -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
@@ -2,9 +2,14 @@
2
2
 
3
3
  -
4
4
 
5
+ ## 2.3.0 (2021-03-08)
6
+
7
+ - Adds testing for Rails 6.0
8
+ - Add `name` attribute to coupons. Thanks @ZilvinasKucinskas!
9
+
5
10
  ## 2.2.1 (2020-12-22)
6
11
 
7
- - Add payment_intent.requires_action callback, thanks @VadimLeader.
12
+ - Add payment_intent.requires_action callback, thanks @VadimLeader.
8
13
 
9
14
  ## 2.2.0 (2020-12-06)
10
15
 
@@ -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
@@ -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.1'.freeze
3
+ VERSION = '2.3.0'.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.1
4
+ version: 2.3.0
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-22 00:00:00.000000000 Z
13
+ date: 2021-03-08 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.2.0
191
+ rubygems_version: 3.2.9
191
192
  signing_key:
192
193
  specification_version: 4
193
194
  summary: A gem to integrate stripe into your rails app