recurly 2.0.13 → 2.0.14

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 +20 -21
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 437c4a81180281f6f4dd54eb30b91c7eb4676d5e
4
- data.tar.gz: 537a4f242930c94b17f7f97d954d92cc25222641
2
+ SHA256:
3
+ metadata.gz: b504b0f597b977a0b15913cfa563e756f2668f3ccdd9bdd24b5070ac1921039c
4
+ data.tar.gz: 52b63c17d628a0775239bfa043b4395e8caa1aef4f2e3cb21e97fc07cb4c20d2
5
5
  SHA512:
6
- metadata.gz: 016155a2129b09108017a0a2c02cbc0eb1913d651ac6449584d3b8fec62b11192359b26b4149fc93206dd66c1542ee3f4aa9d61f107cb76b69cc202bd4fd93cd
7
- data.tar.gz: 3e3f641760e89cf9f6662949168b3ab9e1e5ac021e2026464ce8d05f54fdf4c40ef69eb103436f7a923d1ddf2e8e2386fd5a30c813d1978db1c21a43d51243b0
6
+ metadata.gz: 5c3b9ca3efb027f16030f60c6cc5e4e8994b8a514fcb717d3b7fee675c3a405a569634c287953c5c760fc73df81c7d5c71abd8543f0da5245c4bb462089a438e
7
+ data.tar.gz: 953ae522e3f47bc0fee546ed9aab5c8ee252f1c337d65491a966e7ab3a13b730f7cd8fc707868ea4aa94b21baa44c4ba9b394c15a7780ba63bebaad409800612
data/lib/recurly.rb CHANGED
@@ -57,6 +57,8 @@ module Recurly
57
57
  end
58
58
 
59
59
  # Assigns a logger to log requests/responses and more.
60
+ # The logger can only be set if the environment variable
61
+ # `RECURLY_INSECURE_DEBUG` equals `true`.
60
62
  #
61
63
  # @return [Logger, nil]
62
64
  # @example
@@ -68,6 +70,22 @@ module Recurly
68
70
  # Recurly.logger = nil # Or Recurly.logger = Logger.new nil
69
71
  attr_accessor :logger
70
72
 
73
+ def logger=(logger)
74
+ if ENV['RECURLY_INSECURE_DEBUG'].to_s.downcase == 'true'
75
+ @logger = logger
76
+ puts <<-MSG
77
+ [WARNING] Recurly logger enabled. The logger has the potential to leak
78
+ PII and should never be used in production environments.
79
+ MSG
80
+ else
81
+ puts <<-MSG
82
+ [WARNING] Recurly logger has been disabled. If you wish to use it,
83
+ only do so in a non-production environment and make sure
84
+ the `RECURLY_INSECURE_DEBUG` environment variable is set to `true`.
85
+ MSG
86
+ end
87
+ end
88
+
71
89
  # Convenience logging method includes a Logger#progname dynamically.
72
90
  # @return [true, nil]
73
91
  def log level, message
@@ -2,7 +2,7 @@ module Recurly
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 0
5
- PATCH = 13
5
+ PATCH = 14
6
6
  PRE = nil
7
7
 
8
8
  VERSION = [MAJOR, MINOR, PATCH, PRE].compact.join('.').freeze
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recurly
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.13
4
+ version: 2.0.14
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: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.9.2
20
20
  type: :development
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: 0.9.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 2.6.1
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: 2.6.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: webmock
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: 1.7.6
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: 1.7.6
55
55
  description: 'An API client library for Recurly: http://recurly.com'
@@ -60,15 +60,18 @@ extensions: []
60
60
  extra_rdoc_files:
61
61
  - README.markdown
62
62
  files:
63
+ - README.markdown
64
+ - bin/recurly
63
65
  - lib/rails/generators/recurly/config_generator.rb
64
66
  - lib/rails/recurly.rb
67
+ - lib/recurly.rb
65
68
  - lib/recurly/account.rb
66
69
  - lib/recurly/add_on.rb
67
70
  - lib/recurly/adjustment.rb
68
71
  - lib/recurly/all.rb
72
+ - lib/recurly/api.rb
69
73
  - lib/recurly/api/errors.rb
70
74
  - lib/recurly/api/net_http_adapter.rb
71
- - lib/recurly/api.rb
72
75
  - lib/recurly/billing_info.rb
73
76
  - lib/recurly/coupon.rb
74
77
  - lib/recurly/helper.rb
@@ -77,44 +80,40 @@ files:
77
80
  - lib/recurly/money.rb
78
81
  - lib/recurly/plan.rb
79
82
  - lib/recurly/redemption.rb
80
- - lib/recurly/resource/pager.rb
81
83
  - lib/recurly/resource.rb
82
- - lib/recurly/subscription/add_ons.rb
84
+ - lib/recurly/resource/pager.rb
83
85
  - lib/recurly/subscription.rb
84
- - lib/recurly/transaction/errors.rb
86
+ - lib/recurly/subscription/add_ons.rb
85
87
  - lib/recurly/transaction.rb
88
+ - lib/recurly/transaction/errors.rb
86
89
  - lib/recurly/version.rb
90
+ - lib/recurly/xml.rb
87
91
  - lib/recurly/xml/nokogiri.rb
88
92
  - lib/recurly/xml/rexml.rb
89
- - lib/recurly/xml.rb
90
- - lib/recurly.rb
91
- - README.markdown
92
- - bin/recurly
93
93
  homepage: http://github.com/recurly/recurly-client-ruby
94
94
  licenses:
95
95
  - MIT
96
96
  metadata: {}
97
97
  post_install_message:
98
98
  rdoc_options:
99
- - --main
99
+ - "--main"
100
100
  - README.markdown
101
101
  require_paths:
102
102
  - lib
103
103
  required_ruby_version: !ruby/object:Gem::Requirement
104
104
  requirements:
105
- - - '>='
105
+ - - ">="
106
106
  - !ruby/object:Gem::Version
107
107
  version: '0'
108
108
  required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  requirements:
110
- - - '>='
110
+ - - ">="
111
111
  - !ruby/object:Gem::Version
112
112
  version: '0'
113
113
  requirements: []
114
114
  rubyforge_project:
115
- rubygems_version: 2.0.14.1
115
+ rubygems_version: 2.7.6
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: Recurly API Client
119
119
  test_files: []
120
- has_rdoc: true