evt-entity_cache 2.0.1.2 → 2.0.1.3

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: 0a65dee7e03fdffdece4718fe1d50e5cdf3f5e59466dfb224068b84c8356b6fc
4
- data.tar.gz: b5f966733c02ad8280f954d10226ae99656788514d522e66e3b7750b1670ed62
3
+ metadata.gz: 7759181c081a330787ff8a1814fc4c0b4ad3bfb3b38e8999645b9a8ffefda048
4
+ data.tar.gz: 1d78748e6a63819b47ed9e664531dde507aa625c60fe2011c5ce5bcf6f655e42
5
5
  SHA512:
6
- metadata.gz: bad5d326c349c724b90b47fc8e4c5bfbf9c6558be071d9a61b1363266284a084b4a4ff2e5cde5eeb9596570252927e7cbb8038e610f3d9d5d4229e4232384072
7
- data.tar.gz: fc18bafad76966151ff5029c4af0996e1b763113efc50a47e7f740f2c94b5030fc58bbe0fac5e8a73617e4014f20ea65bcba755e754d9762e26302541c02b827
6
+ metadata.gz: a383073e76be1168f8c79dc77f96d51aee274f7c4f6f9b105fccd8425edf33a2bdc3bf47b2070ae8d2bc5800361e9a0ba0d2974c0d3db5f735242246faf5df7c
7
+ data.tar.gz: 759685cd2c54a78cd0c9fe3a8083f92cef28f7b9b6bc551b677987fdf289dc71c30f20f07033b17a10130a2d6312df9b064294d7ba0849bff910b9ca6a007230
@@ -42,6 +42,8 @@ class EntityCache
42
42
 
43
43
  text = JSON.generate(data)
44
44
 
45
+ FileUtils.mkdir_p(External.file_dump_directory)
46
+
45
47
  File.write(path, text)
46
48
  end
47
49
 
@@ -55,13 +57,13 @@ class EntityCache
55
57
 
56
58
  filename = "#{subject.to_s.gsub('/', '-')}-#{id}.yaml"
57
59
 
58
- full_name = File.join(tmpdir, filename)
60
+ full_name = File.join(file_dump_directory, filename)
59
61
 
60
62
  full_name
61
63
  end
62
64
 
63
- def self.tmpdir
64
- @tmpdir ||= Dir.tmpdir
65
+ def self.file_dump_directory
66
+ "tmp"
65
67
  end
66
68
  end
67
69
  end
@@ -1,5 +1,5 @@
1
1
  require 'json'
2
- require 'tmpdir'
2
+ require 'fileutils'
3
3
 
4
4
  require 'clock/controls'
5
5
  require 'identifier/uuid/controls'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-entity_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1.2
4
+ version: 2.0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  - !ruby/object:Gem::Version
142
142
  version: '0'
143
143
  requirements: []
144
- rubygems_version: 3.3.4
144
+ rubygems_version: 3.3.3
145
145
  signing_key:
146
146
  specification_version: 4
147
147
  summary: Cache of entities retrieved by an entity-store, with in-memory temporary