entity_store_sequel 0.0.7 → 0.0.8
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b3956cd44cc5c897c19cb96966e46e80e84f7e07
|
|
4
|
+
data.tar.gz: 9a6703b7c60cfba40ef47cd61a844431dfd8c94a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 698435ba4a53e4243fbae71ec7593fd279fe641ad1f703dc719bf17442e3cfdad333f12a10384f90b2af429ee3f2bdd79602584a19996baa3a5ce689fa160cb1
|
|
7
|
+
data.tar.gz: 00fbf106ab1bbf35c64d280d92fe6b1d292bdff255de8f76bae8e93c833550d120d2e9b377f14c075c07ba62956a8a3d46ece3ab5a8e5f8c8ce0b46989290cd8
|
|
@@ -120,9 +120,8 @@ module EntityStoreSequel
|
|
|
120
120
|
:_type => event.class.name,
|
|
121
121
|
:_entity_id => event.entity_id.to_s,
|
|
122
122
|
:entity_version => event.entity_version,
|
|
123
|
-
:by => event.attributes[:by],
|
|
124
123
|
:at => event.attributes[:at],
|
|
125
|
-
:data => PigeonHole.generate(hash_without_keys(event.attributes, :entity_id, :
|
|
124
|
+
:data => PigeonHole.generate(hash_without_keys(event.attributes, :entity_id, :at)),
|
|
126
125
|
}
|
|
127
126
|
events.insert(doc)
|
|
128
127
|
end
|
|
@@ -218,7 +217,6 @@ module EntityStoreSequel
|
|
|
218
217
|
hash[:_id] = attrs[:id]
|
|
219
218
|
hash[:entity_version] = attrs[:entity_version]
|
|
220
219
|
hash[:entity_id] = attrs[:_entity_id]
|
|
221
|
-
hash[:by] = attrs[:by]
|
|
222
220
|
hash[:at] = attrs[:at]
|
|
223
221
|
EntityStore::Config.load_type(attrs[:_type]).new(hash)
|
|
224
222
|
rescue => e
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: entity_store_sequel
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stephen Binns
|
|
@@ -92,6 +92,7 @@ files:
|
|
|
92
92
|
- lib/sequel/core_ext.rb
|
|
93
93
|
- lib/sequel/migrations/201608121657_create_entities_and_events.rb
|
|
94
94
|
- lib/sequel/migrations/201608231414_promote_by_and_at.rb
|
|
95
|
+
- lib/sequel/migrations/201608231621_depromote_by.rb
|
|
95
96
|
- lib/tasks/entity_store.rake
|
|
96
97
|
- spec/entity_store_sequel/postgres_entity_store_spec.rb
|
|
97
98
|
- spec/entity_store_spec.rb
|