recurly 2.1.11 → 2.1.12

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