rails_event_store 0.41.0 → 0.42.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: 638bf6a3b2b4323d1f84d5c2341c72b50d96fc0ae73568a7dc3d8ce6f30b4555
4
- data.tar.gz: 710025e875bc1f8ad21b1772bfb4d5d895a5e49367653ce6040c916b3e00e3f9
3
+ metadata.gz: 867242c59914c81d4a56420fbe80e6a4701339217c13aa472b7db08d15777231
4
+ data.tar.gz: b6d94b6fdfd3fda85b4202b080bbc4ed611f94800d16268057ba200466cd6bdf
5
5
  SHA512:
6
- metadata.gz: e6c8c8a7528df79051b9c1a5482dbe4e923bb16bb1fefdf315d020e046595edbcfda3fbf5fcc9b8409e66cef2d81202a39114644297359820172fc4d36916142
7
- data.tar.gz: 35cf8e9e68c8e8b2f912d532bf584bbcab74008857aa177cf1c239d7aa5ac75a53b0ce503154d7bf198b91b6a221c76a94ac9419f464e262e839facfaf3ce395
6
+ metadata.gz: 579c06fd4b6914268ab23ccdb26d4a3a33768c625c50c3a45a750b16ec68c861e73890b49f8583f2b3c71068dfa9d20989b605deafa7e37fc1a316a2d4c2a743
7
+ data.tar.gz: 88f8d6b00bcefd094951e3ec1588b2ec0a3216a9e3f2b50817b02ee08f12553ef3a89026d3a7efc282fc2a3334109855fc8361753a7589472d679239636fa331
data/Gemfile CHANGED
@@ -16,7 +16,7 @@ gem 'google-protobuf', '~> 3.7.0'
16
16
  gem 'pry'
17
17
  gem 'rails', ENV['RAILS_VERSION']
18
18
 
19
- if Gem::Version.new(ENV['RAILS_VERSION']) >= Gem::Version.new('6.0.0.rc1')
19
+ if Gem::Version.new(ENV['RAILS_VERSION']) >= Gem::Version.new('6.0.0')
20
20
  gem 'sqlite3', '1.4.1'
21
21
  else
22
22
  gem 'sqlite3', '1.3.13'
data/Makefile CHANGED
@@ -2,7 +2,8 @@ GEM_VERSION = $(shell cat ../RES_VERSION)
2
2
  GEM_NAME = rails_event_store
3
3
  REQUIRE = $(GEM_NAME)
4
4
  IGNORE = RailsEventStore::Client\#initialize \
5
- RailsEventStore::AfterCommitAsyncDispatcher::AsyncRecord\#rolledback!
5
+ RailsEventStore::AfterCommitAsyncDispatcher::AsyncRecord* \
6
+ RailsEventStore::AfterCommitAsyncDispatcher\#async_record
6
7
  SUBJECT ?= RailsEventStore*
7
8
  DATABASE_URL ?= sqlite3::memory:
8
9
 
@@ -16,14 +16,16 @@ module RailsEventStore
16
16
  transaction = ActiveRecord::Base.connection.current_transaction
17
17
 
18
18
  if transaction.joinable?
19
- transaction.add_record(
20
- AsyncRecord.new(self, schedule_proc)
21
- )
19
+ transaction.add_record(async_record(schedule_proc))
22
20
  else
23
21
  yield
24
22
  end
25
23
  end
26
24
 
25
+ def async_record(schedule_proc)
26
+ AsyncRecord.new(self, schedule_proc)
27
+ end
28
+
27
29
  def verify(subscriber)
28
30
  @scheduler.verify(subscriber)
29
31
  end
@@ -48,6 +50,9 @@ module RailsEventStore
48
50
  dispatcher.run(&schedule_proc)
49
51
  end
50
52
 
53
+ def trigger_transactional_callbacks?
54
+ end
55
+
51
56
  attr_reader :schedule_proc, :dispatcher
52
57
  end
53
58
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsEventStore
4
- VERSION = "0.41.0"
4
+ VERSION = "0.42.0"
5
5
  end
@@ -25,11 +25,11 @@ Gem::Specification.new do |spec|
25
25
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
26
  spec.require_paths = ['lib']
27
27
 
28
- spec.add_dependency 'ruby_event_store', '= 0.41.0'
29
- spec.add_dependency 'ruby_event_store-browser', '= 0.41.0'
30
- spec.add_dependency 'rails_event_store_active_record', '= 0.41.0'
31
- spec.add_dependency 'aggregate_root', '= 0.41.0'
32
- spec.add_dependency 'bounded_context', '= 0.41.0'
28
+ spec.add_dependency 'ruby_event_store', '= 0.42.0'
29
+ spec.add_dependency 'ruby_event_store-browser', '= 0.42.0'
30
+ spec.add_dependency 'rails_event_store_active_record', '= 0.42.0'
31
+ spec.add_dependency 'aggregate_root', '= 0.42.0'
32
+ spec.add_dependency 'bounded_context', '= 0.42.0'
33
33
  spec.add_dependency 'activesupport', '>= 3.0'
34
34
  spec.add_dependency 'activemodel', '>= 3.0'
35
35
  spec.add_dependency 'activejob', '>= 3.0'
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: 0.41.0
4
+ version: 0.42.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arkency
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-19 00:00:00.000000000 Z
11
+ date: 2019-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby_event_store
@@ -16,70 +16,70 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.41.0
19
+ version: 0.42.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: 0.41.0
26
+ version: 0.42.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: 0.41.0
33
+ version: 0.42.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: 0.41.0
40
+ version: 0.42.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: 0.41.0
47
+ version: 0.42.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: 0.41.0
54
+ version: 0.42.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: 0.41.0
61
+ version: 0.42.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: 0.41.0
68
+ version: 0.42.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bounded_context
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 0.41.0
75
+ version: 0.42.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 0.41.0
82
+ version: 0.42.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: activesupport
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -182,8 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  - !ruby/object:Gem::Version
183
183
  version: '0'
184
184
  requirements: []
185
- rubyforge_project:
186
- rubygems_version: 2.7.6.2
185
+ rubygems_version: 3.0.6
187
186
  signing_key:
188
187
  specification_version: 4
189
188
  summary: Event Store in Ruby