pay 8.1.3 → 8.2.0

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: 9c203986ec600312090922863e206b2136fc040e68cdab530575aa521501563b
4
- data.tar.gz: 9b0f5220d53a014148a3d7a58fc4c2f7fefd5b04fe92ced36c65decfabb4fd34
3
+ metadata.gz: 508c9227734d74f5b2bc54796fa176fb712d7028ac6a81eeeff6c3366b271190
4
+ data.tar.gz: f21dc281d1ab89d2bb11c77b41ebefeed886b193d98551b751a881faaf6b8733
5
5
  SHA512:
6
- metadata.gz: 60caf2d4f344da6c2581636ee8d03991ecf0462fb0a7e7c7c502031b733228499c58da2ff47b746401115798a760e2ca759909b9b33d76379c92fdc5168b3666
7
- data.tar.gz: b530d41e9f0b4ff493575c3b3b74e8af07ff27557f2bf090eefee9b175862e4b05c1b6c9f9515bf38291946074841bfdfcd4e1c2cf0e093a467773a74931e7ec
6
+ metadata.gz: 1ab54cc78bb095352008d705439e86081e2f8348e253ec610e04d39cbefb305a8e93999fc112379ad8ef0c614e3fe7e658532510bae92b6b405c195ddd65d154
7
+ data.tar.gz: 9908d0317fda0cd3c0f849fb43ef529c57b742442faa1278ac0ea9bd1c1aa326845acb009f87269ecaa3841c1ef53e686de1052b3909e55b98b379aa8a264eab
@@ -32,7 +32,11 @@ module Pay
32
32
  end
33
33
 
34
34
  def resumable?
35
- on_grace_period? || paused?
35
+ if data&.has_key?("resumable")
36
+ data["resumable"]
37
+ else
38
+ on_grace_period? || paused?
39
+ end
36
40
  end
37
41
 
38
42
  def resume
@@ -99,7 +99,7 @@ module Pay
99
99
  end
100
100
 
101
101
  def cancel_now!(**options)
102
- cancel(options.merge(effective_from: "immediately"))
102
+ cancel(**options.merge(effective_from: "immediately"))
103
103
  rescue ::Paddle::Error => e
104
104
  raise Pay::PaddleBilling::Error, e
105
105
  end
data/lib/pay/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pay
2
- VERSION = "8.1.3"
2
+ VERSION = "8.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pay
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.1.3
4
+ version: 8.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Charnes
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-10-29 00:00:00.000000000 Z
13
+ date: 2024-11-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  - !ruby/object:Gem::Version
181
181
  version: '0'
182
182
  requirements: []
183
- rubygems_version: 3.5.18
183
+ rubygems_version: 3.5.23
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: Payments engine for Ruby on Rails