api_six_client 1.6.5 → 1.6.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/api_six_client/base.rb +9 -4
- data/lib/api_six_client/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: 0b48beacbfbf315b516049c9415607bf83dd30e0d366a594e3aa68a728a23a10
|
4
|
+
data.tar.gz: 3986894ae80d0f41863a74f8c91d5740573303740c0e991bb82a18fe74f8db85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3970c4ee304802448ef31b86c04d524209dd88d159135aa988c78b6063832e932c2f4de0be8416be2ce3bbb3755c2f3094b4aaff8ca812f24ccc4e524f5277f3
|
7
|
+
data.tar.gz: 8aa4fd4f19d2c02b83835c30653847c878b3a75ae2607e4d64e7bc3ae58f6ccfa3345cb9806372c4ef3fc3bdde6fc214bfec14e129d38ae26310eff513fcf5d5
|
data/Gemfile.lock
CHANGED
data/lib/api_six_client/base.rb
CHANGED
@@ -62,14 +62,19 @@ module ApiSixClient
|
|
62
62
|
response = nil
|
63
63
|
begin
|
64
64
|
if path.start_with?("/")
|
65
|
-
log_warn("
|
66
|
-
path.gsub
|
65
|
+
log_warn("Starting slash is redundant in #{path}")
|
66
|
+
fixed_path = path.gsub(/^\/*/, '')
|
67
67
|
end
|
68
68
|
|
69
|
-
response = connection.run_request(
|
69
|
+
response = connection.run_request(
|
70
|
+
method,
|
71
|
+
"#{endpoint}/#{service_path}/#{fixed_path}",
|
72
|
+
params.to_json,
|
73
|
+
headers
|
74
|
+
)
|
70
75
|
rescue Faraday::Error => e
|
71
76
|
if defined?(Rails)
|
72
|
-
Rails.logger.error "Message: #{e.message}, caused by: #{self.class.name}##{
|
77
|
+
Rails.logger.error "Message: #{e.message}, caused by: #{self.class.name}##{fixed_path}"
|
73
78
|
end
|
74
79
|
|
75
80
|
raise e
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: api_six_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eugene Dobrorodnov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|