nova-api 1.4.5 → 1.4.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 +1 -1
- data/lib/nova/api/base.rb +5 -5
- data/lib/nova/api/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: 4a236ca75cc785c3010e6fc1b9992038318cdb1518ea54d864e0e8fb21bee85d
|
4
|
+
data.tar.gz: d1d5eef3db768d89f0dd9b9fb6884bcd0ddd5fa473e7a6098d210d739fc6f738
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c84eaff31e3cec92bd7675cfa395ef5723e49d95d6137e2b921157e528e8afc7ab6ab178c4f5dd88ebbbbc1f9a25f310808db0799bdfd695aa84e708ae1edba1
|
7
|
+
data.tar.gz: 22018019dd877ca2c2162108abb456695793c191276caa0c8bfcde3d9ef067b36a04d75b342afc123c0a3073e7c35bfd62a6437c280fce6e60cc896708b36f55
|
data/Gemfile.lock
CHANGED
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
|
data/lib/nova/api/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2024-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|