recurly 2.9.2 → 2.9.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 +45 -32
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 6452867dd69330b585dbb5d03e743be85e30c120
4
- data.tar.gz: 49d72019ce6b966986467d8ac92ffa3221a189d3
2
+ SHA256:
3
+ metadata.gz: '0810dfb4e91991de5ea68776f877db4961e0fe4e5b27897edc1fd2a13a1e32b5'
4
+ data.tar.gz: d7da1593f6ebacbea835751fe68cd639fac7918b4888727e73041a46ea8e6927
5
5
  SHA512:
6
- metadata.gz: 62e54473a5796a7cf54bad8f6845038e8a222647f43a20829df5879e3a7f2273b16e3868f0007cee1ff0fbcffd1b3cd479097ec5f7b14a4e52c972fb332fefec
7
- data.tar.gz: 2d4ddf83281109329005663be4fc1fbe878226406bbaef269e2b419e329908b2201bb20abcb3ca86db046629087ecef6c9143f82b67ef8a3e4206e073a701b21
6
+ metadata.gz: 2d28a5665bae1cb32d4193769f72c6f08d57674002bdbeba4a279e8ef6931f974c00f9b15a77ac1cf444120e6a770b9247c9d63e3ab20b038515557e0732bb92
7
+ data.tar.gz: 77d7119a631d9c6e0091354852fdd61dfe71b72983776ffe3c46616713db89276dd4b0a98948484489ab439bdc8f3a385250fbcc79e57d938f178b7c7bdebcf5
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 = 9
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,125 +1,139 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recurly
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.2
4
+ version: 2.9.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
+ - !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.1.0
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.1.0
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: redcarpet
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - '>='
87
+ - - ">="
74
88
  - !ruby/object:Gem::Version
75
89
  version: '0'
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'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: yard
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,18 +144,21 @@ extensions: []
130
144
  extra_rdoc_files:
131
145
  - README.md
132
146
  files:
147
+ - README.md
148
+ - bin/recurly
133
149
  - lib/ecurly.rb
134
150
  - lib/rails/generators/recurly/config_generator.rb
135
151
  - lib/rails/recurly.rb
152
+ - lib/recurly.rb
136
153
  - lib/recurly/account.rb
137
154
  - lib/recurly/account_balance.rb
138
155
  - lib/recurly/add_on.rb
139
156
  - lib/recurly/address.rb
140
157
  - lib/recurly/adjustment.rb
141
158
  - lib/recurly/all.rb
159
+ - lib/recurly/api.rb
142
160
  - lib/recurly/api/errors.rb
143
161
  - lib/recurly/api/net_http_adapter.rb
144
- - lib/recurly/api.rb
145
162
  - lib/recurly/billing_info.rb
146
163
  - lib/recurly/coupon.rb
147
164
  - lib/recurly/delivery.rb
@@ -155,20 +172,21 @@ files:
155
172
  - lib/recurly/money.rb
156
173
  - lib/recurly/plan.rb
157
174
  - lib/recurly/redemption.rb
175
+ - lib/recurly/resource.rb
158
176
  - lib/recurly/resource/association.rb
159
177
  - lib/recurly/resource/errors.rb
160
178
  - lib/recurly/resource/pager.rb
161
- - lib/recurly/resource.rb
162
179
  - lib/recurly/shipping_address.rb
163
- - lib/recurly/subscription/add_ons.rb
164
180
  - lib/recurly/subscription.rb
181
+ - lib/recurly/subscription/add_ons.rb
165
182
  - lib/recurly/subscription_add_on.rb
166
183
  - lib/recurly/tax_detail.rb
167
184
  - lib/recurly/tax_type.rb
168
- - lib/recurly/transaction/errors.rb
169
185
  - lib/recurly/transaction.rb
186
+ - lib/recurly/transaction/errors.rb
170
187
  - lib/recurly/usage.rb
171
188
  - lib/recurly/version.rb
189
+ - lib/recurly/webhook.rb
172
190
  - lib/recurly/webhook/account_notification.rb
173
191
  - lib/recurly/webhook/billing_info_updated_notification.rb
174
192
  - lib/recurly/webhook/canceled_account_notification.rb
@@ -195,38 +213,33 @@ files:
195
213
  - lib/recurly/webhook/transaction_notification.rb
196
214
  - lib/recurly/webhook/updated_subscription_notification.rb
197
215
  - lib/recurly/webhook/void_payment_notification.rb
198
- - lib/recurly/webhook.rb
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.0.14.1
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