nova-api 1.4.5 → 1.4.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d65ec275d59211def3addb948fd8eb041a9011c4f863475b4ae20814dc7697b2
4
- data.tar.gz: 6485592406ff923bf58094e2c6aaf82b7778c8cdbdecc4edff6b004615b808b3
3
+ metadata.gz: 4a236ca75cc785c3010e6fc1b9992038318cdb1518ea54d864e0e8fb21bee85d
4
+ data.tar.gz: d1d5eef3db768d89f0dd9b9fb6884bcd0ddd5fa473e7a6098d210d739fc6f738
5
5
  SHA512:
6
- metadata.gz: b0607c64dba8511a2b183982137e754c4401709dec523dcd8b72e4b1091a99b58b86459ecdee67ad7d6dd194ae515e640437ed0def9dd952d4c17ddf57637062
7
- data.tar.gz: 8f2ba32f43f95856e1afa04096db889980203d563eef690bdba54554f8536cb0b4aaffd05c3a187e7a685362e74c23ea22948866784cf9373fe8ffbc3d6f4c08
6
+ metadata.gz: c84eaff31e3cec92bd7675cfa395ef5723e49d95d6137e2b921157e528e8afc7ab6ab178c4f5dd88ebbbbc1f9a25f310808db0799bdfd695aa84e708ae1edba1
7
+ data.tar.gz: 22018019dd877ca2c2162108abb456695793c191276caa0c8bfcde3d9ef067b36a04d75b342afc123c0a3073e7c35bfd62a6437c280fce6e60cc896708b36f55
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nova-api (1.4.5)
4
+ nova-api (1.4.6)
5
5
  dry-struct (~> 1.6)
6
6
  dry-types (~> 1.7)
7
7
  httparty (~> 0.1)
data/lib/nova/api/base.rb CHANGED
@@ -46,7 +46,7 @@ module Nova
46
46
  def do_delete(endpoint)
47
47
  set_base_uri
48
48
 
49
- Kernel.p "[NOVA-API] Issuing DELETE to #{endpoint}, headers: #{authorization_header}" if configuration.debug?
49
+ Kernel.p "[NOVA-API] Issuing DELETE to #{self.class.base_uri}#{endpoint}, headers: #{authorization_header}" if configuration.debug?
50
50
 
51
51
  response = self.class.delete(endpoint, headers: authorization_header)
52
52
 
@@ -56,7 +56,7 @@ module Nova
56
56
  def do_patch(endpoint, data)
57
57
  set_base_uri
58
58
 
59
- Kernel.p "[NOVA-API] Issuing PATCH to #{endpoint}, headers: #{authorization_header}" if configuration.debug?
59
+ Kernel.p "[NOVA-API] Issuing PATCH to #{self.class.base_uri}#{endpoint}, headers: #{authorization_header}" if configuration.debug?
60
60
 
61
61
  if data.nil? || data.empty?
62
62
  response = self.class.patch(endpoint, headers: authorization_header)
@@ -75,7 +75,7 @@ module Nova
75
75
  def do_post(endpoint, data)
76
76
  set_base_uri
77
77
 
78
- Kernel.p "[NOVA-API] Issuing POST to #{endpoint}, headers: #{authorization_header}" if configuration.debug?
78
+ Kernel.p "[NOVA-API] Issuing POST to #{self.class.base_uri}#{endpoint}, headers: #{authorization_header}" if configuration.debug?
79
79
 
80
80
  response = self.class.post(endpoint, body: data, headers: authorization_header)
81
81
 
@@ -91,7 +91,7 @@ module Nova
91
91
  def self.perform_get(endpoint, query, headers = {})
92
92
  set_base_uri
93
93
 
94
- Kernel.p "[NOVA-API] Issuing GET to #{endpoint}, headers: #{headers.merge(authorization_header)}" if configuration.debug?
94
+ Kernel.p "[NOVA-API] Issuing GET to #{base_uri}#{endpoint}, headers: #{headers.merge(authorization_header)}" if configuration.debug?
95
95
 
96
96
  response =
97
97
  if query
@@ -118,7 +118,7 @@ module Nova
118
118
  Kernel.p "[NOVA-API] Changing base URI from #{base_uri} to #{base_url}"
119
119
  end
120
120
 
121
- base_uri base_url
121
+ default_options[:base_uri] = base_url
122
122
  end
123
123
  def_delegator self, :set_base_uri
124
124
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Nova
4
4
  module API
5
- VERSION = '1.4.5'
5
+ VERSION = '1.4.6'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nova-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.5
4
+ version: 1.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Coyô Software
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-04-05 00:00:00.000000000 Z
11
+ date: 2024-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler