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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a410174e32d5897d8117ffc27e9d5f103d07860b45aa63898b4a592af90aac8
4
- data.tar.gz: 3858f008182f7e4cad1ab100e8dede9f39a527362b3c322a212d9a7c55027b55
3
+ metadata.gz: 811616d804ab21b7d63202052384fe92be04dc24c24ebbd866b26ed83930b8e6
4
+ data.tar.gz: 7b2c17d75250a0d82f7d4ced5f2e653647b0110302a2122a6c251dbc7573b0dd
5
5
  SHA512:
6
- metadata.gz: a60c7d3bcd5aa8ce0830cded63aad2cb3cff8448da517f40233bb7e698f6f6cdc2d9ff7d0207aa7fed4b5c414ba76cd377b2fbbf53017423d7fc4af60b9aa669
7
- data.tar.gz: 90d890f88da7cd613bc4f3def73f9fee501c2d6dfd6945bd9c04c36ccca37e257dac08d35653ff9213326e7302a9926b74069fb1a6c153d2cf693b031938c216
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AggregateRoot
4
- VERSION = "2.2.0"
4
+ VERSION = "2.3.0"
5
5
  end
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
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'
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.2.0
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-04-09 00:00:00.000000000 Z
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.2.0
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.2.0
40
+ version: 2.3.0
41
41
  description:
42
42
  email: dev@arkency.com
43
43
  executables: []