aggregate_root 2.0.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0e7fd5c8185d692efe38480983bd4f4c1237b402592541a7f38e78b442015a7
4
- data.tar.gz: a145924644f4c30dd928397df65a0656a2549ee0c2f5251176c46a462f7c7a7e
3
+ metadata.gz: 811616d804ab21b7d63202052384fe92be04dc24c24ebbd866b26ed83930b8e6
4
+ data.tar.gz: 7b2c17d75250a0d82f7d4ced5f2e653647b0110302a2122a6c251dbc7573b0dd
5
5
  SHA512:
6
- metadata.gz: 7dcc62325186586d6032b2c9680565a3b8d65524809db546e331a08ef8338dfce73a656853613d981fbf434848739999f2c910f8fd1a83ebbc36293f0e60071c
7
- data.tar.gz: f7e25a50fed3c48a0805968a18c846d1c5b398d8599a2202f0a993e88790da3414b438d65d36a907378b3db70f5d3f90944dee16f18524d039bde3146531bde4
6
+ metadata.gz: 0bb37ed61a36cc20e8c39ff7405d75dea61cf434ed42e22d802503e62a3380e916a2c7dd1b066ea3009b5fd945e8241bcd28484e10da98a3718b0a3f3df10d74
7
+ data.tar.gz: d70280a5974bda03ca308f16c8d5d344c15dcaa3cecd209e9d250f36d14861999eaa997ae90a2138247cb1c2c18c106b1d2b14abab2f2d6e0763f47526f001d9
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # AggregateRoot
2
2
 
3
- Event sourced (with Rails Event Store) aggregate root implementation.
3
+ Event sourced aggregate root implementation for RubyEventStore.
4
4
 
5
- For configuration & usage documentation see [Event Sourcing with AggregateRoot](https://railseventstore.org/docs/app/).
5
+ Find out more at [https://railseventstore.org](https://railseventstore.org/)
@@ -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.0.0"
4
+ VERSION = "2.3.0"
5
5
  end
@@ -1,11 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'aggregate_root/version'
4
- require 'aggregate_root/configuration'
5
- require 'aggregate_root/transform'
6
- require 'aggregate_root/default_apply_strategy'
7
- require 'aggregate_root/repository'
8
- require '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"
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,43 +1,51 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aggregate_root
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.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: 2020-12-30 00:00:00.000000000 Z
11
+ date: 2021-09-09 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: 2.0.0
33
+ version: 2.3.0
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: 2.0.0
27
- description: Event sourced (with Rails Event Store) aggregate root implementation
28
- email:
29
- - dev@arkency.com
40
+ version: 2.3.0
41
+ description:
42
+ email: dev@arkency.com
30
43
  executables: []
31
44
  extensions: []
32
- extra_rdoc_files: []
45
+ extra_rdoc_files:
46
+ - README.md
33
47
  files:
34
- - ".mutant.yml"
35
- - CHANGELOG.md
36
- - Gemfile
37
- - Gemfile.lock
38
- - Makefile
39
48
  - README.md
40
- - aggregate_root.gemspec
41
49
  - lib/aggregate_root.rb
42
50
  - lib/aggregate_root/configuration.rb
43
51
  - lib/aggregate_root/default_apply_strategy.rb
@@ -49,7 +57,7 @@ homepage: https://railseventstore.org
49
57
  licenses:
50
58
  - MIT
51
59
  metadata:
52
- homepage_uri: https://railseventstore.org/
60
+ homepage_uri: https://railseventstore.org
53
61
  changelog_uri: https://github.com/RailsEventStore/rails_event_store/releases
54
62
  source_code_uri: https://github.com/RailsEventStore/rails_event_store
55
63
  bug_tracker_uri: https://github.com/RailsEventStore/rails_event_store/issues
@@ -61,7 +69,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
61
69
  requirements:
62
70
  - - ">="
63
71
  - !ruby/object:Gem::Version
64
- version: '0'
72
+ version: '2.6'
65
73
  required_rubygems_version: !ruby/object:Gem::Requirement
66
74
  requirements:
67
75
  - - ">="
@@ -71,5 +79,5 @@ requirements: []
71
79
  rubygems_version: 3.1.4
72
80
  signing_key:
73
81
  specification_version: 4
74
- summary: Event sourced (with Rails Event Store) aggregate root implementation
82
+ summary: Event sourced aggregate root implementation for RubyEventStore
75
83
  test_files: []
data/.mutant.yml DELETED
@@ -1 +0,0 @@
1
- ../.mutant.yml
data/CHANGELOG.md DELETED
@@ -1,55 +0,0 @@
1
- Further changes can be tracked at [releases page](https://github.com/RailsEventStore/rails_event_store/releases).
2
-
3
- ### 0.4.0 (28.10.2016)
4
-
5
- * Change: redesign whole gem from scratch making it easier to use
6
- This is a breaking change!
7
-
8
- ### 0.3.6 (18.10.2016)
9
-
10
- * Change: ruby_event_store updated to 0.13.0
11
-
12
- ### 0.3.5 (11.08.2016)
13
-
14
- * Fix an issue when default apply strategy generated a wrong method name #7
15
-
16
- ### 0.3.4 (10.08.2016)
17
-
18
- * Fix: missing keyword argument name
19
-
20
- ### 0.3.3 (10.08.2016)
21
-
22
- * Change: ruby_event_store updated to 0.12.0
23
-
24
- ### 0.3.2 (12.07.2016)
25
-
26
- * Change: ruby_event_store updated to 0.11.0
27
-
28
- ### 0.3.1 (24.06.2016)
29
-
30
- * Change: ruby_event_store updated to 0.9.0
31
- * Fix: Clarify Licensing terms - MIT license it is from now
32
-
33
- ### 0.3.0 (21.06.2016)
34
-
35
- * Change: Replace RailsEventStore dependency with more generic RubyEventStore
36
-
37
- ### 0.2.1 (21.03.2016)
38
-
39
- * rails_event_store updated to 0.5.0
40
-
41
- ### 0.2.0 (17.03.2016)
42
-
43
- * rails_event_store updated to 0.4.0
44
-
45
- ### 0.1.0 (25.02.2016)
46
-
47
- * Revert dependency on RailsEventStore #3
48
-
49
- ### 0.0.2 (29.01.2016)
50
-
51
- * Update RailsEventStore to 0.2.0
52
-
53
- ### 0.0.1 (28.01.2016)
54
-
55
- Initial release. Code extracted from RailsEventStore.
data/Gemfile DELETED
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
- git_source(:github) { |repo| "https://github.com/#{repo}.git" }
5
- gemspec
6
-
7
- eval_gemfile '../support/bundler/Gemfile.shared'
8
-
9
- gem 'ruby_event_store', path: '../ruby_event_store'
10
- gem 'activesupport', '~> 5.0'
data/Gemfile.lock DELETED
@@ -1,116 +0,0 @@
1
- PATH
2
- remote: ../ruby_event_store
3
- specs:
4
- ruby_event_store (2.0.0)
5
- concurrent-ruby (~> 1.0, >= 1.1.6)
6
-
7
- PATH
8
- remote: .
9
- specs:
10
- aggregate_root (2.0.0)
11
- ruby_event_store (= 2.0.0)
12
-
13
- GEM
14
- remote: https://rubygems.org/
15
- remote: https://oss:7AXfeZdAfCqL1PvHm2nvDJO6Zd9UW8IK@gem.mutant.dev/
16
- specs:
17
- abstract_type (0.0.7)
18
- activesupport (5.2.4.4)
19
- concurrent-ruby (~> 1.0, >= 1.0.2)
20
- i18n (>= 0.7, < 2)
21
- minitest (~> 5.1)
22
- tzinfo (~> 1.1)
23
- adamantium (0.2.0)
24
- ice_nine (~> 0.11.0)
25
- memoizable (~> 0.4.0)
26
- anima (0.3.2)
27
- abstract_type (~> 0.0.7)
28
- adamantium (~> 0.2)
29
- equalizer (~> 0.0.11)
30
- ast (2.4.1)
31
- concord (0.1.6)
32
- adamantium (~> 0.2.0)
33
- equalizer (~> 0.0.9)
34
- concurrent-ruby (1.1.7)
35
- diff-lcs (1.4.4)
36
- equalizer (0.0.11)
37
- i18n (1.8.5)
38
- concurrent-ruby (~> 1.0)
39
- ice_nine (0.11.2)
40
- memoizable (0.4.2)
41
- thread_safe (~> 0.3, >= 0.3.1)
42
- minitest (5.14.2)
43
- mprelude (0.1.0)
44
- abstract_type (~> 0.0.7)
45
- adamantium (~> 0.2.0)
46
- concord (~> 0.1.5)
47
- equalizer (~> 0.0.9)
48
- ice_nine (~> 0.11.1)
49
- procto (~> 0.0.2)
50
- mutant (0.10.22)
51
- abstract_type (~> 0.0.7)
52
- adamantium (~> 0.2.0)
53
- anima (~> 0.3.1)
54
- ast (~> 2.2)
55
- concord (~> 0.1.5)
56
- diff-lcs (~> 1.3)
57
- equalizer (~> 0.0.9)
58
- ice_nine (~> 0.11.1)
59
- memoizable (~> 0.4.2)
60
- mprelude (~> 0.1.0)
61
- parser (~> 3.0.0)
62
- procto (~> 0.0.2)
63
- unparser (~> 0.5.6)
64
- variable (~> 0.0.1)
65
- mutant-license (0.1.1.2.1627430819213747598431630701693729869473.0)
66
- mutant-rspec (0.10.22)
67
- mutant (= 0.10.22)
68
- rspec-core (>= 3.8.0, < 4.0.0)
69
- parser (3.0.0.0)
70
- ast (~> 2.4.1)
71
- procto (0.0.3)
72
- rake (13.0.3)
73
- rspec (3.10.0)
74
- rspec-core (~> 3.10.0)
75
- rspec-expectations (~> 3.10.0)
76
- rspec-mocks (~> 3.10.0)
77
- rspec-core (3.10.1)
78
- rspec-support (~> 3.10.0)
79
- rspec-expectations (3.10.1)
80
- diff-lcs (>= 1.2.0, < 2.0)
81
- rspec-support (~> 3.10.0)
82
- rspec-mocks (3.10.1)
83
- diff-lcs (>= 1.2.0, < 2.0)
84
- rspec-support (~> 3.10.0)
85
- rspec-support (3.10.1)
86
- thread_safe (0.3.6)
87
- tzinfo (1.2.9)
88
- thread_safe (~> 0.1)
89
- unparser (0.5.6)
90
- abstract_type (~> 0.0.7)
91
- adamantium (~> 0.2.0)
92
- anima (~> 0.3.1)
93
- concord (~> 0.1.5)
94
- diff-lcs (~> 1.3)
95
- equalizer (~> 0.0.9)
96
- mprelude (~> 0.1.0)
97
- parser (>= 3.0.0)
98
- procto (~> 0.0.2)
99
- variable (0.0.1)
100
- equalizer (~> 0.0.11)
101
-
102
- PLATFORMS
103
- ruby
104
-
105
- DEPENDENCIES
106
- activesupport (~> 5.0)
107
- aggregate_root!
108
- mutant (~> 0.10.21)
109
- mutant-license!
110
- mutant-rspec (~> 0.10.21)
111
- rake (>= 10.0)
112
- rspec (~> 3.6)
113
- ruby_event_store!
114
-
115
- BUNDLED WITH
116
- 2.1.4
data/Makefile DELETED
@@ -1,11 +0,0 @@
1
- GEM_VERSION = $(shell cat ../RES_VERSION)
2
- GEM_NAME = aggregate_root
3
- REQUIRE = $(GEM_NAME)
4
- IGNORE =
5
- SUBJECT ?= AggregateRoot*
6
-
7
- include ../support/make/install.mk
8
- include ../support/make/test.mk
9
- include ../support/make/mutant.mk
10
- include ../support/make/gem.mk
11
- include ../support/make/help.mk
@@ -1,28 +0,0 @@
1
- # coding: utf-8
2
-
3
- lib = File.expand_path('../lib', __FILE__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'aggregate_root/version'
6
-
7
- Gem::Specification.new do |spec|
8
- spec.name = 'aggregate_root'
9
- spec.version = AggregateRoot::VERSION
10
- spec.licenses = ['MIT']
11
- spec.authors = ['Arkency']
12
- spec.email = ['dev@arkency.com']
13
-
14
- spec.summary = %q{Event sourced (with Rails Event Store) aggregate root implementation}
15
- spec.description = %q{Event sourced (with Rails Event Store) aggregate root implementation}
16
- spec.homepage = 'https://railseventstore.org'
17
- spec.metadata = {
18
- "homepage_uri" => "https://railseventstore.org/",
19
- "changelog_uri" => "https://github.com/RailsEventStore/rails_event_store/releases",
20
- "source_code_uri" => "https://github.com/RailsEventStore/rails_event_store",
21
- "bug_tracker_uri" => "https://github.com/RailsEventStore/rails_event_store/issues",
22
- }
23
-
24
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
- spec.require_paths = ['lib']
26
-
27
- spec.add_dependency 'ruby_event_store', '= 2.0.0'
28
- end