evt-entity_store 0.6.0.0 → 0.7.0.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: 3a239b36fff9609864161b87827e626161383681a15fda4222cba315385a761b
4
- data.tar.gz: f3a4357cbf10a7783a7a47118b5d2a8ccd917d8569f43cb998c3f307ed22eaf0
3
+ metadata.gz: db4d29ab12291ac8c58bfc89ab45729948923097927ded2889ff73a05645d053
4
+ data.tar.gz: e56708073735a58cfed4e7937b07143bf5bcad34b8762e03abe33af15bc28312
5
5
  SHA512:
6
- metadata.gz: 5dd63bd50a2993fa857b2a687d60a3a6ef5076d15ec87f8858c77ba9203c05f4cc99ad14503bf7836ac1e27fc25df208314bb68f2243ff4a03b1c0879d0b3655
7
- data.tar.gz: 78b38c29fef66825201a238ecd59ff689624b6ea79fe36454b83ed6d80939f2a1cb93891706dc13f21414deb1108ee616dafc67baf1f090c6a0d8be72e6a192a
6
+ metadata.gz: 33595c6afac680f9b07c3eb14d8aa95d832af370b4d08daad1dcede855f49a57a5141632bac0e5f75b2f39d76a5cd9452f9664cd46e7fbcc78ef2064c74def81
7
+ data.tar.gz: 0f670fcc537795259a5b0fd6357f5db192c9114e7bd5ab649c8af11de8e3226487c7f987b1064a624ba84094e6cdec0d0e3bb20ade04f0fa99276586c2e1bf90
@@ -1,5 +1,5 @@
1
1
  module EntityStore
2
2
  module Controls
3
- Record = EntityCache::Controls::Record
3
+ Record = ::EntityCache::Controls::Record
4
4
  end
5
5
  end
@@ -2,20 +2,32 @@ module EntityStore
2
2
  module Controls
3
3
  Snapshot = EntityCache::Controls::Store::External
4
4
 
5
+ class ::EntityCache
6
+ module Controls
7
+ module Store
8
+ module External
9
+ class Example
10
+ def self.assure(*); end
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
16
+
5
17
  module Snapshot
6
18
  module Assurance
7
- Error = EntityCache::Store::External::Error
19
+ Error = ::EntityCache::Store::External::Error
8
20
 
9
21
  module Assured
10
22
  class Example
11
- def self.assure(store); end
23
+ def self.assure(*); end
12
24
  def self.configure(*); end
13
25
  end
14
26
  end
15
27
 
16
28
  module NotAssured
17
29
  class Example
18
- def self.assure(store)
30
+ def self.assure(*)
19
31
  raise Error
20
32
  end
21
33
 
@@ -81,6 +81,8 @@ module EntityStore
81
81
  unless snapshot_class.nil?
82
82
  if snapshot_class.respond_to?(:assure)
83
83
  snapshot_class.assure(instance)
84
+ else
85
+ raise Error, "#{snapshot_class} snapshot class doesn't implement the `assure' method"
84
86
  end
85
87
  end
86
88
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-entity_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0.0
4
+ version: 0.7.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project