ruby_event_store 1.2.2 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruby_event_store/projection.rb +12 -0
- data/lib/ruby_event_store/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d861993606cf77fd684424344d2f424bcaca917113230bf76be58e7bcdb2a790
|
4
|
+
data.tar.gz: f275ef5b40cf2e22f6bea28a9ee3cbee82d0d8eeaea0e0e2ea641ccf38cbf9b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6aa5f01b6cb8de3ed9f1ad905a6148ee8ed1c844069f86b253664a1d1214453c5455dd2f0e5040686f89a9759858809c5f65b971662ae1306e11ba23f5cae768
|
7
|
+
data.tar.gz: fae5ee5d9034842fd774c3678c46e2d8cf3fb11015d204eadb0f1eda2b586ad9a6094ea1fe3523f51ae60c830eb873b52d57cbb114f15b053fc466c635b9b04c
|
@@ -5,6 +5,18 @@ module RubyEventStore
|
|
5
5
|
private_class_method :new
|
6
6
|
|
7
7
|
def self.from_stream(*streams)
|
8
|
+
first_of_streams = streams.first
|
9
|
+
if first_of_streams.respond_to?(:flatten)
|
10
|
+
warn <<~EOW
|
11
|
+
Passing array to .from_stream is not supported. This method expects undefined number
|
12
|
+
of positional arguments (splat) rather than an array.
|
13
|
+
|
14
|
+
Expected: .from_stream(#{first_of_streams.map(&:inspect).join(", ")})
|
15
|
+
Received: .from_stream(#{first_of_streams})
|
16
|
+
EOW
|
17
|
+
streams = first_of_streams
|
18
|
+
end
|
19
|
+
|
8
20
|
raise(ArgumentError, "At least one stream must be given") if streams.empty?
|
9
21
|
new(streams: streams)
|
10
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_event_store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arkency
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|