recurly 2.7.8 → 2.7.9

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: ed4bbbc23337641ff5e5d8d1b503a3edc7ba3da8
4
- data.tar.gz: ad44b5e78baa8b041e0fe3e8e34c832e7a8ab63a
2
+ SHA256:
3
+ metadata.gz: af1d823fd7ab9565a69a4faa243eb12fa849d0c7645f94b1660bdb8502f82b70
4
+ data.tar.gz: dd9fbc201f22da974c819472c37caa3adbce672d17f3df7f7616decf5457a34e
5
5
  SHA512:
6
- metadata.gz: e904a0278493ec3767e0593ed8652c3cb7d686fbf344608097fb48f2b79957eb75b5c53ce202785c32fe1c71e44096fd0554a671f472a4a30a95e423ff5705e4
7
- data.tar.gz: 0f1d0798e93ab49f73004b40005817c259fc46d191fb201aae8b01ab3588792179d97e1d180e1f10c08b9387bcc6c383605558d22ee783629b96cc011c7caa9e
6
+ metadata.gz: 2f38f3cd70ffa7fd48235e3f19174c4435dc48bd10a937d1e506e71127523edf08cf4a60727c7647036db52307ca825f364d696e9e4f6ebcadb06a3e78ad48d2
7
+ data.tar.gz: b901950dc28796e1e07e269ec1c229a9f12c36a716b7c2d279d6c0ded11851f441d577b057569894e5db49f4c88e50629ccef4a1cd98c82ec3c7aeef4eabe39f
data/lib/recurly.rb CHANGED
@@ -84,6 +84,8 @@ module Recurly
84
84
  end
85
85
 
86
86
  # Assigns a logger to log requests/responses and more.
87
+ # The logger can only be set if the environment variable
88
+ # `RECURLY_INSECURE_DEBUG` equals `true`.
87
89
  #
88
90
  # @return [Logger, nil]
89
91
  # @example
@@ -95,6 +97,22 @@ module Recurly
95
97
  # Recurly.logger = nil # Or Recurly.logger = Logger.new nil
96
98
  attr_accessor :logger
97
99
 
100
+ def logger=(logger)
101
+ if ENV['RECURLY_INSECURE_DEBUG'].to_s.downcase == 'true'
102
+ @logger = logger
103
+ puts <<-MSG
104
+ [WARNING] Recurly logger enabled. The logger has the potential to leak
105
+ PII and should never be used in production environments.
106
+ MSG
107
+ else
108
+ puts <<-MSG
109
+ [WARNING] Recurly logger has been disabled. If you wish to use it,
110
+ only do so in a non-production environment and make sure
111
+ the `RECURLY_INSECURE_DEBUG` environment variable is set to `true`.
112
+ MSG
113
+ end
114
+ end
115
+
98
116
  # Convenience logging method includes a Logger#progname dynamically.
99
117
  # @return [true, nil]
100
118
  def log level, message
@@ -2,7 +2,7 @@ module Recurly
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 7
5
- PATCH = 8
5
+ PATCH = 9
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.7.8
4
+ version: 2.7.9
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
@@ -168,19 +171,20 @@ files:
168
171
  - lib/recurly/money.rb
169
172
  - lib/recurly/plan.rb
170
173
  - lib/recurly/redemption.rb
174
+ - lib/recurly/resource.rb
171
175
  - lib/recurly/resource/association.rb
172
176
  - lib/recurly/resource/errors.rb
173
177
  - lib/recurly/resource/pager.rb
174
- - lib/recurly/resource.rb
175
178
  - lib/recurly/shipping_address.rb
176
- - lib/recurly/subscription/add_ons.rb
177
179
  - lib/recurly/subscription.rb
180
+ - lib/recurly/subscription/add_ons.rb
178
181
  - lib/recurly/subscription_add_on.rb
179
182
  - lib/recurly/tax_detail.rb
180
- - lib/recurly/transaction/errors.rb
181
183
  - lib/recurly/transaction.rb
184
+ - lib/recurly/transaction/errors.rb
182
185
  - lib/recurly/usage.rb
183
186
  - lib/recurly/version.rb
187
+ - lib/recurly/webhook.rb
184
188
  - lib/recurly/webhook/account_notification.rb
185
189
  - lib/recurly/webhook/billing_info_updated_notification.rb
186
190
  - lib/recurly/webhook/canceled_account_notification.rb
@@ -207,38 +211,33 @@ files:
207
211
  - lib/recurly/webhook/transaction_notification.rb
208
212
  - lib/recurly/webhook/updated_subscription_notification.rb
209
213
  - lib/recurly/webhook/void_payment_notification.rb
210
- - lib/recurly/webhook.rb
214
+ - lib/recurly/xml.rb
211
215
  - lib/recurly/xml/nokogiri.rb
212
216
  - lib/recurly/xml/rexml.rb
213
- - lib/recurly/xml.rb
214
- - lib/recurly.rb
215
- - README.md
216
- - bin/recurly
217
217
  homepage: https://github.com/recurly/recurly-client-ruby
218
218
  licenses:
219
219
  - MIT
220
220
  metadata: {}
221
221
  post_install_message:
222
222
  rdoc_options:
223
- - --main
223
+ - "--main"
224
224
  - README.md
225
225
  require_paths:
226
226
  - lib
227
227
  required_ruby_version: !ruby/object:Gem::Requirement
228
228
  requirements:
229
- - - '>='
229
+ - - ">="
230
230
  - !ruby/object:Gem::Version
231
231
  version: 1.9.3
232
232
  required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  requirements:
234
- - - '>='
234
+ - - ">="
235
235
  - !ruby/object:Gem::Version
236
236
  version: '0'
237
237
  requirements: []
238
238
  rubyforge_project:
239
- rubygems_version: 2.0.14.1
239
+ rubygems_version: 2.7.6
240
240
  signing_key:
241
241
  specification_version: 4
242
242
  summary: Recurly API Client
243
243
  test_files: []
244
- has_rdoc: true