Skip to content

Commit 89c590c

Browse files
committed
Version 2.0 with Stripe SCA support
1 parent fd55741 commit 89c590c

File tree

141 files changed

+19867
-5195
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+19867
-5195
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@master
1515

16-
- name: Set up Ruby 2.6
17-
uses: actions/setup-ruby@v1
16+
- name: Set up Ruby 2.7
17+
- uses: ruby/setup-ruby@v1
1818
with:
19-
ruby-version: 2.6.x
19+
ruby-version: 2.7
2020

2121
- name: Cache gems
2222
uses: actions/cache@v1

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ test/dummy/db/*.sqlite3-journal
66
test/dummy/log/*.log
77
test/dummy/tmp/
88
.DS_Store
9+
.byebug_history
910

1011
# Releases
11-
pay-0.0.0.gem
12-
pay-0.0.1.gem
13-
pay-0.0.2.gem
12+
pay-*.gem

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
### Unreleased
1+
### 2.0.0
2+
3+
* [NEW] Stripe SCA support
4+
* [BREAKING] Requires using PaymentMethods instead of Source and Tokens
5+
* [BREAKING] Drops Ruby 2.4 support
6+
* [BREAKING] `automount_webhook_routes` config option has been renamed to `automount_routes`
7+
* [BREAKING]`webhooks_path` config option has been renamed to `routes_path`
8+
* Added `status` column to payments to keep in sync with Stripe. We're
9+
also adding statuses to Braintree subscriptions to keep them in sync as best we can.
10+
* Added `payments#show` route to handle SCA payments that require action
11+
* Added webhook handler for payments that require action
12+
* Added `trial_period_days` when creating a subscription that works the
13+
same on Stripe and Braintree
214

315
### 1.0.3
416

Gemfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
source 'https://rubygems.org'
1+
source "https://rubygems.org"
2+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
23

34
# Declare your gem's dependencies in pay.gemspec.
45
# Bundler will treat runtime dependencies like base dependencies, and

Gemfile.lock

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
pay (1.0.3)
4+
pay (2.0.0)
55
rails (>= 4.2)
66

77
GEM
@@ -74,7 +74,6 @@ GEM
7474
crack (0.4.3)
7575
safe_yaml (~> 1.0.0)
7676
crass (1.0.6)
77-
dante (0.2.0)
7877
erubi (1.9.0)
7978
globalid (0.4.2)
8079
activesupport (>= 4.2.0)
@@ -98,7 +97,6 @@ GEM
9897
minitest (~> 5.10)
9998
railties (~> 6.0.0)
10099
mocha (1.11.2)
101-
multi_json (1.14.1)
102100
nio4r (2.5.2)
103101
nokogiri (1.10.7)
104102
mini_portile2 (~> 2.4.0)
@@ -140,13 +138,15 @@ GEM
140138
thor (>= 0.20.3, < 2.0)
141139
rainbow (3.0.0)
142140
rake (13.0.1)
143-
rubocop (0.79.0)
141+
rubocop (0.77.0)
144142
jaro_winkler (~> 1.5.1)
145143
parallel (~> 1.10)
146-
parser (>= 2.7.0.1)
144+
parser (>= 2.6)
147145
rainbow (>= 2.2.2, < 4.0)
148146
ruby-progressbar (~> 1.7)
149147
unicode-display_width (>= 1.4.0, < 1.7)
148+
rubocop-performance (1.5.2)
149+
rubocop (>= 0.71.0)
150150
ruby-progressbar (1.10.1)
151151
safe_yaml (1.0.5)
152152
sprockets (4.0.0)
@@ -157,11 +157,12 @@ GEM
157157
activesupport (>= 4.0)
158158
sprockets (>= 3.0.0)
159159
sqlite3 (1.4.2)
160+
standard (0.1.7)
161+
rubocop (~> 0.77.0)
162+
rubocop-performance (~> 1.5.1)
163+
standardrb (1.0.0)
164+
standard
160165
stripe (5.14.0)
161-
stripe-ruby-mock (3.0.1)
162-
dante (>= 0.2.0)
163-
multi_json (~> 1.0)
164-
stripe (> 5, < 6)
165166
stripe_event (2.3.0)
166167
activesupport (>= 3.1)
167168
stripe (>= 2.8, < 6)
@@ -191,10 +192,9 @@ DEPENDENCIES
191192
mocha
192193
pay!
193194
pry
194-
rubocop (~> 0.7)
195195
sqlite3 (~> 1.4)
196-
stripe (~> 5.0)
197-
stripe-ruby-mock (~> 3.0)
196+
standardrb
197+
stripe (>= 2.8)
198198
stripe_event (~> 2.3)
199199
vcr
200200
webmock

0 commit comments

Comments
 (0)