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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3eae1c274df87ef18c1b104d552c32e3354a90ee7bd08c536b14ef730da4e121
4
- data.tar.gz: 5a102bbd8e4004244bd585a4f5a54d678ec140a1c9fd5ba976673a0c852c1c65
3
+ metadata.gz: d861993606cf77fd684424344d2f424bcaca917113230bf76be58e7bcdb2a790
4
+ data.tar.gz: f275ef5b40cf2e22f6bea28a9ee3cbee82d0d8eeaea0e0e2ea641ccf38cbf9b3
5
5
  SHA512:
6
- metadata.gz: f29812644675d45f21308cca20153cc9f31c2b371f8016037f057cde0ca575e006b2cb664b217c99435a7bef4c4b397f0c3c36c265649db28902fbbb0c75243c
7
- data.tar.gz: e57b1936392592ea8eb8c10fda83459edfaece59af3d7ac6f538cbffb2f846fe807c7f17308808dbc04fd7eedeb258e3b8cfab589b317073b9e9c8a414369d29
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyEventStore
4
- VERSION = "1.2.2"
4
+ VERSION = "1.3.0"
5
5
  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.2.2
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-03 00:00:00.000000000 Z
11
+ date: 2020-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby