Skip to content

Commit e9aef96

Browse files
authored
Rename associations (#1175)
* Rename charge and subscription associations to prevent conflicts * Version bump
1 parent 93eabd2 commit e9aef96

File tree

8 files changed

+24
-7
lines changed

8 files changed

+24
-7
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,23 @@
22

33
### Unreleased
44

5+
### 11.0.0
6+
7+
* [Breaking] Renames `pay_customer` associations for `charges` and `subscriptions` to prevent conflicts
8+
To upgrade, add the `pay_` prefix when referencing associations.
9+
10+
```ruby
11+
@user.pay_subscriptions
12+
@user.pay_charges
13+
```
14+
15+
* `on_trial?` and `trial_ended?` now consider if a `Pay::Subscription` was canceled. #1172
16+
* Stripe `cancel_now!` no longer sets `trial_ends_at` when there was no trial #1172
17+
* Stripe `cancel` and `cancel_now!` set values from the API response to match the values when syncing via webhooks. #1172
18+
* Stripe `Subscription#sync` now sets `trial_ends_at` to `nil` if the API response is also nil. #1172
19+
Previously, it would leave the value unmodified in the database but this ensures the value is always in sync with the Stripe API.
20+
* Braintree subscriptions that `cancel_now!` now consider their trial ended immediately to match.
21+
522
### 10.1.5
623

724
* Fix Stripe payment controller rescue

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
pay (10.1.5)
4+
pay (11.0.0)
55
rails (>= 7.0.0)
66

77
GEM

gemfiles/rails_7.0.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
pay (10.1.5)
4+
pay (11.0.0)
55
rails (>= 7.0.0)
66

77
GEM

gemfiles/rails_7.1.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
pay (10.1.5)
4+
pay (11.0.0)
55
rails (>= 7.0.0)
66

77
GEM

gemfiles/rails_7.2.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
pay (10.1.5)
4+
pay (11.0.0)
55
rails (>= 7.0.0)
66

77
GEM

gemfiles/rails_8.0.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: ..
33
specs:
4-
pay (10.1.5)
4+
pay (11.0.0)
55
rails (>= 7.0.0)
66

77
GEM

gemfiles/rails_main.gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ GIT
101101
PATH
102102
remote: ..
103103
specs:
104-
pay (10.1.5)
104+
pay (11.0.0)
105105
rails (>= 7.0.0)
106106

107107
GEM

lib/pay/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Pay
2-
VERSION = "10.1.5"
2+
VERSION = "11.0.0"
33
end

0 commit comments

Comments
 (0)