ruby_event_store-sidekiq_scheduler 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -2
- data/lib/ruby_event_store/sidekiq_scheduler/version.rb +1 -1
- data/lib/ruby_event_store/sidekiq_scheduler.rb +8 -3
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33e7fad9d70e8084e1b0036c24396e06fec1ada2c8ab6dd2228e4bb6f5a14282
|
4
|
+
data.tar.gz: b21c7dcaf6a23bc1e38c2ee4ea15cd6b8c9fb52eb57410f1ae0980fe44ceb57f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e2ec5e3b0155cf9f351bf914e5b6e012a8095ec4f9627fcaf9addc7a9bc4f6e712d6b6fbbab785fb59082f756482e59505ab9845faeb8238b23b4557b59e855
|
7
|
+
data.tar.gz: da7bf016d39d45f6ad08a671d3da41590d4f61762607fbac6d72e8a63f2b3bda426ac6537a85faeb8d24b7ad553a5362338df6de3564559ceb658f7db1681a35
|
data/README.md
CHANGED
@@ -16,13 +16,12 @@ Declare the scheduler in your Ruby Event Store configuration. We recommend to us
|
|
16
16
|
|
17
17
|
```ruby
|
18
18
|
event_store = RailsEventStore::Client.new(
|
19
|
-
dispatcher: RailsEventStore::AfterCommitAsyncDispatcher.new(scheduler: RubyEventStore::SidekiqScheduler.new),
|
19
|
+
dispatcher: RailsEventStore::AfterCommitAsyncDispatcher.new(scheduler: RubyEventStore::SidekiqScheduler.new(serializer: RubyEventStore::Serializers::YAML),
|
20
20
|
)
|
21
21
|
```
|
22
22
|
|
23
23
|
Read more about [using asynchronous handlers](https://railseventstore.org/docs/v2/subscribe/#async-handlers)
|
24
24
|
|
25
|
-
|
26
25
|
## Contributing
|
27
26
|
|
28
27
|
Bug reports and pull requests are welcome on GitHub at https://github.com/RailsEventStore/rails_event_store.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require "sidekiq"
|
2
2
|
|
3
3
|
module RubyEventStore
|
4
4
|
class SidekiqScheduler
|
@@ -7,14 +7,19 @@ module RubyEventStore
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def call(klass, record)
|
10
|
-
klass.perform_async(record.serialize(serializer).to_h)
|
10
|
+
klass.perform_async(record.serialize(serializer).to_h.transform_keys(&:to_s))
|
11
11
|
end
|
12
12
|
|
13
13
|
def verify(subscriber)
|
14
|
-
Class === subscriber
|
14
|
+
if Class === subscriber
|
15
|
+
!!(subscriber < Sidekiq::Worker)
|
16
|
+
else
|
17
|
+
subscriber.instance_of?(Sidekiq::Worker::Setter)
|
18
|
+
end
|
15
19
|
end
|
16
20
|
|
17
21
|
private
|
22
|
+
|
18
23
|
attr_reader :serializer
|
19
24
|
end
|
20
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_event_store-sidekiq_scheduler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arkency
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby_event_store
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 3.0.0
|
33
|
-
description:
|
33
|
+
description:
|
34
34
|
email: dev@arkency.com
|
35
35
|
executables: []
|
36
36
|
extensions: []
|
@@ -47,7 +47,8 @@ metadata:
|
|
47
47
|
homepage_uri: https://railseventstore.org
|
48
48
|
source_code_uri: https://github.com/RailsEventStore/rails_event_store
|
49
49
|
bug_tracker_uri: https://github.com/RailsEventStore/rails_event_store/issues
|
50
|
-
|
50
|
+
rubygems_mfa_required: 'true'
|
51
|
+
post_install_message:
|
51
52
|
rdoc_options: []
|
52
53
|
require_paths:
|
53
54
|
- lib
|
@@ -55,15 +56,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
55
56
|
requirements:
|
56
57
|
- - ">="
|
57
58
|
- !ruby/object:Gem::Version
|
58
|
-
version: '2.
|
59
|
+
version: '2.7'
|
59
60
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
61
|
requirements:
|
61
62
|
- - ">="
|
62
63
|
- !ruby/object:Gem::Version
|
63
64
|
version: '0'
|
64
65
|
requirements: []
|
65
|
-
rubygems_version: 3.
|
66
|
-
signing_key:
|
66
|
+
rubygems_version: 3.3.7
|
67
|
+
signing_key:
|
67
68
|
specification_version: 4
|
68
69
|
summary: Ruby Event Store scheduler for sidekiq
|
69
70
|
test_files: []
|