rails_event_store 0.14.2 → 0.14.3
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/lib/rails_event_store.rb +0 -10
- data/lib/rails_event_store/all.rb +8 -0
- data/lib/rails_event_store/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2ba54149691aef2db6b0af42820d922fbce45fc
|
4
|
+
data.tar.gz: 809408dfeb9c63e75ac9c0ebc361a99a246cd8ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f44b87b6f0a14d5492a3809fafe51d533e6712796b37340b2dd617fc03c3142dcd4e9d24bdce58c033eb55220b19d7afdb7b264e7680d4d32cf8e3e9bb22db2f
|
7
|
+
data.tar.gz: 44a6ef154837dec53e2fd8bef33c6541208e74b18a1be1f00223dd3928afbea0e30182da3648de53f2b76c717c24f7a255a716d3143b08cdea35535f79e28486
|
data/CHANGELOG.md
CHANGED
data/lib/rails_event_store.rb
CHANGED
@@ -1,15 +1,5 @@
|
|
1
|
-
require 'active_support/core_ext/class/attribute_accessors'
|
2
1
|
require 'rails_event_store_active_record'
|
3
2
|
require 'rails_event_store/all'
|
4
3
|
|
5
|
-
module RailsEventStore
|
6
|
-
mattr_reader :event_repository
|
7
|
-
|
8
|
-
def self.event_repository=(event_repository)
|
9
|
-
raise ArgumentError unless event_repository
|
10
|
-
@@event_repository = event_repository
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
4
|
# Use active record by default
|
15
5
|
RailsEventStore.event_repository = RailsEventStoreActiveRecord::EventRepository.new
|
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'active_support/core_ext/class/attribute_accessors'
|
1
2
|
require 'ruby_event_store'
|
2
3
|
require 'rails_event_store/client'
|
3
4
|
require 'rails_event_store/version'
|
@@ -17,4 +18,11 @@ module RailsEventStore
|
|
17
18
|
InvalidPageSize = RubyEventStore::InvalidPageSize
|
18
19
|
GLOBAL_STREAM = RubyEventStore::GLOBAL_STREAM
|
19
20
|
PAGE_SIZE = RubyEventStore::PAGE_SIZE
|
21
|
+
|
22
|
+
mattr_reader :event_repository
|
23
|
+
|
24
|
+
def self.event_repository=(event_repository)
|
25
|
+
raise ArgumentError unless event_repository
|
26
|
+
@@event_repository = event_repository
|
27
|
+
end
|
20
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_event_store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arkency
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|