recurly 2.11.3 → 2.11.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/recurly.rb +18 -0
- data/lib/recurly/version.rb +1 -1
- metadata +45 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e3df40f9f11d5d004fa052ae8e050dfd43b262174b6bffdeb8727b914d3a102b
|
4
|
+
data.tar.gz: add471129aad67a7599a1d0cfcc4f74192f07f9e3ea4f46e3ef20e3a03a553b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8223bdf8af0e1f8327ec89eb34de782a7fb1c7445663bfa7961f5f547e53978e7bd0ae9122c4560e9224d121d5daa98e2af5dfaf117c3385a37d88448af99f4
|
7
|
+
data.tar.gz: c0494a00072ddad91b395394628257ee71f2ef5a008fa4fa0056f4ff03832ba2415f405d829669f93b169d93b1b584c57642f45e67dfe70d9c11ea86483f813c
|
data/lib/recurly.rb
CHANGED
@@ -87,6 +87,8 @@ module Recurly
|
|
87
87
|
end
|
88
88
|
|
89
89
|
# Assigns a logger to log requests/responses and more.
|
90
|
+
# The logger can only be set if the environment variable
|
91
|
+
# `RECURLY_INSECURE_DEBUG` equals `true`.
|
90
92
|
#
|
91
93
|
# @return [Logger, nil]
|
92
94
|
# @example
|
@@ -98,6 +100,22 @@ module Recurly
|
|
98
100
|
# Recurly.logger = nil # Or Recurly.logger = Logger.new nil
|
99
101
|
attr_accessor :logger
|
100
102
|
|
103
|
+
def logger=(logger)
|
104
|
+
if ENV['RECURLY_INSECURE_DEBUG'].to_s.downcase == 'true'
|
105
|
+
@logger = logger
|
106
|
+
puts <<-MSG
|
107
|
+
[WARNING] Recurly logger enabled. The logger has the potential to leak
|
108
|
+
PII and should never be used in production environments.
|
109
|
+
MSG
|
110
|
+
else
|
111
|
+
puts <<-MSG
|
112
|
+
[WARNING] Recurly logger has been disabled. If you wish to use it,
|
113
|
+
only do so in a non-production environment and make sure
|
114
|
+
the `RECURLY_INSECURE_DEBUG` environment variable is set to `true`.
|
115
|
+
MSG
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
101
119
|
# Convenience logging method includes a Logger#progname dynamically.
|
102
120
|
# @return [true, nil]
|
103
121
|
def log level, message
|
data/lib/recurly/version.rb
CHANGED
metadata
CHANGED
@@ -1,125 +1,139 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: recurly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.11.
|
4
|
+
version: 2.11.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Recurly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: nokogiri
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.7.1
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.7.1
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: rake
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
16
30
|
requirements:
|
17
|
-
- - ~>
|
31
|
+
- - "~>"
|
18
32
|
- !ruby/object:Gem::Version
|
19
33
|
version: '11.3'
|
20
34
|
type: :development
|
21
35
|
prerelease: false
|
22
36
|
version_requirements: !ruby/object:Gem::Requirement
|
23
37
|
requirements:
|
24
|
-
- - ~>
|
38
|
+
- - "~>"
|
25
39
|
- !ruby/object:Gem::Version
|
26
40
|
version: '11.3'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: minitest
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
|
-
- - ~>
|
45
|
+
- - "~>"
|
32
46
|
- !ruby/object:Gem::Version
|
33
47
|
version: 5.8.0
|
34
48
|
type: :development
|
35
49
|
prerelease: false
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
37
51
|
requirements:
|
38
|
-
- - ~>
|
52
|
+
- - "~>"
|
39
53
|
- !ruby/object:Gem::Version
|
40
54
|
version: 5.8.0
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: addressable
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
|
-
- - ~>
|
59
|
+
- - "~>"
|
46
60
|
- !ruby/object:Gem::Version
|
47
61
|
version: 2.4.0
|
48
62
|
type: :development
|
49
63
|
prerelease: false
|
50
64
|
version_requirements: !ruby/object:Gem::Requirement
|
51
65
|
requirements:
|
52
|
-
- - ~>
|
66
|
+
- - "~>"
|
53
67
|
- !ruby/object:Gem::Version
|
54
68
|
version: 2.4.0
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: webmock
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
|
-
- - ~>
|
73
|
+
- - "~>"
|
60
74
|
- !ruby/object:Gem::Version
|
61
75
|
version: 2.3.2
|
62
76
|
type: :development
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
|
-
- - ~>
|
80
|
+
- - "~>"
|
67
81
|
- !ruby/object:Gem::Version
|
68
82
|
version: 2.3.2
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: yard
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
|
-
- - ~>
|
87
|
+
- - "~>"
|
74
88
|
- !ruby/object:Gem::Version
|
75
89
|
version: 0.9.9
|
76
90
|
type: :development
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
|
-
- - ~>
|
94
|
+
- - "~>"
|
81
95
|
- !ruby/object:Gem::Version
|
82
96
|
version: 0.9.9
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: redcarpet
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
|
-
- -
|
101
|
+
- - ">="
|
88
102
|
- !ruby/object:Gem::Version
|
89
103
|
version: '0'
|
90
104
|
type: :development
|
91
105
|
prerelease: false
|
92
106
|
version_requirements: !ruby/object:Gem::Requirement
|
93
107
|
requirements:
|
94
|
-
- -
|
108
|
+
- - ">="
|
95
109
|
- !ruby/object:Gem::Version
|
96
110
|
version: '0'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: racc
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
100
114
|
requirements:
|
101
|
-
- -
|
115
|
+
- - ">="
|
102
116
|
- !ruby/object:Gem::Version
|
103
117
|
version: '0'
|
104
118
|
type: :development
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
107
121
|
requirements:
|
108
|
-
- -
|
122
|
+
- - ">="
|
109
123
|
- !ruby/object:Gem::Version
|
110
124
|
version: '0'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: pry
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
114
128
|
requirements:
|
115
|
-
- -
|
129
|
+
- - ">="
|
116
130
|
- !ruby/object:Gem::Version
|
117
131
|
version: '0'
|
118
132
|
type: :development
|
119
133
|
prerelease: false
|
120
134
|
version_requirements: !ruby/object:Gem::Requirement
|
121
135
|
requirements:
|
122
|
-
- -
|
136
|
+
- - ">="
|
123
137
|
- !ruby/object:Gem::Version
|
124
138
|
version: '0'
|
125
139
|
description: 'An API client library for Recurly: http://recurly.com'
|
@@ -130,16 +144,19 @@ extensions: []
|
|
130
144
|
extra_rdoc_files:
|
131
145
|
- README.md
|
132
146
|
files:
|
147
|
+
- README.md
|
148
|
+
- bin/recurly
|
133
149
|
- lib/rails/generators/recurly/config_generator.rb
|
134
150
|
- lib/rails/recurly.rb
|
151
|
+
- lib/recurly.rb
|
135
152
|
- lib/recurly/account.rb
|
136
153
|
- lib/recurly/account_balance.rb
|
137
154
|
- lib/recurly/add_on.rb
|
138
155
|
- lib/recurly/address.rb
|
139
156
|
- lib/recurly/adjustment.rb
|
157
|
+
- lib/recurly/api.rb
|
140
158
|
- lib/recurly/api/errors.rb
|
141
159
|
- lib/recurly/api/net_http_adapter.rb
|
142
|
-
- lib/recurly/api.rb
|
143
160
|
- lib/recurly/billing_info.rb
|
144
161
|
- lib/recurly/coupon.rb
|
145
162
|
- lib/recurly/delivery.rb
|
@@ -154,20 +171,21 @@ files:
|
|
154
171
|
- lib/recurly/plan.rb
|
155
172
|
- lib/recurly/purchase.rb
|
156
173
|
- lib/recurly/redemption.rb
|
174
|
+
- lib/recurly/resource.rb
|
157
175
|
- lib/recurly/resource/association.rb
|
158
176
|
- lib/recurly/resource/errors.rb
|
159
177
|
- lib/recurly/resource/pager.rb
|
160
|
-
- lib/recurly/resource.rb
|
161
178
|
- lib/recurly/shipping_address.rb
|
162
|
-
- lib/recurly/subscription/add_ons.rb
|
163
179
|
- lib/recurly/subscription.rb
|
180
|
+
- lib/recurly/subscription/add_ons.rb
|
164
181
|
- lib/recurly/subscription_add_on.rb
|
165
182
|
- lib/recurly/tax_detail.rb
|
166
183
|
- lib/recurly/tax_type.rb
|
167
|
-
- lib/recurly/transaction/errors.rb
|
168
184
|
- lib/recurly/transaction.rb
|
185
|
+
- lib/recurly/transaction/errors.rb
|
169
186
|
- lib/recurly/usage.rb
|
170
187
|
- lib/recurly/version.rb
|
188
|
+
- lib/recurly/webhook.rb
|
171
189
|
- lib/recurly/webhook/account_notification.rb
|
172
190
|
- lib/recurly/webhook/billing_info_updated_notification.rb
|
173
191
|
- lib/recurly/webhook/canceled_account_notification.rb
|
@@ -195,38 +213,33 @@ files:
|
|
195
213
|
- lib/recurly/webhook/updated_account_notification.rb
|
196
214
|
- lib/recurly/webhook/updated_subscription_notification.rb
|
197
215
|
- lib/recurly/webhook/void_payment_notification.rb
|
198
|
-
- lib/recurly/
|
216
|
+
- lib/recurly/xml.rb
|
199
217
|
- lib/recurly/xml/nokogiri.rb
|
200
218
|
- lib/recurly/xml/rexml.rb
|
201
|
-
- lib/recurly/xml.rb
|
202
|
-
- lib/recurly.rb
|
203
|
-
- README.md
|
204
|
-
- bin/recurly
|
205
219
|
homepage: https://github.com/recurly/recurly-client-ruby
|
206
220
|
licenses:
|
207
221
|
- MIT
|
208
222
|
metadata: {}
|
209
223
|
post_install_message:
|
210
224
|
rdoc_options:
|
211
|
-
- --main
|
225
|
+
- "--main"
|
212
226
|
- README.md
|
213
227
|
require_paths:
|
214
228
|
- lib
|
215
229
|
required_ruby_version: !ruby/object:Gem::Requirement
|
216
230
|
requirements:
|
217
|
-
- -
|
231
|
+
- - ">="
|
218
232
|
- !ruby/object:Gem::Version
|
219
233
|
version: 1.9.3
|
220
234
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
221
235
|
requirements:
|
222
|
-
- -
|
236
|
+
- - ">="
|
223
237
|
- !ruby/object:Gem::Version
|
224
238
|
version: '0'
|
225
239
|
requirements: []
|
226
240
|
rubyforge_project:
|
227
|
-
rubygems_version: 2.
|
241
|
+
rubygems_version: 2.7.6
|
228
242
|
signing_key:
|
229
243
|
specification_version: 4
|
230
244
|
summary: Recurly API Client
|
231
245
|
test_files: []
|
232
|
-
has_rdoc: true
|