evt-event_source-postgres 0.17.2.0 → 0.18.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
  SHA1:
3
- metadata.gz: 756cde09c6f7c272b1c2e0c8ff15306e8f90e027
4
- data.tar.gz: 816f85c45e16418986910ea3bb126e367b7453b1
3
+ metadata.gz: 99db535e5886f4dac065cdc2ece637adcfdeaecb
4
+ data.tar.gz: 2ae804f2b86e1bf476e1a838eb51685d5a5f0064
5
5
  SHA512:
6
- metadata.gz: f573c88c9cd3a33caecb46060e25acc0999abfa6026279a8aaad00b612540e1f67433aacf9fef5d64017faf3fff508d15d7257d020dc483e9f70a74f676572f7
7
- data.tar.gz: 5e5485a959db0064a4b33b0b647042ddb6a27aa92c3c59c5a41c0536a09d550d066ceef0997f684aeabdf91523b78637a42387693d7866bc5c6448363c910714
6
+ metadata.gz: 23c7de69db9890d2a513865382cca707817af56d60b9e8eb0a9cec78c501ac21aebc43766c3c4924eeeb9a7dfdc34538846c467d6998ac41894ccc84d1c0864b
7
+ data.tar.gz: 17e57502c94956b2d634368abc6ea0befbf55cead355e3950796d3c96700eb73d03132bd9688bc2a477f0c3f2ca87454f8168e9b4a4af7734dcf42ff532c53db
@@ -0,0 +1 @@
1
+ lib/event_source/postgres.rb
@@ -1,7 +1,6 @@
1
1
  require 'pg'
2
2
 
3
3
  require 'event_source'
4
- require 'cycle'
5
4
 
6
5
  require 'log'
7
6
  require 'telemetry'
@@ -10,7 +10,7 @@ module EventSource
10
10
  end
11
11
 
12
12
  def write(batch, stream_name, expected_version: nil)
13
- logger.trace { "Writing batch (Stream Name: #{stream_name}, Number of Events: #{batch.length}, Expected Version: #{expected_version.inspect})" }
13
+ logger.trace(tag: :write) { "Writing batch (Stream Name: #{stream_name}, Number of Events: #{batch.length}, Expected Version: #{expected_version.inspect})" }
14
14
 
15
15
  unless expected_version.nil?
16
16
  expected_version = ExpectedVersion.canonize(expected_version)
@@ -27,18 +27,18 @@ module EventSource
27
27
  end
28
28
  end
29
29
 
30
- logger.debug { "Wrote batch (Stream Name: #{stream_name}, Number of Events: #{batch.length}, Expected Version: #{expected_version.inspect})" }
30
+ logger.debug(tag: :write) { "Wrote batch (Stream Name: #{stream_name}, Number of Events: #{batch.length}, Expected Version: #{expected_version.inspect})" }
31
31
 
32
32
  last_position
33
33
  end
34
34
 
35
35
  def write_event_data(event_data, stream_name, expected_version: nil)
36
- logger.trace { "Writing event data (Stream Name: #{stream_name}, Type: #{event_data.type}, Expected Version: #{expected_version.inspect})" }
37
- logger.trace(tags: [:data, :event_data]) { event_data.pretty_inspect }
36
+ logger.trace(tag: :write) { "Writing event data (Stream Name: #{stream_name}, Type: #{event_data.type}, Expected Version: #{expected_version.inspect})" }
37
+ logger.trace(tags: [:data, :event_data, :write]) { event_data.pretty_inspect }
38
38
 
39
39
  put.(event_data, stream_name, expected_version: expected_version).tap do
40
- logger.debug { "Wrote event data (Stream Name: #{stream_name}, Type: #{event_data.type}, Expected Version: #{expected_version.inspect})" }
41
- logger.debug(tags: [:data, :event_data]) { event_data.pretty_inspect }
40
+ logger.debug(tag: :write) { "Wrote event data (Stream Name: #{stream_name}, Type: #{event_data.type}, Expected Version: #{expected_version.inspect})" }
41
+ logger.debug(tags: [:data, :event_data, :write]) { event_data.pretty_inspect }
42
42
  end
43
43
  end
44
44
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-event_source-postgres
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.2.0
4
+ version: 0.18.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project
8
8
  autorequire:
9
9
  bindir: scripts
10
10
  cert_chain: []
11
- date: 2017-04-05 00:00:00.000000000 Z
11
+ date: 2017-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-event_source
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: evt-cycle
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: evt-settings
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -97,9 +83,9 @@ dependencies:
97
83
  description: " "
98
84
  email: opensource@eventide-project.org
99
85
  executables:
86
+ - evt-pg-create-db
100
87
  - evt-pg-delete-db
101
88
  - evt-pg-list-events
102
- - evt-pg-create-db
103
89
  - evt-pg-recreate-db
104
90
  extensions: []
105
91
  extra_rdoc_files: []
@@ -120,6 +106,7 @@ files:
120
106
  - database/test/write-event-expected-version.sql
121
107
  - database/test/write-event.sql
122
108
  - database/uninstall.sh
109
+ - lib/event_source/loader.rb
123
110
  - lib/event_source/postgres.rb
124
111
  - lib/event_source/postgres/controls.rb
125
112
  - lib/event_source/postgres/controls/category.rb
@@ -163,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
150
  version: '0'
164
151
  requirements: []
165
152
  rubyforge_project:
166
- rubygems_version: 2.6.8
153
+ rubygems_version: 2.6.11
167
154
  signing_key:
168
155
  specification_version: 4
169
156
  summary: Event source client for PostgreSQL