recurly 2.4.11 → 2.4.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/recurly.rb +18 -0
- data/lib/recurly/version.rb +1 -1
- metadata +21 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 13b7bc8357cf3a9bd44bb68f50602fbd79965d4c5476e0db3a2f5499a9741235
|
4
|
+
data.tar.gz: daf10aba1b1568a111ae8ac4a98f26579d4916f48fcfc8cd2726d43aa9ccd5b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73c853360a26ff0a48625a1070ebc03f1b80f386306089882559f37cb5353835377226f2e57b7a31c6b0e76e267b9f766dbf3ea11a54ed426df016d72c6755f5
|
7
|
+
data.tar.gz: 8d7f70972b826590e36838535cb21a8f9825368727922e7696f3f5323df6905ca66b49ce15a0c6e297fb42870f7f32e4dca90f30a24fa7890942a1e1594d95a1
|
data/lib/recurly.rb
CHANGED
@@ -88,6 +88,8 @@ module Recurly
|
|
88
88
|
end
|
89
89
|
|
90
90
|
# Assigns a logger to log requests/responses and more.
|
91
|
+
# The logger can only be set if the environment variable
|
92
|
+
# `RECURLY_INSECURE_DEBUG` equals `true`.
|
91
93
|
#
|
92
94
|
# @return [Logger, nil]
|
93
95
|
# @example
|
@@ -99,6 +101,22 @@ module Recurly
|
|
99
101
|
# Recurly.logger = nil # Or Recurly.logger = Logger.new nil
|
100
102
|
attr_accessor :logger
|
101
103
|
|
104
|
+
def logger=(logger)
|
105
|
+
if ENV['RECURLY_INSECURE_DEBUG'].to_s.downcase == 'true'
|
106
|
+
@logger = logger
|
107
|
+
puts <<-MSG
|
108
|
+
[WARNING] Recurly logger enabled. The logger has the potential to leak
|
109
|
+
PII and should never be used in production environments.
|
110
|
+
MSG
|
111
|
+
else
|
112
|
+
puts <<-MSG
|
113
|
+
[WARNING] Recurly logger has been disabled. If you wish to use it,
|
114
|
+
only do so in a non-production environment and make sure
|
115
|
+
the `RECURLY_INSECURE_DEBUG` environment variable is set to `true`.
|
116
|
+
MSG
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
102
120
|
# Convenience logging method includes a Logger#progname dynamically.
|
103
121
|
# @return [true, nil]
|
104
122
|
def log level, message
|
data/lib/recurly/version.rb
CHANGED
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.4.
|
4
|
+
version: 2.4.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Recurly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
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,17 +82,18 @@ 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/association.rb
|
83
87
|
- lib/recurly/resource/errors.rb
|
84
88
|
- lib/recurly/resource/pager.rb
|
85
|
-
- lib/recurly/resource.rb
|
86
|
-
- lib/recurly/subscription/add_ons.rb
|
87
89
|
- lib/recurly/subscription.rb
|
90
|
+
- lib/recurly/subscription/add_ons.rb
|
88
91
|
- lib/recurly/subscription_add_on.rb
|
89
92
|
- lib/recurly/tax_detail.rb
|
90
|
-
- lib/recurly/transaction/errors.rb
|
91
93
|
- lib/recurly/transaction.rb
|
94
|
+
- lib/recurly/transaction/errors.rb
|
92
95
|
- lib/recurly/version.rb
|
96
|
+
- lib/recurly/webhook.rb
|
93
97
|
- lib/recurly/webhook/account_notification.rb
|
94
98
|
- lib/recurly/webhook/billing_info_updated_notification.rb
|
95
99
|
- lib/recurly/webhook/canceled_account_notification.rb
|
@@ -114,38 +118,33 @@ files:
|
|
114
118
|
- lib/recurly/webhook/transaction_notification.rb
|
115
119
|
- lib/recurly/webhook/updated_subscription_notification.rb
|
116
120
|
- lib/recurly/webhook/void_payment_notification.rb
|
117
|
-
- lib/recurly/
|
121
|
+
- lib/recurly/xml.rb
|
118
122
|
- lib/recurly/xml/nokogiri.rb
|
119
123
|
- lib/recurly/xml/rexml.rb
|
120
|
-
- lib/recurly/xml.rb
|
121
|
-
- lib/recurly.rb
|
122
|
-
- README.md
|
123
|
-
- bin/recurly
|
124
124
|
homepage: https://github.com/recurly/recurly-client-ruby
|
125
125
|
licenses:
|
126
126
|
- MIT
|
127
127
|
metadata: {}
|
128
128
|
post_install_message:
|
129
129
|
rdoc_options:
|
130
|
-
- --main
|
130
|
+
- "--main"
|
131
131
|
- README.md
|
132
132
|
require_paths:
|
133
133
|
- lib
|
134
134
|
required_ruby_version: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- -
|
136
|
+
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 1.9.3
|
139
139
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
140
|
requirements:
|
141
|
-
- -
|
141
|
+
- - ">="
|
142
142
|
- !ruby/object:Gem::Version
|
143
143
|
version: '0'
|
144
144
|
requirements: []
|
145
145
|
rubyforge_project:
|
146
|
-
rubygems_version: 2.
|
146
|
+
rubygems_version: 2.7.6
|
147
147
|
signing_key:
|
148
148
|
specification_version: 4
|
149
149
|
summary: Recurly API Client
|
150
150
|
test_files: []
|
151
|
-
has_rdoc: true
|