nexia_event_store 0.7.3 → 0.7.4

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: ffd113debea7c43b5fb12395152ffe02ca41d163
4
- data.tar.gz: dc82ef5757b0dbdf922cc6201644f65e8a7a0696
3
+ metadata.gz: 59f8ee711cea78125f17a42ceb0114e811c51b51
4
+ data.tar.gz: 05b12845f42fd4d14c7972bd938785f6b23e12f4
5
5
  SHA512:
6
- metadata.gz: 8555901466c29f480c9f494111ef015d7ebad9a83df37aa921a83a4e585a662bd22f56d17bffce79e5f58c9404b21dad67aa7b48f0f7c936e33595e254643604
7
- data.tar.gz: 7928d2a5cc33e70888b6f71d363327309bfce4c0aa88245be4158b75f756598a74dfa2fe609ba39ea7878761643a28f33017453e058cfb8081ae1139ac91a114
6
+ metadata.gz: bfa0ab38b2a24f177090ae4c8c8675c66a70b4d701947aa21946ab274017bebf4940e9a629f173dd6ba9239a73f726694237ea3ad703dcd4ada24ce57c9b7d02
7
+ data.tar.gz: 68b3545fa8762fd3a2eb83a1189eba23be8bc496234cd708ea2896be4f13d9b15af5fbde8b19bd8e6cfbcb7cdded18796fc482e1c971842f3b1206a3aecb2589
@@ -43,9 +43,9 @@ module EventStore
43
43
  end
44
44
 
45
45
  def append(events, logger)
46
- logger.debug { "EventStore#append, appending to event stream" }
46
+ logger.debug("EventStore#append, appending to event stream")
47
47
  event_stream.append(events, logger) do |prepared_events|
48
- logger.debug { "EventStore#append, storing snapshot" }
48
+ logger.debug("EventStore#append, storing snapshot")
49
49
  snapshot.store_snapshot(prepared_events, logger)
50
50
  end
51
51
  end
@@ -31,7 +31,7 @@ module EventStore
31
31
  id = event_table.insert(event_hash)
32
32
  end
33
33
 
34
- logger.debug { "EventStream#append, setting id #{id} for #{event_hash.inspect}" }
34
+ logger.debug("EventStream#append, setting id #{id} for #{event_hash.inspect}")
35
35
 
36
36
  event[:id] = id
37
37
  end
@@ -80,17 +80,17 @@ module EventStore
80
80
  key = snapshot_key(event_hash)
81
81
  current_id = current_event_id_numbers[key].to_i
82
82
 
83
- logger.debug { "Snapshot#store_snapshot: snapshot_key: #{key} prepared id: #{event_hash[:id]}, current id: #{current_id}" }
83
+ logger.debug("Snapshot#store_snapshot: snapshot_key: #{key} prepared id: #{event_hash[:id]}, current id: #{current_id}")
84
84
  if event_hash[:id].to_i > current_id
85
- logger.debug { "prepared event is newer, storing" }
85
+ logger.debug("prepared event is newer, storing")
86
86
  valid_snapshot_events += snapshot_event(event_hash)
87
87
  valid_snapshot_event_ids += snapshot_event_id(event_hash)
88
88
  end
89
89
  end
90
90
 
91
- logger.debug { "valid_snapshot_event_ids: #{valid_snapshot_event_ids.inspect}" }
91
+ logger.debug("valid_snapshot_event_ids: #{valid_snapshot_event_ids.inspect}")
92
92
  unless valid_snapshot_event_ids.empty?
93
- logger.debug { "there are valid_snapshot_event_ids, persisting to redis" }
93
+ logger.debug("there are valid_snapshot_event_ids, persisting to redis")
94
94
  valid_snapshot_event_ids += [:current_event_id, valid_snapshot_event_ids.last.to_i]
95
95
 
96
96
  @redis.multi do
@@ -1,3 +1,3 @@
1
1
  module EventStore
2
- VERSION = '0.7.3'
2
+ VERSION = '0.7.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexia_event_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Saieg, John Colvin
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  version: '0'
234
234
  requirements: []
235
235
  rubyforge_project:
236
- rubygems_version: 2.4.3
236
+ rubygems_version: 2.4.4
237
237
  signing_key:
238
238
  specification_version: 4
239
239
  summary: Ruby implementation of an EventSource (A+ES) for the Nexia Ecosystem