aggregate_root 2.2.0 → 2.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/aggregate_root/instrumented_repository.rb +14 -0
- data/lib/aggregate_root/version.rb +1 -1
- data/lib/aggregate_root.rb +7 -7
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 811616d804ab21b7d63202052384fe92be04dc24c24ebbd866b26ed83930b8e6
|
4
|
+
data.tar.gz: 7b2c17d75250a0d82f7d4ced5f2e653647b0110302a2122a6c251dbc7573b0dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bb37ed61a36cc20e8c39ff7405d75dea61cf434ed42e22d802503e62a3380e916a2c7dd1b066ea3009b5fd945e8241bcd28484e10da98a3718b0a3f3df10d74
|
7
|
+
data.tar.gz: d70280a5974bda03ca308f16c8d5d344c15dcaa3cecd209e9d250f36d14861999eaa997ae90a2138247cb1c2c18c106b1d2b14abab2f2d6e0763f47526f001d9
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "ruby2_keywords"
|
4
|
+
|
3
5
|
module AggregateRoot
|
4
6
|
class InstrumentedRepository
|
5
7
|
def initialize(repository, instrumentation)
|
@@ -30,6 +32,18 @@ module AggregateRoot
|
|
30
32
|
store(aggregate, stream_name)
|
31
33
|
end
|
32
34
|
|
35
|
+
ruby2_keywords def method_missing(method_name, *arguments, &block)
|
36
|
+
if respond_to?(method_name)
|
37
|
+
repository.public_send(method_name, *arguments, &block)
|
38
|
+
else
|
39
|
+
super
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
def respond_to_missing?(method_name, _include_private)
|
44
|
+
repository.respond_to?(method_name)
|
45
|
+
end
|
46
|
+
|
33
47
|
private
|
34
48
|
|
35
49
|
attr_reader :instrumentation, :repository
|
data/lib/aggregate_root.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
4
|
-
require_relative
|
5
|
-
require_relative
|
6
|
-
require_relative
|
7
|
-
require_relative
|
8
|
-
require_relative
|
9
|
-
require_relative
|
3
|
+
require "ruby2_keywords"
|
4
|
+
require_relative "aggregate_root/version"
|
5
|
+
require_relative "aggregate_root/configuration"
|
6
|
+
require_relative "aggregate_root/transform"
|
7
|
+
require_relative "aggregate_root/default_apply_strategy"
|
8
|
+
require_relative "aggregate_root/repository"
|
9
|
+
require_relative "aggregate_root/instrumented_repository"
|
10
10
|
|
11
11
|
module AggregateRoot
|
12
12
|
module OnDSL
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aggregate_root
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arkency
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby2_keywords
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 2.
|
33
|
+
version: 2.3.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 2.
|
40
|
+
version: 2.3.0
|
41
41
|
description:
|
42
42
|
email: dev@arkency.com
|
43
43
|
executables: []
|