evt-entity_cache 0.18.0.0 → 0.18.1.0

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: ae771223b42527de66fc9419257d998984f89e5b020e78ed592b00dfba06d2f8
4
- data.tar.gz: cbda82a45cd3188c808807bcfff540578ea98da9d51d6f1558408d746170a60f
3
+ metadata.gz: 41af8c42d7e9eca5c3f58e894ae8b8885d425df83471894ad1dc0cbab9ac0a6a
4
+ data.tar.gz: 776e23bc5fa2757a8b39afcb9fddd0fa3bab877913e1bf0fed818686dc5ee8f2
5
5
  SHA512:
6
- metadata.gz: 92cee7b9ede8900a43312a1956fe2d9270706b26da5d52c0e42adb2510b5781d583a2738eef05bb9b5ed148b8d4534372f1138792fa6b4adcfcc909b78273c44
7
- data.tar.gz: d832639518bca3fb8b6f016d888648e548e649a1f43c7560600925af377bed22d7a5313df3a08ab3b812c3808829964e90402ec9898c06db0555eafbb3303111
6
+ metadata.gz: 1dfcc7dbcbd91c1dff238d70f9ddff9d1305d2533a30d1e34a24198ab02f503b22687295ebc7b58154825689f1f821e47949d276c28070eec0bea8f1e4702957
7
+ data.tar.gz: 87f0dabaa2d0fd8982fdc77e6efcb7594a3d79fcb18948de77716f8734d2fd35d710cf37bfb5ba3faa8db1138ab5d969e39490a399270f1b5fb28099cc2e4eca
@@ -43,6 +43,19 @@ class EntityCache
43
43
 
44
44
  record
45
45
  end
46
+
47
+ def delete(id)
48
+ records.delete(id)
49
+ end
50
+
51
+ def count
52
+ records.count
53
+ end
54
+ alias :length :count
55
+
56
+ def empty?
57
+ records.empty?
58
+ end
46
59
  end
47
60
  end
48
61
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-entity_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0.0
4
+ version: 0.18.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-14 00:00:00.000000000 Z
11
+ date: 2018-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-configure