portunus 0.3.5 → 0.3.6

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: 3550e3c505e933ed612ddb7fede00e9d5071428f6fc47cbec262982d303c4fa8
4
- data.tar.gz: 8f249e798e8075a82aad74997be541bb55fdc41fbbb2cf313091269a13ddfd3b
3
+ metadata.gz: 7ce3eac0af0a8a0fa451fb24de5cdddbc7741ce5bf043e669b580b2ae8f7045d
4
+ data.tar.gz: 901ec596dc6b5ca9f2a304fd90fe5cb260bffce513209b3b28cfdbf98d199fd5
5
5
  SHA512:
6
- metadata.gz: 10b794b14f6f7e7eeb7e6c282c31eee4cb708c4417045237a46d516187cb4c649e206c75645c462cc333fb43378d4e26e0a9e03d9c3e083a17f440e96f40c758
7
- data.tar.gz: 3018430d52d24319bc643bb7f3990379557e271869c1a6e396824d834bed24f1005b173ac0b2fda5879a1bdb1227224ce53e7e6a4058423de207bd3614102d2b
6
+ metadata.gz: 721a12bf89394e876fac117f866e2938fb2a57805472fd53978cba626e6a9cbc82cf4c4462a6402ca31dbab2c8577a657cfe3445271df022b558d908db5d177d
7
+ data.tar.gz: 370cb0e5ae67bde8c1d0517586fd19802f14527337c087809578162411a06f7c97d9a109fc1f2c207557141ba474d42de75a66816e2f96e03f3ae90cb9aebbca
@@ -4,8 +4,8 @@ namespace :portunus do
4
4
  scope = ::Portunus::DataEncryptionKey.
5
5
  where(
6
6
  "last_kek_rotation < ? or (created_at < ? and last_kek_rotation is null)",
7
- ::Portunus.configuration.max_key_duration,
8
- ::Portunus.configuration.max_key_duration
7
+ DateTime.now - ::Portunus.configuration.max_key_duration,
8
+ DateTime.now - ::Portunus.configuration.max_key_duration
9
9
  )
10
10
 
11
11
  scope.in_batches do |relation|
@@ -23,8 +23,8 @@ namespace :portunus do
23
23
  scope = ::Portunus::DataEncryptionKey.
24
24
  where(
25
25
  "last_dek_rotation < ? or (created_at < ? and last_dek_rotation is null)",
26
- ::Portunus.configuration.max_key_duration,
27
- ::Portunus.configuration.max_key_duration
26
+ DateTime.now - ::Portunus.configuration.max_key_duration,
27
+ DateTime.now - ::Portunus.configuration.max_key_duration
28
28
  )
29
29
  end
30
30
  scope.in_batches do |relation|
@@ -1,3 +1,3 @@
1
1
  module Portunus
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: portunus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colin Petruno