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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2cddcfe31b1705932fed9fbdafa20fa78c371be321a3994763ff501cdfb10e37
4
- data.tar.gz: c97920023f5aadabb913626cb9228838c4c34bec65bf38b2e6492cb0cd556aea
3
+ metadata.gz: 0b48beacbfbf315b516049c9415607bf83dd30e0d366a594e3aa68a728a23a10
4
+ data.tar.gz: 3986894ae80d0f41863a74f8c91d5740573303740c0e991bb82a18fe74f8db85
5
5
  SHA512:
6
- metadata.gz: 001f8b683f09bc390624f19070933d3bdf991f4c24c973765c7812bd609e2e83e9095c4f858dcaa9e41b1bda0788a6fe9f5eceacce21af5293b465f1bb016d6f
7
- data.tar.gz: 01710040aaf07c3dd8a15b969651d7d0bbfcc063598842f8c9208fe487c3085947b43571f683b1313801e13f526cae5ddfbd3efb1b13a85ee5254d01c1af27c9
6
+ metadata.gz: 3970c4ee304802448ef31b86c04d524209dd88d159135aa988c78b6063832e932c2f4de0be8416be2ce3bbb3755c2f3094b4aaff8ca812f24ccc4e524f5277f3
7
+ data.tar.gz: 8aa4fd4f19d2c02b83835c30653847c878b3a75ae2607e4d64e7bc3ae58f6ccfa3345cb9806372c4ef3fc3bdde6fc214bfec14e129d38ae26310eff513fcf5d5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- api_six_client (1.6.5)
4
+ api_six_client (1.6.6)
5
5
  faraday (~> 2)
6
6
 
7
7
  GEM
@@ -25,4 +25,4 @@ DEPENDENCIES
25
25
  rake (~> 13.0)
26
26
 
27
27
  BUNDLED WITH
28
- 2.2.22
28
+ 2.5.10
@@ -62,14 +62,19 @@ module ApiSixClient
62
62
  response = nil
63
63
  begin
64
64
  if path.start_with?("/")
65
- log_warn("'/' is redundant in #{path}")
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(method, "#{endpoint}/#{service_path}/#{path}", params.to_json, headers)
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}##{path}"
77
+ Rails.logger.error "Message: #{e.message}, caused by: #{self.class.name}##{fixed_path}"
73
78
  end
74
79
 
75
80
  raise e
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ApiSixClient
4
- VERSION = "1.6.5"
4
+ VERSION = "1.6.6"
5
5
  end
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.5
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-09 00:00:00.000000000 Z
11
+ date: 2024-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday