entity_store_sequel 0.0.7 → 0.0.8

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
  SHA1:
3
- metadata.gz: e2a414001d703072be6f5e520648088fe3f40862
4
- data.tar.gz: e5a4843d072fb717697d0121b9b849c67d1374f2
3
+ metadata.gz: b3956cd44cc5c897c19cb96966e46e80e84f7e07
4
+ data.tar.gz: 9a6703b7c60cfba40ef47cd61a844431dfd8c94a
5
5
  SHA512:
6
- metadata.gz: 020d70b51d59a8046eb33ada3585e3aa33e69cc34b58feae3ac5d4c1d1625d390cded40216f57a7878fdb4bf03cda20839fa061a397fc9ff8f8eeb67f22733dc
7
- data.tar.gz: 88fcad47ea08f82c28a6e841297a185f47e91e1f124fa44bd223feb5c5dcb443bf1f9f626ac7341e58e28e1cd1957dd07903e026bf8505f886a30a5458bc6c02
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, :by, :at)),
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
@@ -1,3 +1,3 @@
1
1
  module EntityStoreSequel
2
- VERSION = "0.0.7".freeze
2
+ VERSION = "0.0.8".freeze
3
3
  end
@@ -0,0 +1,10 @@
1
+ Sequel.migration do
2
+ up do
3
+ alter_table(:entity_events) do
4
+ drop_column :by
5
+ end
6
+ end
7
+
8
+ down do
9
+ end
10
+ end
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.7
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