rails_event_store 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/generators/rails_event_store/bounded_context_generator.rb +2 -2
- data/lib/generators/rails_event_store/rspec_generator.rb +2 -2
- data/lib/generators/rails_event_store/test_unit_generator.rb +2 -2
- data/lib/generators/templates/require_bc_spec.rb +2 -2
- data/lib/rails_event_store/active_job_scheduler.rb +1 -1
- data/lib/rails_event_store/all.rb +9 -9
- data/lib/rails_event_store/browser.rb +1 -1
- data/lib/rails_event_store/railtie.rb +3 -3
- data/lib/rails_event_store/version.rb +1 -1
- data/lib/rails_event_store.rb +2 -2
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b956e083f03d6da44d1f82cdd1662a093b3f9526c846f38832a85f38daa698c7
|
4
|
+
data.tar.gz: 3a5202592d84ae5a63315b0badc598000c785bdf97f438425f699671da28f340
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39852a4cf687b8965d51fa364e46fff94d4d689f3b0c75ae8abdd84109b38728eb4f4c0fcca076cbadcd54c6f7c41f88a17383311654bee7918a586e3dc17a1b
|
7
|
+
data.tar.gz: 83e445adc6aa7937b2f535010908bb265fa5ca2d75100b2539e1247a0453e6924fd83065c6c56a960ebd42937e44c13e96742e474d409ea968ec022251050c6f
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
3
|
+
require "rails/generators"
|
4
4
|
|
5
5
|
module RailsEventStore
|
6
6
|
module Generators
|
7
7
|
class BoundedContextGenerator < Rails::Generators::NamedBase
|
8
|
-
source_root File.expand_path(File.join(File.dirname(__FILE__),
|
8
|
+
source_root File.expand_path(File.join(File.dirname(__FILE__), "../templates"))
|
9
9
|
hook_for :test_framework
|
10
10
|
|
11
11
|
def create_bounded_context
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
3
|
+
require "rails/generators"
|
4
4
|
|
5
5
|
module RailsEventStore
|
6
6
|
module Generators
|
7
7
|
class RspecGenerator < Rails::Generators::NamedBase
|
8
|
-
source_root File.expand_path(File.join(File.dirname(__FILE__),
|
8
|
+
source_root File.expand_path(File.join(File.dirname(__FILE__), "../templates"))
|
9
9
|
|
10
10
|
def spec_helper
|
11
11
|
template "spec_helper.rb", "#{bounded_context_name}/spec/spec_helper.rb"
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
3
|
+
require "rails/generators"
|
4
4
|
|
5
5
|
module RailsEventStore
|
6
6
|
module Generators
|
7
7
|
class TestUnitGenerator < Rails::Generators::NamedBase
|
8
|
-
source_root File.expand_path(File.join(File.dirname(__FILE__),
|
8
|
+
source_root File.expand_path(File.join(File.dirname(__FILE__), "../templates"))
|
9
9
|
|
10
10
|
def test_helper
|
11
11
|
template "test_helper.rb", "#{bounded_context_name}/test/test_helper.rb"
|
@@ -1,14 +1,14 @@
|
|
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
|
10
|
-
require_relative
|
11
|
-
require_relative
|
3
|
+
require "ruby_event_store"
|
4
|
+
require_relative "async_handler_helpers"
|
5
|
+
require_relative "link_by_metadata"
|
6
|
+
require_relative "after_commit_async_dispatcher"
|
7
|
+
require_relative "active_job_scheduler"
|
8
|
+
require_relative "client"
|
9
|
+
require_relative "version"
|
10
|
+
require_relative "railtie"
|
11
|
+
require_relative "browser"
|
12
12
|
|
13
13
|
module RailsEventStore
|
14
14
|
Event = RubyEventStore::Event
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
4
|
-
require_relative
|
3
|
+
require "rails/railtie"
|
4
|
+
require_relative "middleware"
|
5
5
|
|
6
6
|
module RailsEventStore
|
7
7
|
class Railtie < ::Rails::Railtie
|
8
|
-
initializer
|
8
|
+
initializer "rails_event_store.middleware" do |rails|
|
9
9
|
rails.middleware.use(::RailsEventStore::Middleware)
|
10
10
|
end
|
11
11
|
end
|
data/lib/rails_event_store.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_event_store
|
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: ruby_event_store
|
@@ -16,56 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 2.3.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.
|
26
|
+
version: 2.3.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: ruby_event_store-browser
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
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
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rails_event_store_active_record
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 2.
|
47
|
+
version: 2.3.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 2.
|
54
|
+
version: 2.3.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: aggregate_root
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.
|
61
|
+
version: 2.3.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 2.
|
68
|
+
version: 2.3.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: activesupport
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|