rails_event_store_active_record 0.6.10 → 0.6.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +12 -2
- data/lib/rails_event_store_active_record/event_repository.rb +3 -3
- data/lib/rails_event_store_active_record/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3e47e64c189a2d4deac2d6b697a7040c9036cd3
|
4
|
+
data.tar.gz: fae82ece3c1fa33bb22bfd841dfe24de0e2ec51c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bded00b39b27ecec6727f1aee465da86cd965cd92ce540b7ee03743a351283395318c7e2453b3ebe0e57cc8844353404bfdc78d95ee548a622160ec9a1a72214
|
7
|
+
data.tar.gz: 86fb5094355ee151063f5a0f7eaab4b18a0a78dad7a58daed42d0e1171307161456c1ff79f47e4f07647743706997e2a8723febe4f158dd7919ee510351ff600
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
### 0.6.11 (8.02.2016)
|
2
|
+
|
3
|
+
* Fix: Explicit order when querying forward. Leaving it implcit to database engine choice gives different results on different engines.
|
4
|
+
|
1
5
|
### 0.6.10 (23.11.2016)
|
2
6
|
|
3
7
|
* Change: requires update to allow void active_record dependency when using RailsEventStore without RailsEventStoreActiveRecord
|
data/README.md
CHANGED
@@ -29,8 +29,18 @@ Whenever you fix a bug or add a new feature, we require that the coverage doesn'
|
|
29
29
|
|
30
30
|
## About
|
31
31
|
|
32
|
-
<img src="http://arkency.com/images/arkency.png" alt="Arkency" width="
|
32
|
+
<img src="http://arkency.com/images/arkency.png" alt="Arkency" width="60px" align="left" />
|
33
33
|
|
34
|
-
|
34
|
+
This repository is funded and maintained by Arkency. Check out our other [open-source projects](https://github.com/arkency).
|
35
35
|
|
36
36
|
You can also [hire us](http://arkency.com) or [read our blog](http://blog.arkency.com).
|
37
|
+
|
38
|
+
|
39
|
+
## Learn more about DDD & Event Sourcing
|
40
|
+
|
41
|
+
Check our **Rails + Domain Driven Design Workshop** [more details](http://blog.arkency.com/ddd-training/).
|
42
|
+
|
43
|
+
Why You should attend? Robert has explained this in [this blogpost](http://blog.arkency.com/2016/12/why-would-you-even-want-to-listen-about-ddd/).
|
44
|
+
|
45
|
+
Next edition will be held on **12-13th January 2017** (Thursday & Friday) in Wrocław, Poland.
|
46
|
+
Workshop will be held in English.
|
@@ -31,7 +31,7 @@ module RailsEventStoreActiveRecord
|
|
31
31
|
stream = stream.where('id > ?', starting_event)
|
32
32
|
end
|
33
33
|
|
34
|
-
stream.limit(count)
|
34
|
+
stream.order('id ASC').limit(count)
|
35
35
|
.map(&method(:build_event_entity))
|
36
36
|
end
|
37
37
|
|
@@ -47,7 +47,7 @@ module RailsEventStoreActiveRecord
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def read_stream_events_forward(stream_name)
|
50
|
-
adapter.where(stream: stream_name)
|
50
|
+
adapter.where(stream: stream_name).order('id ASC')
|
51
51
|
.map(&method(:build_event_entity))
|
52
52
|
end
|
53
53
|
|
@@ -63,7 +63,7 @@ module RailsEventStoreActiveRecord
|
|
63
63
|
stream = stream.where('id > ?', starting_event)
|
64
64
|
end
|
65
65
|
|
66
|
-
stream.limit(count)
|
66
|
+
stream.order('id ASC').limit(count)
|
67
67
|
.map(&method(:build_event_entity))
|
68
68
|
end
|
69
69
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_event_store_active_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arkency
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
197
197
|
version: '0'
|
198
198
|
requirements: []
|
199
199
|
rubyforge_project:
|
200
|
-
rubygems_version: 2.
|
200
|
+
rubygems_version: 2.5.1
|
201
201
|
signing_key:
|
202
202
|
specification_version: 4
|
203
203
|
summary: Active Record events repository for Rails Event Store
|