recurly 2.3.10 → 2.3.11

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: 34a1d5f4c1f6999486d6f43fd5e30f8d70898311
4
- data.tar.gz: af1ee3fdc53993b377dd526951ca9bdd99cfc7e8
2
+ SHA256:
3
+ metadata.gz: 873a38d1e4a0a1b0f115d2f5749649c5f0d264acefad31a307f691bcec256e7d
4
+ data.tar.gz: 46ba2bea261e2f0834a4013595864d018578a27617a1417561f9cd71547f1f3b
5
5
  SHA512:
6
- metadata.gz: ae07b3126d06452fd9fcfe9d9b648fcd65ea26000d2dbd2da2cdb9ae5816ae8bcfb22869e262a1990534d2fbc749d9fb81506bfff5d067d9ed9c8af98f17666f
7
- data.tar.gz: 15fa44abe07c8aed464604721a5a97859b61503d9273739270aa8815bc720e83421135da81428b3209673428e6f8300769adc3e53e73fd4a6e19c92d6eba29f4
6
+ metadata.gz: 6d3429a1c7abd43d25e78f1980cbe1b5b586220b58bdf6497fca88c7602615da5a66691c071e7f027a34ecc35bcf58b256a2ca274a092c83dcc8d2d8df793616
7
+ data.tar.gz: dfb1edaa1e0b5f0def52198b3ce1274dbda58b3f6d9162f6bae6a0f1d0d4b044716246296584a756cce4e5e51887ea78da4908f6c0b142417595e7efa13c9788
data/lib/recurly.rb CHANGED
@@ -68,6 +68,8 @@ module Recurly
68
68
  end
69
69
 
70
70
  # Assigns a logger to log requests/responses and more.
71
+ # The logger can only be set if the environment variable
72
+ # `RECURLY_INSECURE_DEBUG` equals `true`.
71
73
  #
72
74
  # @return [Logger, nil]
73
75
  # @example
@@ -79,6 +81,22 @@ module Recurly
79
81
  # Recurly.logger = nil # Or Recurly.logger = Logger.new nil
80
82
  attr_accessor :logger
81
83
 
84
+ def logger=(logger)
85
+ if ENV['RECURLY_INSECURE_DEBUG'].to_s.downcase == 'true'
86
+ @logger = logger
87
+ puts <<-MSG
88
+ [WARNING] Recurly logger enabled. The logger has the potential to leak
89
+ PII and should never be used in production environments.
90
+ MSG
91
+ else
92
+ puts <<-MSG
93
+ [WARNING] Recurly logger has been disabled. If you wish to use it,
94
+ only do so in a non-production environment and make sure
95
+ the `RECURLY_INSECURE_DEBUG` environment variable is set to `true`.
96
+ MSG
97
+ end
98
+ end
99
+
82
100
  # Convenience logging method includes a Logger#progname dynamically.
83
101
  # @return [true, nil]
84
102
  def log level, message
@@ -2,7 +2,7 @@ module Recurly
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 3
5
- PATCH = 10
5
+ PATCH = 11
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.3.10
4
+ version: 2.3.11
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,17 +60,20 @@ extensions: []
60
60
  extra_rdoc_files:
61
61
  - README.md
62
62
  files:
63
+ - README.md
64
+ - bin/recurly
63
65
  - lib/ecurly.rb
64
66
  - lib/rails/generators/recurly/config_generator.rb
65
67
  - lib/rails/recurly.rb
68
+ - lib/recurly.rb
66
69
  - lib/recurly/account.rb
67
70
  - lib/recurly/add_on.rb
68
71
  - lib/recurly/address.rb
69
72
  - lib/recurly/adjustment.rb
70
73
  - lib/recurly/all.rb
74
+ - lib/recurly/api.rb
71
75
  - lib/recurly/api/errors.rb
72
76
  - lib/recurly/api/net_http_adapter.rb
73
- - lib/recurly/api.rb
74
77
  - lib/recurly/billing_info.rb
75
78
  - lib/recurly/coupon.rb
76
79
  - lib/recurly/helper.rb
@@ -79,47 +82,43 @@ files:
79
82
  - lib/recurly/money.rb
80
83
  - lib/recurly/plan.rb
81
84
  - lib/recurly/redemption.rb
85
+ - lib/recurly/resource.rb
82
86
  - lib/recurly/resource/errors.rb
83
87
  - lib/recurly/resource/pager.rb
84
- - lib/recurly/resource.rb
85
- - lib/recurly/subscription/add_ons.rb
86
88
  - lib/recurly/subscription.rb
89
+ - lib/recurly/subscription/add_ons.rb
87
90
  - lib/recurly/subscription_add_on.rb
88
91
  - lib/recurly/tax_detail.rb
89
- - lib/recurly/transaction/errors.rb
90
92
  - lib/recurly/transaction.rb
93
+ - lib/recurly/transaction/errors.rb
91
94
  - lib/recurly/version.rb
95
+ - lib/recurly/xml.rb
92
96
  - lib/recurly/xml/nokogiri.rb
93
97
  - lib/recurly/xml/rexml.rb
94
- - lib/recurly/xml.rb
95
- - lib/recurly.rb
96
- - README.md
97
- - bin/recurly
98
98
  homepage: https://github.com/recurly/recurly-client-ruby
99
99
  licenses:
100
100
  - MIT
101
101
  metadata: {}
102
102
  post_install_message:
103
103
  rdoc_options:
104
- - --main
104
+ - "--main"
105
105
  - README.md
106
106
  require_paths:
107
107
  - lib
108
108
  required_ruby_version: !ruby/object:Gem::Requirement
109
109
  requirements:
110
- - - '>='
110
+ - - ">="
111
111
  - !ruby/object:Gem::Version
112
112
  version: 1.9.3
113
113
  required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  requirements: []
119
119
  rubyforge_project:
120
- rubygems_version: 2.0.14.1
120
+ rubygems_version: 2.7.6
121
121
  signing_key:
122
122
  specification_version: 4
123
123
  summary: Recurly API Client
124
124
  test_files: []
125
- has_rdoc: true