evt-message_store 0.6.0.0 → 0.7.0.1

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: c1ee8b012d9486c47c3cac8acea4dcacfd9e5558ea5efd72bb15e0447f1f68eb
4
- data.tar.gz: a2daca22a9b19b67450bba3b5e9b97ded7216378ee8741177191b65071a0ca59
3
+ metadata.gz: 93fa289e3bfe101341eeb194e73ef1b826990271803938cf9afe00635e25fc4e
4
+ data.tar.gz: 85de52aa936cefccddce22364ec0d9dd7ad3c7e636bb5fb1a383416d52aa54bb
5
5
  SHA512:
6
- metadata.gz: 7d0e17af10573b7b4a843993d0f8caf91fc1ac845af86b12936ed5905cd137959eadb95d4420c5d4f1dd72ea5d8c3fa50851d6f1bfb0b19fc3d4258463471d45
7
- data.tar.gz: '084ac12563886abfec715e39b28ff9603143a9a3f33778d89a73d04d30f8ddc47aec1f3c0799285a8e76ff5847b7b1cac8c9d77cbcf3d7b0b6ca8586817efecc'
6
+ metadata.gz: 78facd6d6bae8930e2871cdffe6bc1e02fef9408bd298751452dddb8fcf4dbf0111205db8391d748c737d43e749b55aced8e966d778e217e6e1a76ddf3d371fe
7
+ data.tar.gz: c907925ecf5f7f76c54416ce8c44c3398a5475f2a11c6c98f6a492303d59dc3d70be393c548de100dc4fb0cd8be7ca0b8cb3aad330d68c770f2ef8de99c60cf2
@@ -6,8 +6,8 @@ module MessageStore
6
6
 
7
7
  attribute :id, String
8
8
  attribute :type, String
9
- attribute :data
10
- attribute :metadata
9
+ attribute :data, ::Hash
10
+ attribute :metadata, ::Hash
11
11
 
12
12
  def ===(other)
13
13
  type == other
@@ -4,7 +4,7 @@ module MessageStore
4
4
 
5
5
  def self.stream_name(category_name, id=nil, type: nil, types: nil)
6
6
  if category_name == nil
7
- raise Error, "Category name must not be omitted"
7
+ raise Error, "Category name must not be omitted from stream name"
8
8
  end
9
9
 
10
10
  types = Array(types)
@@ -41,7 +41,7 @@ module MessageStore
41
41
 
42
42
  def call(message_data, stream_name, expected_version: nil)
43
43
  logger.trace(tag: :write) { "Writing message data (Stream Name: #{stream_name}, Expected Version: #{expected_version.inspect})" }
44
- logger.trace(tags: [:data, :message_data, :write]) { message_data.pretty_inspect }
44
+ logger.trace(tags: [:data, :message_data]) { message_data.pretty_inspect }
45
45
 
46
46
  batch = Array(message_data)
47
47
 
@@ -50,7 +50,7 @@ module MessageStore
50
50
  position = write(batch, stream_name, expected_version: expected_version)
51
51
 
52
52
  logger.info(tag: :write) { "Wrote message data (Stream Name: #{stream_name}, Expected Version: #{expected_version.inspect})" }
53
- logger.info(tags: [:data, :message_data, :write]) { message_data.pretty_inspect }
53
+ logger.info(tags: [:data, :message_data]) { message_data.pretty_inspect }
54
54
 
55
55
  position
56
56
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-message_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0.0
4
+ version: 0.7.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-04 00:00:00.000000000 Z
11
+ date: 2018-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-casing