aggregate_root 1.3.0 → 2.2.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: 78ccc45c41df64e6a7dbc83af2c021be20fd04bb2c31a1880e9690a3caaa1dad
4
- data.tar.gz: dfa932ad93775ffde007b5701b91a764691a3437a3193f682d605452e73fc138
3
+ metadata.gz: 7a410174e32d5897d8117ffc27e9d5f103d07860b45aa63898b4a592af90aac8
4
+ data.tar.gz: 3858f008182f7e4cad1ab100e8dede9f39a527362b3c322a212d9a7c55027b55
5
5
  SHA512:
6
- metadata.gz: 9572a936aa766b6be7a7878cc78501d61968b5533dc2787352589bcd62f064c81262afe6996275ef9af7740d3e1ecf1a715138230f58f0e5b8a045a9f1419e40
7
- data.tar.gz: 2a81a0503f8bca3fb77a506775ece9b434da8915a287357dfdea5e0f230e11115574e219c3fc3430b83cd34417a11106d2fd8cf5a9184499c6b0be8086ac88f9
6
+ metadata.gz: a60c7d3bcd5aa8ce0830cded63aad2cb3cff8448da517f40233bb7e698f6f6cdc2d9ff7d0207aa7fed4b5c414ba76cd377b2fbbf53017423d7fc4af60b9aa669
7
+ data.tar.gz: 90d890f88da7cd613bc4f3def73f9fee501c2d6dfd6945bd9c04c36ccca37e257dac08d35653ff9213326e7302a9926b74069fb1a6c153d2cf693b031938c216
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,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, [])
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AggregateRoot
4
- VERSION = "1.3.0"
4
+ VERSION = "2.2.0"
5
5
  end
metadata CHANGED
@@ -1,41 +1,51 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aggregate_root
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arkency
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-15 00:00:00.000000000 Z
11
+ date: 2021-04-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: 1.3.0
33
+ version: 2.2.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: 1.3.0
27
- description: Event sourced (with Rails Event Store) aggregate root implementation
28
- email:
29
- - dev@arkency.com
40
+ version: 2.2.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
- - CHANGELOG.md
35
- - Gemfile
36
- - Makefile
37
48
  - README.md
38
- - aggregate_root.gemspec
39
49
  - lib/aggregate_root.rb
40
50
  - lib/aggregate_root/configuration.rb
41
51
  - lib/aggregate_root/default_apply_strategy.rb
@@ -47,7 +57,7 @@ homepage: https://railseventstore.org
47
57
  licenses:
48
58
  - MIT
49
59
  metadata:
50
- homepage_uri: https://railseventstore.org/
60
+ homepage_uri: https://railseventstore.org
51
61
  changelog_uri: https://github.com/RailsEventStore/rails_event_store/releases
52
62
  source_code_uri: https://github.com/RailsEventStore/rails_event_store
53
63
  bug_tracker_uri: https://github.com/RailsEventStore/rails_event_store/issues
@@ -59,7 +69,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
59
69
  requirements:
60
70
  - - ">="
61
71
  - !ruby/object:Gem::Version
62
- version: '0'
72
+ version: '2.6'
63
73
  required_rubygems_version: !ruby/object:Gem::Requirement
64
74
  requirements:
65
75
  - - ">="
@@ -69,5 +79,5 @@ requirements: []
69
79
  rubygems_version: 3.1.4
70
80
  signing_key:
71
81
  specification_version: 4
72
- summary: Event sourced (with Rails Event Store) aggregate root implementation
82
+ summary: Event sourced aggregate root implementation for RubyEventStore
73
83
  test_files: []
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,12 +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 File.expand_path('../support/bundler/Gemfile.shared', __dir__)
8
-
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
- gem 'activesupport', '~> 5.0'
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,30 +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.bindir = 'exe'
26
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
- spec.require_paths = ['lib']
28
-
29
- spec.add_dependency 'ruby_event_store', '= 1.3.0'
30
- end