stripe-rails 2.2.1 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +1 -1
- data/Changelog.md +6 -1
- data/gemfiles/rails60.gemfile +19 -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: 4e1778aaa249a48297d0f7c95ff5d893d3dcda21107d608ab6b262cf500b2a70
|
4
|
+
data.tar.gz: babf50def492764aba044d993a2acd8338161485dc96ae28eae8bb88dc0bc15b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a656096e3c1fa2988387a31b535dd879418466661e805a3351bfd6b0728c67bd9880146359d840fcffb18b50dfa940f207fb4916eede34c38685469b9060b8e
|
7
|
+
data.tar.gz: 812f9988e7bbc66f2eff2c433cf918c05732799bf5ecd5d9b161fa954ee7ec38a9a9715ac43332bd27782978b1c1142fcb531cd3ef053a9d61162a8822e969d5
|
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
@@ -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
|
-
-
|
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
|
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.
|
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:
|
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.
|
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
|