pay 2.6.2 → 2.6.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pay might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ede4c2349750246031b8e9bc30e422282c2792e413ce4b684544e9643090f7d
4
- data.tar.gz: 58078419b690eea1b7b5aa291578b82032bf6edfca13b95c6b5919d1709f6dd0
3
+ metadata.gz: 429e92c76a90f5de0cec18dce219479de7ea172d6807c3b0d86d0a2fe4994b77
4
+ data.tar.gz: 85b9e46b65d4ea0fa0e7255cc47e1e5c60e55e14f18fee9c567c4befb0e1dac7
5
5
  SHA512:
6
- metadata.gz: a60bc2d27bdf7dfac9f14576397e97d7fea1b54042adc92e196347d04b6c63a5f7cf7054ee6c121bdbd955fc2fae2dc56488fdd83b7d1e0fddf4250683598c0f
7
- data.tar.gz: bf27ae24111a6d56b7f98fc2431f89894aa262e1d944975b1f2e63390b1be34132a651c9c0cce8857bf670e54c0bf666c512d08108229d5ef9d4b58710d6a7dd
6
+ metadata.gz: 577c6792e5ff3f60e01a02de38bdc414aa0c6178ec0927c6b5766051224f632f83d551a787888d196ac57cf7d4299786a5f1afbcfc0376b10b9115ca97c74dc7
7
+ data.tar.gz: dc0da5b5df00f672cc621acf89168f7b3c8c1f419aaa7c5802f015cfb3a4c6cf95284310fc776ca67e51da69c803a24d9c66b50407bd08044492abff1444eb00
data/README.md CHANGED
@@ -48,6 +48,13 @@ And then execute:
48
48
  bundle
49
49
  ```
50
50
 
51
+ Make sure you've configured your ActionMailer default_url_options so Pay can generate links to for features like Stripe Checkout.
52
+
53
+ ```ruby
54
+ # config/application.rb
55
+ config.action_mailer.default_url_options = { host: "example.com" }
56
+ ```
57
+
51
58
  #### Migrations
52
59
 
53
60
  To add the migrations to your application, run the following migration:
data/lib/pay/billable.rb CHANGED
@@ -42,7 +42,7 @@ module Pay
42
42
  end
43
43
 
44
44
  def processor
45
- super.inquiry
45
+ super&.inquiry
46
46
  end
47
47
 
48
48
  delegate :charge, to: :payment_processor
@@ -112,10 +112,12 @@ module Pay
112
112
  end
113
113
 
114
114
  def stripe?
115
+ ActiveSupport::Deprecation.warn("This will be removed in the next release. Use `@billable.processor.stripe?` instead.")
115
116
  processor == "stripe"
116
117
  end
117
118
 
118
119
  def braintree?
120
+ ActiveSupport::Deprecation.warn("This will be removed in the next release. Use `@billable.processor.braintree?` instead.")
119
121
  processor == "braintree"
120
122
  end
121
123
 
@@ -124,6 +126,7 @@ module Pay
124
126
  end
125
127
 
126
128
  def paddle?
129
+ ActiveSupport::Deprecation.warn("This will be removed in the next release. Use `@billable.processor.paddle?` instead.")
127
130
  processor == "paddle"
128
131
  end
129
132
 
@@ -14,7 +14,7 @@ module Pay
14
14
 
15
15
  class << self
16
16
  def default_url_options
17
- Rails.application.config.action_mailer.default_url_options
17
+ Rails.application.config.action_mailer.default_url_options || {}
18
18
  end
19
19
  end
20
20
 
data/lib/pay/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pay
2
- VERSION = "2.6.2"
2
+ VERSION = "2.6.3"
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: 2.6.2
4
+ version: 2.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Charnes
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-02-22 00:00:00.000000000 Z
12
+ date: 2021-02-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails