krane 3.7.1 → 3.7.2

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: 034cf54d143695589902632153ddb65969bae6135c88b076ec023c3c7dc3264a
4
- data.tar.gz: 309a1d3c9cf5afad784f48a12d9fe1b13568f1485aec95b0007739a13973932a
3
+ metadata.gz: 2267692b50f9327c811d105ec23b0b373549086409dbfa9320dab7110056927e
4
+ data.tar.gz: 8d59aa496ab87f54b1108aa55d049a8f895ebd129f47952eb2cb0a4d379bf17e
5
5
  SHA512:
6
- metadata.gz: 44e89c3a956dec061b554f17a38a2e7afc552cf94a5071470baa3f60fb16ae2510f287d9dd8c2f9e9cc92d78fc330be225de62ce43c3be9bb22eab06104076c4
7
- data.tar.gz: c9d79cd30d415ea7dc718541921a9c02cb60712fe2d021e22869bb03c0e7608b918f8c285a0362fe19d709780c8c48d4f3b5a3c6ba7fa34d299613421350722a
6
+ metadata.gz: 75763fd98cd6d5cb06fb5a27607d3b1db32880a012f24914a7f62c638a79375350e91eb2779fb44085c3ab6867969136e3207c513ea0036087e819b9aead7e83
7
+ data.tar.gz: 128adcfb1addadd78d28ce99d9a0d337f3bc6286157a4ada522efb5747a3175c360b318dcd69fbc03021595610fae66e91d6f3ff14fca1412344b1ed63a49d8c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## next
2
2
 
3
+ ## 3.7.2
4
+
5
+ - Explicitly convert `current_generation` and `observed_generation` values to integers using `.to_i` to ensure consistentency during comparison
6
+
3
7
  ## 3.7.1
4
8
 
5
9
  - Add a `--partials-dir` parameter. When provided, this path will be check for partials first, prior to both `./partials` and `../partials` being checked.
@@ -204,13 +204,13 @@ module Krane
204
204
 
205
205
  def current_generation
206
206
  return -1 unless exists? # must be different default than observed_generation
207
- @instance_data.dig("metadata", "generation")
207
+ @instance_data.dig("metadata", "generation")&.to_i
208
208
  end
209
209
 
210
210
  def observed_generation
211
211
  return -2 unless exists?
212
212
  # populating this is a best practice, but not all controllers actually do it
213
- @instance_data.dig('status', 'observedGeneration')
213
+ @instance_data.dig('status', 'observedGeneration')&.to_i
214
214
  end
215
215
 
216
216
  def status
data/lib/krane/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Krane
3
- VERSION = "3.7.1"
3
+ VERSION = "3.7.2"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: krane
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.1
4
+ version: 3.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katrina Verey
@@ -9,7 +9,7 @@ authors:
9
9
  - Kir Shatrov
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2025-03-11 00:00:00.000000000 Z
12
+ date: 2025-03-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport