zuora_connect 3.0.1.pre.b → 3.0.1.pre.c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/zuora_connect/login.rb +2 -2
- data/config/initializers/object_method_hooks.rb +2 -2
- data/lib/metrics/net.rb +1 -1
- data/lib/zuora_connect.rb +2 -2
- data/lib/zuora_connect/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ad647d03e32b321e138c9adac68f251170483f170801baa94017ba70e920b8e8
|
|
4
|
+
data.tar.gz: 80fcbbb2144cbb89e2f79a28dc425350337199528e9a47adaa2f677bfd4be7ec
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1d1f9ce5e3958d4c88f0480158c857cf1dcdce12f72af62c8f11c1a7caf03551b5a1be34fd30b404072058b57ef1a6b3c9834fafa7cea40615e5d5ddc992af6e
|
|
7
|
+
data.tar.gz: e3a4ac9e3994c489fe4c21e3f2ae313d58dad157a8629965c68032f8a77d4578d7076a90f22ba8bc71c195df9e97cb07cb0160452546c5a16eacdce1e96c9a53
|
|
@@ -8,12 +8,12 @@ module ZuoraConnect
|
|
|
8
8
|
login_type = fields.dig("authentication_type").blank? ? 'Basic' : fields.dig("authentication_type").capitalize
|
|
9
9
|
|
|
10
10
|
raise ZuoraConnect::Exceptions::InvalidCredentialSet.new("Cannot setup application with ZSession Login.") if login_type == "Session"
|
|
11
|
-
@clients["Default"] = "::ZuoraAPI::#{login_type}".constantize.new(login_fields)
|
|
11
|
+
@clients["Default"] = "::ZuoraAPI::#{login_type}".constantize.new(**login_fields)
|
|
12
12
|
@default_entity = fields["entities"][0]["id"] if (fields.dig("entities") || []).size == 1
|
|
13
13
|
if fields["entities"] && fields["entities"].size > 0
|
|
14
14
|
fields["entities"].each do |entity|
|
|
15
15
|
params = {:entity_id => entity["id"]}.merge(login_fields)
|
|
16
|
-
@clients[entity["id"]] = "::ZuoraAPI::#{login_type}".constantize.new(params)
|
|
16
|
+
@clients[entity["id"]] = "::ZuoraAPI::#{login_type}".constantize.new(**params)
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
self.attr_builder("available_entities", @clients.keys)
|
|
@@ -5,7 +5,7 @@ class Object
|
|
|
5
5
|
args.each do |method_name|
|
|
6
6
|
old_method = instance_method(method_name) rescue next
|
|
7
7
|
|
|
8
|
-
define_method(method_name) do |*args|
|
|
8
|
+
define_method(method_name) do |*args, **kwords, &block|
|
|
9
9
|
# invoke before callback
|
|
10
10
|
if options[:before].present?
|
|
11
11
|
options[:before].is_a?(Proc) ? options[:before].call(method_name, self):
|
|
@@ -14,7 +14,7 @@ class Object
|
|
|
14
14
|
|
|
15
15
|
# you can modify the code to call after callback
|
|
16
16
|
# only when the old method returns true etc..
|
|
17
|
-
old_method.bind(self).call(*args)
|
|
17
|
+
old_method.bind(self).call(*args, **kwords, &block)
|
|
18
18
|
|
|
19
19
|
# invoke after callback
|
|
20
20
|
if options[:after].present?
|
data/lib/metrics/net.rb
CHANGED
|
@@ -85,7 +85,7 @@ class HttpLogger
|
|
|
85
85
|
end
|
|
86
86
|
|
|
87
87
|
def request_url(http, request)
|
|
88
|
-
|
|
88
|
+
CGI.unescape("http#{"s" if http.use_ssl?}://#{http.address}:#{http.port}#{request.path}")
|
|
89
89
|
end
|
|
90
90
|
|
|
91
91
|
def log_request_headers(request)
|
data/lib/zuora_connect.rb
CHANGED
|
@@ -80,7 +80,7 @@ module ZuoraConnect
|
|
|
80
80
|
}
|
|
81
81
|
when 'test'
|
|
82
82
|
defaults = {
|
|
83
|
-
|
|
83
|
+
enabled: false,
|
|
84
84
|
disable_send: true
|
|
85
85
|
}
|
|
86
86
|
end
|
|
@@ -89,7 +89,7 @@ module ZuoraConnect
|
|
|
89
89
|
disable_start_message: true,
|
|
90
90
|
pool_size: 1,
|
|
91
91
|
transaction_max_spans: 500,
|
|
92
|
-
|
|
92
|
+
transaction_ignore_urls: ['^\/admin\/resque.*', '^\/admin\/redis.*', '^\/admin\/peek.*', '^\/peek.*'],
|
|
93
93
|
verify_server_cert: false,
|
|
94
94
|
log_level: Logger::INFO,
|
|
95
95
|
service_name: ENV['DEIS_APP'].present? ? ENV['DEIS_APP'] : ZuoraConnect.app_name,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zuora_connect
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.1.pre.
|
|
4
|
+
version: 3.0.1.pre.c
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Connect Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-04-
|
|
11
|
+
date: 2021-04-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: apartment
|