aggregate_root 1.2.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.mutant.yml +1 -0
- data/Gemfile +1 -3
- data/Gemfile.lock +118 -0
- data/aggregate_root.gemspec +2 -3
- data/lib/aggregate_root.rb +2 -1
- data/lib/aggregate_root/version.rb +1 -1
- metadata +22 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00c4e60e5544d7344bd510f09a343ecbc93115c5f2b7d18d67dfcb1292bb8ebe
|
4
|
+
data.tar.gz: 6dd426b68d42fe7363e8fd640162c01cd8b3068d602e17dfdcba80a210f0f76d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 388f3c85d5d00edd6034f2452366fc8cea9844c38346cbdbedcd8e95e42c450502aa0466496e37a0ff8b6ba56b21bd90900915135870da1c10c00d83225a9cd6
|
7
|
+
data.tar.gz: acb22c8403a6155f3cbf96de958550b9fbe197abd4cc1491c665e62545c0b50cc40d8846a4699615e11ea6598d4ba3cb8cb92f8ff3bda3d767d41ef4cb097fe7
|
data/.mutant.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
../.mutant.yml
|
data/Gemfile
CHANGED
@@ -4,9 +4,7 @@ source 'https://rubygems.org'
|
|
4
4
|
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
5
5
|
gemspec
|
6
6
|
|
7
|
-
eval_gemfile
|
7
|
+
eval_gemfile '../support/bundler/Gemfile.shared'
|
8
8
|
|
9
9
|
gem 'ruby_event_store', path: '../ruby_event_store'
|
10
|
-
gem 'protobuf_nested_struct'
|
11
|
-
gem 'google-protobuf', '~> 3.12.2', '>= 3.12.2'
|
12
10
|
gem 'activesupport', '~> 5.0'
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,118 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../ruby_event_store
|
3
|
+
specs:
|
4
|
+
ruby_event_store (2.0.1)
|
5
|
+
concurrent-ruby (~> 1.0, >= 1.1.6)
|
6
|
+
|
7
|
+
PATH
|
8
|
+
remote: .
|
9
|
+
specs:
|
10
|
+
aggregate_root (2.0.1)
|
11
|
+
ruby2_keywords
|
12
|
+
ruby_event_store (= 2.0.1)
|
13
|
+
|
14
|
+
GEM
|
15
|
+
remote: https://rubygems.org/
|
16
|
+
remote: https://oss:7AXfeZdAfCqL1PvHm2nvDJO6Zd9UW8IK@gem.mutant.dev/
|
17
|
+
specs:
|
18
|
+
abstract_type (0.0.7)
|
19
|
+
activesupport (5.2.4.4)
|
20
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
21
|
+
i18n (>= 0.7, < 2)
|
22
|
+
minitest (~> 5.1)
|
23
|
+
tzinfo (~> 1.1)
|
24
|
+
adamantium (0.2.0)
|
25
|
+
ice_nine (~> 0.11.0)
|
26
|
+
memoizable (~> 0.4.0)
|
27
|
+
anima (0.3.2)
|
28
|
+
abstract_type (~> 0.0.7)
|
29
|
+
adamantium (~> 0.2)
|
30
|
+
equalizer (~> 0.0.11)
|
31
|
+
ast (2.4.1)
|
32
|
+
concord (0.1.6)
|
33
|
+
adamantium (~> 0.2.0)
|
34
|
+
equalizer (~> 0.0.9)
|
35
|
+
concurrent-ruby (1.1.7)
|
36
|
+
diff-lcs (1.4.4)
|
37
|
+
equalizer (0.0.11)
|
38
|
+
i18n (1.8.5)
|
39
|
+
concurrent-ruby (~> 1.0)
|
40
|
+
ice_nine (0.11.2)
|
41
|
+
memoizable (0.4.2)
|
42
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
43
|
+
minitest (5.14.2)
|
44
|
+
mprelude (0.1.0)
|
45
|
+
abstract_type (~> 0.0.7)
|
46
|
+
adamantium (~> 0.2.0)
|
47
|
+
concord (~> 0.1.5)
|
48
|
+
equalizer (~> 0.0.9)
|
49
|
+
ice_nine (~> 0.11.1)
|
50
|
+
procto (~> 0.0.2)
|
51
|
+
mutant (0.10.22)
|
52
|
+
abstract_type (~> 0.0.7)
|
53
|
+
adamantium (~> 0.2.0)
|
54
|
+
anima (~> 0.3.1)
|
55
|
+
ast (~> 2.2)
|
56
|
+
concord (~> 0.1.5)
|
57
|
+
diff-lcs (~> 1.3)
|
58
|
+
equalizer (~> 0.0.9)
|
59
|
+
ice_nine (~> 0.11.1)
|
60
|
+
memoizable (~> 0.4.2)
|
61
|
+
mprelude (~> 0.1.0)
|
62
|
+
parser (~> 3.0.0)
|
63
|
+
procto (~> 0.0.2)
|
64
|
+
unparser (~> 0.5.6)
|
65
|
+
variable (~> 0.0.1)
|
66
|
+
mutant-license (0.1.1.2.1627430819213747598431630701693729869473.0)
|
67
|
+
mutant-rspec (0.10.22)
|
68
|
+
mutant (= 0.10.22)
|
69
|
+
rspec-core (>= 3.8.0, < 4.0.0)
|
70
|
+
parser (3.0.0.0)
|
71
|
+
ast (~> 2.4.1)
|
72
|
+
procto (0.0.3)
|
73
|
+
rake (13.0.3)
|
74
|
+
rspec (3.10.0)
|
75
|
+
rspec-core (~> 3.10.0)
|
76
|
+
rspec-expectations (~> 3.10.0)
|
77
|
+
rspec-mocks (~> 3.10.0)
|
78
|
+
rspec-core (3.10.1)
|
79
|
+
rspec-support (~> 3.10.0)
|
80
|
+
rspec-expectations (3.10.1)
|
81
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
82
|
+
rspec-support (~> 3.10.0)
|
83
|
+
rspec-mocks (3.10.1)
|
84
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
85
|
+
rspec-support (~> 3.10.0)
|
86
|
+
rspec-support (3.10.1)
|
87
|
+
ruby2_keywords (0.0.2)
|
88
|
+
thread_safe (0.3.6)
|
89
|
+
tzinfo (1.2.9)
|
90
|
+
thread_safe (~> 0.1)
|
91
|
+
unparser (0.5.6)
|
92
|
+
abstract_type (~> 0.0.7)
|
93
|
+
adamantium (~> 0.2.0)
|
94
|
+
anima (~> 0.3.1)
|
95
|
+
concord (~> 0.1.5)
|
96
|
+
diff-lcs (~> 1.3)
|
97
|
+
equalizer (~> 0.0.9)
|
98
|
+
mprelude (~> 0.1.0)
|
99
|
+
parser (>= 3.0.0)
|
100
|
+
procto (~> 0.0.2)
|
101
|
+
variable (0.0.1)
|
102
|
+
equalizer (~> 0.0.11)
|
103
|
+
|
104
|
+
PLATFORMS
|
105
|
+
ruby
|
106
|
+
|
107
|
+
DEPENDENCIES
|
108
|
+
activesupport (~> 5.0)
|
109
|
+
aggregate_root!
|
110
|
+
mutant (~> 0.10.21)
|
111
|
+
mutant-license!
|
112
|
+
mutant-rspec (~> 0.10.21)
|
113
|
+
rake (>= 10.0)
|
114
|
+
rspec (~> 3.6)
|
115
|
+
ruby_event_store!
|
116
|
+
|
117
|
+
BUNDLED WITH
|
118
|
+
2.1.4
|
data/aggregate_root.gemspec
CHANGED
@@ -22,9 +22,8 @@ Gem::Specification.new do |spec|
|
|
22
22
|
}
|
23
23
|
|
24
24
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
25
|
-
spec.bindir = 'exe'
|
26
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
27
25
|
spec.require_paths = ['lib']
|
28
26
|
|
29
|
-
spec.add_dependency '
|
27
|
+
spec.add_dependency 'ruby2_keywords'
|
28
|
+
spec.add_dependency 'ruby_event_store', '= 2.0.1'
|
30
29
|
end
|
data/lib/aggregate_root.rb
CHANGED
@@ -6,6 +6,7 @@ require 'aggregate_root/transform'
|
|
6
6
|
require 'aggregate_root/default_apply_strategy'
|
7
7
|
require 'aggregate_root/repository'
|
8
8
|
require 'aggregate_root/instrumented_repository'
|
9
|
+
require 'ruby2_keywords'
|
9
10
|
|
10
11
|
module AggregateRoot
|
11
12
|
module OnDSL
|
@@ -31,7 +32,7 @@ module AggregateRoot
|
|
31
32
|
end
|
32
33
|
|
33
34
|
module Constructor
|
34
|
-
def new(*)
|
35
|
+
ruby2_keywords def new(*)
|
35
36
|
super.tap do |instance|
|
36
37
|
instance.instance_variable_set(:@version, -1)
|
37
38
|
instance.instance_variable_set(:@unpublished_events, [])
|
metadata
CHANGED
@@ -1,29 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aggregate_root
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arkency
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: ruby2_keywords
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: ruby_event_store
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
16
30
|
requirements:
|
17
31
|
- - '='
|
18
32
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
33
|
+
version: 2.0.1
|
20
34
|
type: :runtime
|
21
35
|
prerelease: false
|
22
36
|
version_requirements: !ruby/object:Gem::Requirement
|
23
37
|
requirements:
|
24
38
|
- - '='
|
25
39
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
40
|
+
version: 2.0.1
|
27
41
|
description: Event sourced (with Rails Event Store) aggregate root implementation
|
28
42
|
email:
|
29
43
|
- dev@arkency.com
|
@@ -31,8 +45,10 @@ executables: []
|
|
31
45
|
extensions: []
|
32
46
|
extra_rdoc_files: []
|
33
47
|
files:
|
48
|
+
- ".mutant.yml"
|
34
49
|
- CHANGELOG.md
|
35
50
|
- Gemfile
|
51
|
+
- Gemfile.lock
|
36
52
|
- Makefile
|
37
53
|
- README.md
|
38
54
|
- aggregate_root.gemspec
|
@@ -66,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
82
|
- !ruby/object:Gem::Version
|
67
83
|
version: '0'
|
68
84
|
requirements: []
|
69
|
-
rubygems_version: 3.
|
85
|
+
rubygems_version: 3.2.3
|
70
86
|
signing_key:
|
71
87
|
specification_version: 4
|
72
88
|
summary: Event sourced (with Rails Event Store) aggregate root implementation
|