dis 1.1.12 → 1.1.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ab79bc2e3e6986e1a15307f091648cba8cde50be4f4debc1d50d5977865bf0d
4
- data.tar.gz: 6640e1a5f801fefa6ae06a9c9dcb62ae2059ca1c79ac2c9e7d3e50910caab5f3
3
+ metadata.gz: c2ca8b5aa3b6e9e27987f33e3dd32c9a912cf7fe37c9277b53f4797be13653a1
4
+ data.tar.gz: 81ce7ff7957b0afcb8bfd1be7adac9551c6fa1773470e4bb23ba0f5cf2033dbe
5
5
  SHA512:
6
- metadata.gz: 6ed956050cbc242e59c362f1291ef8380e4a95e13ffc88fedfeff85681d01cef403d4a44092f7311f14dd466cdebc4a86340f9415561dcdb0d5da440a3213453
7
- data.tar.gz: e2d5ef7b3a46b39993093841cc637b4ac24bcd2937a3231d50c967c45716078422a9560613cd31521d92cdb5a7691785c594c7ba3ed593665b3baec4c61832fd
6
+ metadata.gz: 9dfd2f361cc55b6d7f2f8db29323d56b0cbdbf03a614c961a5ce9d8a7b6199036e678e887205df4a472536fcfe92198bb068d7d87b5d5e7c0f533b2eee20bda0
7
+ data.tar.gz: ce2a50bd934b3ca7163191e46195be42e95713864157ccc2737bfdd0db514ab2074ac3d995ebb64b24cf46ca60c53a73d59a4f853ef5a2c78728c5999ff93a93
@@ -50,6 +50,8 @@ module Dis
50
50
  # by existing records. This is triggered from callbacks on the record
51
51
  # whenever they are changed or destroyed.
52
52
  def expire(hash)
53
+ return if hash.blank?
54
+
53
55
  unless @record.class.where(
54
56
  @record.class.dis_attributes[:content_hash] => hash
55
57
  ).any?
data/lib/dis/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dis
4
- VERSION = "1.1.12"
4
+ VERSION = "1.1.13"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.12
4
+ version: 1.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Inge Jørgensen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-01 00:00:00.000000000 Z
11
+ date: 2023-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-core