scaltainer 0.6.0 → 0.7.0

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: 3537d6ea1b1cee2e5a5efce8a5c98e3727473585302d57fc816148d8ffce2a4d
4
- data.tar.gz: 0de1927d3b4dc1a35fa755af035a495f7193b9105b8fc0a2088c2ffa2342192d
3
+ metadata.gz: 473bc74f51e2f551aa4aee750dcc758bf02f0d2ccdcb6bfe858c809ddbf20d67
4
+ data.tar.gz: 45797d81e1bdc46e9e0525bd0c0e4b0b745890b8ca16d7b4f7a4d52241a9e72c
5
5
  SHA512:
6
- metadata.gz: f63915a92b777a563f24f89aaae8045465545c0e19f5adf77741426e20aa9f1186aa56218a2bc0fc8001b07d1616e1a76014cee1eba1c5a961638c4e9531eac8
7
- data.tar.gz: a189a04f2b4b7b04f348b6d9d7438bff6323781b63dd4f1191bbe1b3f4bf9fb47222d265279b4b349c3520d0c3a5d2a129e240800c40c3d479aaa7cbdd63c125
6
+ metadata.gz: 8fd16ca6c9a74831cb7571a1def3511bfad5791ea4c84bca3541767a1f42435a4ae3f3bf805bc7eb6343eaffc772692e4aed13abe23fab51fe008e683c26d1de
7
+ data.tar.gz: 8437e013b0a231eb83f1eb6518481989917c923dfbbf7de2f8a4f9e1ab6305448eb2ed64258a9e23843f5d01bed222f21c8fd9f617b5ec54470449d3f2f2f2ba
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- scaltainer (0.6.0)
4
+ scaltainer (0.7.0)
5
5
  docker-api (~> 2.1)
6
6
  dotenv (~> 2.7)
7
7
  excon (~> 0.47)
@@ -12,51 +12,55 @@ PATH
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
- addressable (2.8.1)
16
- public_suffix (>= 2.0.2, < 6.0)
15
+ addressable (2.8.7)
16
+ public_suffix (>= 2.0.2, < 7.0)
17
17
  coderay (1.1.1)
18
18
  diff-lcs (1.3)
19
19
  docile (1.4.0)
20
- docker-api (2.1.0)
21
- excon (>= 0.47.0)
20
+ docker-api (2.4.0)
21
+ excon (>= 0.64.0)
22
22
  multi_json
23
- domain_name (0.5.20190701)
24
- unf (>= 0.0.5, < 1.0.0)
25
- dotenv (2.7.6)
26
- excon (0.82.0)
27
- ffi (1.15.5)
28
- ffi-compiler (1.0.1)
29
- ffi (>= 1.0.0)
23
+ domain_name (0.6.20240107)
24
+ dotenv (2.8.1)
25
+ excon (0.112.0)
26
+ ffi (1.17.2)
27
+ ffi-compiler (1.3.2)
28
+ ffi (>= 1.15.5)
30
29
  rake
31
- http (4.4.1)
32
- addressable (~> 2.3)
30
+ http (5.3.1)
31
+ addressable (~> 2.8)
33
32
  http-cookie (~> 1.0)
34
33
  http-form_data (~> 2.2)
35
- http-parser (~> 1.2.0)
34
+ llhttp-ffi (~> 0.5.0)
36
35
  http-accept (1.7.0)
37
- http-cookie (1.0.4)
36
+ http-cookie (1.1.0)
38
37
  domain_name (~> 0.5)
39
38
  http-form_data (2.3.0)
40
- http-parser (1.2.3)
41
- ffi-compiler (>= 1.0, < 2.0)
42
39
  json (2.6.3)
43
- jsonpath (1.1.0)
40
+ jsonpath (1.1.5)
44
41
  multi_json
45
- kubeclient (4.9.3)
46
- http (>= 3.0, < 5.0)
42
+ kubeclient (4.13.0)
43
+ http (>= 3.0, < 6.0)
47
44
  jsonpath (~> 1.0)
48
45
  recursive-open-struct (~> 1.1, >= 1.1.1)
49
46
  rest-client (~> 2.0)
50
- mime-types (3.4.1)
51
- mime-types-data (~> 3.2015)
52
- mime-types-data (3.2022.0105)
47
+ llhttp-ffi (0.5.1)
48
+ ffi-compiler (~> 1.0)
49
+ rake (~> 13.0)
50
+ logger (1.7.0)
51
+ mime-types (3.7.0)
52
+ logger
53
+ mime-types-data (~> 3.2025, >= 3.2025.0507)
54
+ mime-types-data (3.2025.0924)
53
55
  multi_json (1.15.0)
54
56
  netrc (0.11.0)
55
- newrelic_rpm (7.1.0)
57
+ newrelic_rpm (7.2.0)
58
+ ostruct (0.6.3)
56
59
  prometheus-client (2.1.0)
57
- public_suffix (5.0.0)
60
+ public_suffix (5.1.1)
58
61
  rake (13.0.1)
59
- recursive-open-struct (1.1.3)
62
+ recursive-open-struct (1.3.1)
63
+ ostruct
60
64
  rest-client (2.1.0)
61
65
  http-accept (>= 1.7.0, < 2.0)
62
66
  http-cookie (>= 1.0.2, < 2.0)
@@ -81,9 +85,6 @@ GEM
81
85
  simplecov-html (~> 0.10.0)
82
86
  simplecov-html (0.10.2)
83
87
  simplecov-lcov (0.7.0)
84
- unf (0.1.4)
85
- unf_ext
86
- unf_ext (0.0.8.1)
87
88
 
88
89
  PLATFORMS
89
90
  ruby
@@ -9,7 +9,7 @@ module Scaltainer
9
9
  begin
10
10
  response = Excon.get(@app_endpoint)
11
11
  m = JSON.parse(response.body)
12
- m.reduce({}){|hash, item| hash.merge!({item["name"] => item["quantity"]})}
12
+ m.reduce({}){|hash, item| hash.merge!({item["name"] => (item["quantity"] || item["value"])})}
13
13
  rescue JSON::ParserError => e
14
14
  raise ConfigurationError.new "app_endpoint returned non json response: #{response.body[0..128]}"
15
15
  rescue TypeError => e
@@ -1,3 +1,3 @@
1
1
  module Scaltainer
2
- VERSION = "0.6.0"
2
+ VERSION = "0.7.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scaltainer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hossam Hammady
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-09-15 00:00:00.000000000 Z
11
+ date: 2025-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -224,7 +224,7 @@ homepage: https://github.com/hammady/scaltainer
224
224
  licenses:
225
225
  - MIT
226
226
  metadata: {}
227
- post_install_message:
227
+ post_install_message:
228
228
  rdoc_options: []
229
229
  require_paths:
230
230
  - lib
@@ -240,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
240
  version: '0'
241
241
  requirements: []
242
242
  rubygems_version: 3.1.6
243
- signing_key:
243
+ signing_key:
244
244
  specification_version: 4
245
245
  summary: Autoscale kubernetes controllers and docker services based on application
246
246
  metrics and more