recurly 2.8.2 → 2.8.3

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