nova-api 1.4.3 → 1.4.5

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: ade5522e27034c1d827abb8890c13526e70b4e827af7ec55065953768ba0359b
4
- data.tar.gz: 83a1ebc2c75b187d7173d1dde47e88298e5e3c40f77cbbe9364ca52da50e58f4
3
+ metadata.gz: d65ec275d59211def3addb948fd8eb041a9011c4f863475b4ae20814dc7697b2
4
+ data.tar.gz: 6485592406ff923bf58094e2c6aaf82b7778c8cdbdecc4edff6b004615b808b3
5
5
  SHA512:
6
- metadata.gz: 9d9bc983dbe38b9ffe7da9a9f13ac1f5b98804e2b1d5cc1180cd8d58237084c0b94622d6929700f7eb7fda5cb4c92cc02538b0a82513531deb7724a6d76d34c0
7
- data.tar.gz: d6a70c102842e9493a3a7d8bab966ff84c5c189f4819a5ed9c7ffde0ca374f3f3afbb5229e13bdbf579c6f7240046b50e4eaf3a19be74c4b1664818a9489b42d
6
+ metadata.gz: b0607c64dba8511a2b183982137e754c4401709dec523dcd8b72e4b1091a99b58b86459ecdee67ad7d6dd194ae515e640437ed0def9dd952d4c17ddf57637062
7
+ data.tar.gz: 8f2ba32f43f95856e1afa04096db889980203d563eef690bdba54554f8536cb0b4aaffd05c3a187e7a685362e74c23ea22948866784cf9373fe8ffbc3d6f4c08
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nova-api (1.4.3)
4
+ nova-api (1.4.5)
5
5
  dry-struct (~> 1.6)
6
6
  dry-types (~> 1.7)
7
7
  httparty (~> 0.1)
data/lib/nova/api/base.rb CHANGED
@@ -112,9 +112,13 @@ module Nova
112
112
  def_delegator self, :configuration
113
113
 
114
114
  def self.set_base_uri
115
- base_uri base_url
115
+ if configuration.debug?
116
+ debug_output $stdout
117
+
118
+ Kernel.p "[NOVA-API] Changing base URI from #{base_uri} to #{base_url}"
119
+ end
116
120
 
117
- debug_output $stdout if configuration.debug?
121
+ base_uri base_url
118
122
  end
119
123
  def_delegator self, :set_base_uri
120
124
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Nova
4
4
  module API
5
- VERSION = '1.4.3'
5
+ VERSION = '1.4.5'
6
6
  end
7
7
  end
@@ -1,9 +1,14 @@
1
1
  module Nova
2
2
  module API
3
3
  class Configuration
4
- attr_accessor :api_key, :subdomain, :use_staging, :debug
5
- attr_reader :host
6
- attr_reader :scheme
4
+ attr_accessor :api_key, :use_staging, :debug
5
+ attr_reader :subdomain
6
+
7
+ def subdomain=(value)
8
+ Kernel.p "[NOVA-API] Changed subdomain from #{@subdomain} to #{value}" if debug?
9
+
10
+ @subdomain = value
11
+ end
7
12
 
8
13
  def use_staging?
9
14
  [true, 'true'].include?(use_staging)
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.3
4
+ version: 1.4.5
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-03 00:00:00.000000000 Z
11
+ date: 2024-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler