rails_event_store 2.13.0 → 2.15.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: 51bc58516b7821895e863f173364cc5554a4d5149062df4333860ce8b380d16f
4
- data.tar.gz: 150932020c0b96d1aa515475d11bdc5475f967a8f19a185482aeb6f0bb469fc7
3
+ metadata.gz: 46579edfa4a2949327246ee1752cdee115cbbcf3ce32957f612b9c192961ee0d
4
+ data.tar.gz: f51139771d2e5b0df40c90b18d3c4c3855d98305d302e34dc9bd3172732c5258
5
5
  SHA512:
6
- metadata.gz: 107e99400fd6102470b4a3b9e8ba240f6802af36c541d1d1579555ac4f2aedf852122b4caa8dfbeeabda35e9c27dc600ea3470566391b95631977a8e68625b2f
7
- data.tar.gz: 2df692b1e81664ec0bb8b1b1721247f0ad7340b4613ca33d187ddf0b92216197f9748c231b3aa52c1f3540f7b98567d938a04fbe0e5c6f65c08ee399a53b21ac
6
+ metadata.gz: c4cebfaa78585fa0256761a3f1aa5d379e38e5b5c3eac9f913320a4ae9d605d08da0f2e90e425c103212a170d93d1b3de02ec36dadd37ff46037cbb67ed651aa
7
+ data.tar.gz: 8985fcefd9823fd3e93b87ee7e61a8c6eb44225fc4a5c6f3d0a2a6e7991fd140f3f7cf8e70891fb33e3f46e0725f3d1c4fd673a3532820d235d319074b56475b
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative "spec_helper"
2
4
 
3
5
  ::RSpec.describe <%= bounded_context_namespace %> do
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module <%= bounded_context_namespace %>
2
4
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "rails_helper"
2
4
 
3
5
  path = Rails.root.join("<%= bounded_context_name %>/spec")
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "test_helper"
2
4
 
3
5
  Dir[Rails.root.join("<%= bounded_context_name %>/test/*_test.rb")].each { |file| require file }
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  ENV["RAILS_ENV"] = "test"
2
4
 
3
5
  $LOAD_PATH.push File.expand_path("../../../spec", __FILE__)
@@ -1 +1,3 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative "../lib/<%= bounded_context_name %>"
@@ -21,7 +21,7 @@ module RailsEventStore
21
21
  end
22
22
 
23
23
  def async_record(schedule_proc)
24
- AsyncRecord.new(self, schedule_proc)
24
+ AsyncRecord.new(schedule_proc)
25
25
  end
26
26
 
27
27
  def verify(subscriber)
@@ -29,8 +29,7 @@ module RailsEventStore
29
29
  end
30
30
 
31
31
  class AsyncRecord
32
- def initialize(dispatcher, schedule_proc)
33
- @dispatcher = dispatcher
32
+ def initialize(schedule_proc)
34
33
  @schedule_proc = schedule_proc
35
34
  end
36
35
 
@@ -42,13 +41,9 @@ module RailsEventStore
42
41
 
43
42
  def before_committed!; end
44
43
 
45
- def add_to_transaction
46
- dispatcher.run(&schedule_proc)
47
- end
48
-
49
44
  def trigger_transactional_callbacks?; end
50
45
 
51
- attr_reader :schedule_proc, :dispatcher
46
+ attr_reader :schedule_proc
52
47
  end
53
48
  end
54
49
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsEventStore
4
- VERSION = "2.13.0"
4
+ VERSION = "2.15.0"
5
5
  end
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.13.0
4
+ version: 2.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arkency
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-07 00:00:00.000000000 Z
11
+ date: 2024-08-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.13.0
19
+ version: 2.15.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.13.0
26
+ version: 2.15.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.13.0
33
+ version: 2.15.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.13.0
40
+ version: 2.15.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.13.0
47
+ version: 2.15.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.13.0
54
+ version: 2.15.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.13.0
61
+ version: 2.15.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.13.0
68
+ version: 2.15.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: activesupport
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  requirements: []
182
- rubygems_version: 3.3.7
182
+ rubygems_version: 3.4.1
183
183
  signing_key:
184
184
  specification_version: 4
185
185
  summary: Rails wrapper for RubyEventStore with batteries included