evt-message_store 1.0.0.0 → 1.0.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: 52aa3a3c9b1f8e809c780c1e3ebba66d9a9d323aa5b4bf3a6a96605a306b104e
4
- data.tar.gz: dff47321728bf9f134c1d31e09f8f3764f137e99dbd97c6d182f6d36b728623f
3
+ metadata.gz: 0f9a5e79b86693daf3fe472e5d988ff0695aadd38816af4a45eb9f079c6af480
4
+ data.tar.gz: b68e72c8f89899d5794cafda153da460a61a8739c5462eb97939f3a20f88c127
5
5
  SHA512:
6
- metadata.gz: 10e8e668994eb572e79aadcf748920634446d6a4ca271f960d6d316754d129baa859a7b80097339224db3c78c5f1af4d6e27729402c6917422e812f296f006bc
7
- data.tar.gz: d4e05e29258edcce1e1952f881af6195908562ef12e65b911bb92743c7d9b6485640ad46fc902604e820893d117607b598b498224a6122d32dcf66f9a49bf5db
6
+ metadata.gz: 9a53869a249d40019c1b313691885da1855970aacdf15744e0415c830c4fdca15ce090b36be9c8d69da681a14b0d686f77e7dedd900066cf38e9f8c4e710a01d
7
+ data.tar.gz: 555ce439510156895a0da927e11c7f656c9251547d57e47b935fd5d07db2c34bce1abd1cfeff6ac7cbd14f61aea7eb7ac8edf2a6e3cf751dbf01704cf1fbe811
@@ -33,14 +33,28 @@ module MessageStore
33
33
  !stream_name.include?('-')
34
34
  end
35
35
 
36
- def self.get_type_list(stream_name)
36
+ # TODO consider a stream name data structw
37
+ def self.___get_type_list(stream_name)
38
+ # TODO if this is > 2, raise error that more than one colon
39
+
40
+ ## If
37
41
  type = stream_name.split(':').last.split('-').first
38
42
 
43
+ ## No type list if stream name start with type
44
+ ## eg:
39
45
  return nil if stream_name.start_with?(type)
40
46
 
41
47
  type
42
48
  end
43
49
 
50
+ def self.get_type_list(stream_name)
51
+ return nil if stream_name.index(':').nil?
52
+
53
+ category = get_category(stream_name)
54
+
55
+ category.split(':').last
56
+ end
57
+
44
58
  def self.get_types(stream_name)
45
59
  type_list = get_type_list(stream_name)
46
60
 
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: 1.0.0.0
4
+ version: 1.0.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-11-04 00:00:00.000000000 Z
11
+ date: 2018-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-casing
@@ -155,8 +155,6 @@ files:
155
155
  - lib/message_store/message_data/read.rb
156
156
  - lib/message_store/message_data/write.rb
157
157
  - lib/message_store/no_stream.rb
158
- - lib/message_store/postgres
159
- - lib/message_store/postgres.rb
160
158
  - lib/message_store/read.rb
161
159
  - lib/message_store/read/iterator.rb
162
160
  - lib/message_store/stream_name.rb
@@ -181,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
179
  version: '0'
182
180
  requirements: []
183
181
  rubyforge_project:
184
- rubygems_version: 2.7.6
182
+ rubygems_version: 2.7.3
185
183
  signing_key:
186
184
  specification_version: 4
187
185
  summary: Common primitives for platform-specific message store implementations
@@ -1 +0,0 @@
1
- lib/message_store/home/ntl/Projects/eventide-project/message-store-postgres/lib/message_store/postgr
@@ -1 +0,0 @@
1
- lib/message_store/home/ntl/Projects/eventide-project/message-store-postgres/lib/message_store/postgr