ecoportal-api 0.10.14 → 0.10.15

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: 42c60da1fe6f9c6176e85d65b5283b75b54af11f5e977788eddd7fde57bba953
4
- data.tar.gz: d5bf03e2eaec6dad5778f8a0ce693b9a29d9786331e5517facab0e28941abccd
3
+ metadata.gz: b9f1140595821ac9fa4c456761eead0dcfa575c2fe638ed54c0d42cd3b24c7c7
4
+ data.tar.gz: 62c241b84ab6552812a8e6b386aff188fd126201dbe6f5243f58882ccaa9572f
5
5
  SHA512:
6
- metadata.gz: b5d0dfc99e97e97b857a1f424b80e4211811ed7ef6250300a9cd8614a39d5281fef6661519d915a29980a8347368b50bcf7961cfb5a676b6b6d196f16a48cafb
7
- data.tar.gz: 1ca5a7a3ffc81adc74679524ad715d4833e665867041e7c2c25eace44e98d9612a330dad433e0db4c9e85d95e5fbc5209fc5c46705c1510e91280a011a122c11
6
+ metadata.gz: e82ade621496ffefce230aae2b95c5a0a5a54808b5c604ffdc7b3329c5221051f1780e0084c8ab4a7f8179c17b7fd4f5afba5da10510d9fa2b6eb985984ed529
7
+ data.tar.gz: bc52feca422916fc79dcd4b5424c4fa6c04af03dea5496db8c9c1869926646ad0bbaffa3397ff7a560c51de47eee1d21853ca30b9e0692a73c7f1b801cbb18a1
data/CHANGELOG.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
- ## [0.10.15] - 2025-08-xx
5
+ ## [0.10.16] - 2026-01-xx
6
6
 
7
7
  ### Added
8
8
 
@@ -10,6 +10,12 @@ All notable changes to this project will be documented in this file.
10
10
 
11
11
  ### Fixed
12
12
 
13
+ ## [0.10.15] - 2026-05-26
14
+
15
+ ### Changed
16
+
17
+ - `Client.new` keep `@version` var when parameter not specified.
18
+
13
19
  ## [0.10.14] - 2025-08-15
14
20
 
15
21
  ### Added
@@ -31,7 +31,7 @@ module Ecoportal
31
31
  MAIN_END_POINT = 'api'.freeze
32
32
 
33
33
  attr_accessor :logger
34
- attr_reader :host
34
+ attr_reader :host, :version
35
35
 
36
36
  # @note the `api_key` will be automatically added as parameter `X-ApiKey` in the header of the http requests.
37
37
  # @param api_key [String] the key version to stablish the api connection.
@@ -40,8 +40,9 @@ module Ecoportal
40
40
  # @param logger [Logger] an object with `Logger` interface to generate logs.
41
41
  # @param deep_logging [Boolean] whether or not batch responses should be logged
42
42
  # @return [Client] an object that holds the configuration of the api connection.
43
- def initialize(api_key:, version: nil, host: DEFAULT_HOST, logger: nil, deep_logging: false)
44
- @version = version
43
+ def initialize(api_key:, version: :unused, host: DEFAULT_HOST, logger: nil, deep_logging: false)
44
+ version = nil if version == :unused
45
+ @version = version unless version.nil?
45
46
  @api_key = api_key
46
47
  @logger = logger
47
48
  @host = host
@@ -55,12 +56,12 @@ module Ecoportal
55
56
 
56
57
  if deep_logging?
57
58
  log(:debug) {
58
- "#{version} client initialized pointing at #{host}"
59
+ "#{self.version} client initialized pointing at #{host}"
59
60
  }
60
61
  end
61
62
 
62
63
  return unless api_key.nil? || api_key.match(/\A\W*\z/)
63
- return unless version
64
+ return unless self.version
64
65
 
65
66
  log(:error) { 'Api-key missing!' }
66
67
  end
@@ -1,5 +1,5 @@
1
1
  module Ecoportal
2
2
  module API
3
- VERSION = '0.10.14'.freeze
3
+ VERSION = '0.10.15'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecoportal-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.14
4
+ version: 0.10.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tapio Saarinen
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2025-08-15 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: pry
@@ -194,7 +193,6 @@ dependencies:
194
193
  - - "~>"
195
194
  - !ruby/object:Gem::Version
196
195
  version: '0.1'
197
- description:
198
196
  email:
199
197
  - tapio@ecoportal.co.nz
200
198
  - oscar@ecoportal.co.nz
@@ -274,7 +272,6 @@ licenses:
274
272
  - MIT
275
273
  metadata:
276
274
  rubygems_mfa_required: 'true'
277
- post_install_message:
278
275
  rdoc_options: []
279
276
  require_paths:
280
277
  - lib
@@ -289,8 +286,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
289
286
  - !ruby/object:Gem::Version
290
287
  version: '0'
291
288
  requirements: []
292
- rubygems_version: 3.5.23
293
- signing_key:
289
+ rubygems_version: 4.0.8
294
290
  specification_version: 4
295
291
  summary: A collection of helpers for interacting with the ecoPortal MS's various APIs
296
292
  test_files: []