ncore 3.5.1 → 3.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/example/lib/my_api/rails/log_subscriber.rb +1 -1
- data/example/lib/my_api/rails/railtie.rb +4 -0
- data/lib/ncore/client.rb +14 -14
- data/lib/ncore/rails/active_model.rb +1 -5
- data/lib/ncore/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: 8146188f466028c5c5bea61b9a11d6a11f5d4ffe9af24c6f58ae019223b3d4c6
|
4
|
+
data.tar.gz: 51c9ebd2bdbb07bd4dc9d5685b31d85bb5c272073564325dd747058748a7f1d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9cef4054143ffc04613bb0156d240723d806f49415e2845c96428617739b512c47dae9924c339ed2f7271692ecf6a8b94a32b0a380b6786968ee4ec677b2c96
|
7
|
+
data.tar.gz: 2eaa61533b248ce9470f186d95397546040864b289fb3d7c69981aa7fa932b654852a8a74e5818eaabf7e89d3afd5fd38abc0fc28a5fd1e665bf225de2a22d70
|
data/CHANGELOG.md
CHANGED
data/lib/ncore/client.rb
CHANGED
@@ -314,13 +314,13 @@ module NCore
|
|
314
314
|
|
315
315
|
def debug_request(rest_opts)
|
316
316
|
return unless logger.debug?
|
317
|
-
logger <<
|
318
|
-
#{'-=- '*18}
|
319
|
-
REQUEST:
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
DBG
|
317
|
+
logger << <<~DBG
|
318
|
+
#{'-=- '*18}
|
319
|
+
REQUEST:
|
320
|
+
#{rest_opts[:method].to_s.upcase} #{rest_opts[:url]}
|
321
|
+
#{rest_opts[:headers].map{|h,d| "#{h}: #{d}"}.join("\n ")}
|
322
|
+
#{rest_opts[:body] || 'nil'}
|
323
|
+
DBG
|
324
324
|
end
|
325
325
|
|
326
326
|
def debug_response(response)
|
@@ -330,13 +330,13 @@ DBG
|
|
330
330
|
else
|
331
331
|
json = JSON.parse(response.body||'', symbolize_names: false) rescue response.body
|
332
332
|
end
|
333
|
-
logger <<
|
334
|
-
RESPONSE:
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
#{'-=- '*18}
|
339
|
-
DBG
|
333
|
+
logger << <<~DBG
|
334
|
+
RESPONSE:
|
335
|
+
#{response.headers['Status']} | #{response.headers['Content-Type']} | #{response.body.size} bytes
|
336
|
+
#{response.headers.except('Status', 'Connection', 'Content-Type').map{|h,d| "#{h}: #{d}"}.join("\n ")}
|
337
|
+
#{json.pretty_inspect.split("\n").join("\n ")}
|
338
|
+
#{'-=- '*18}
|
339
|
+
DBG
|
340
340
|
end
|
341
341
|
|
342
342
|
end # ClassMethods
|
data/lib/ncore/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ncore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Notioneer Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|