ruby_event_store-sidekiq_scheduler 0.1.0 → 0.1.1
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 +3 -2
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa78f9b2f4a43181959ce50d54aabd31f263c008108781981841df063acde823
|
4
|
+
data.tar.gz: fe56369845da6d00ac7640be85454c467eb30d9bddfcf168644f4c5daef47f35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a56b624b93959c925894fe625996caf0635986b522d68bf751824a5e26bf6b1e9b1861bf88a95444d7e6a86f3c36325f7c84ddacac44219c3d52b214371d4e12
|
7
|
+
data.tar.gz: ac5821fd4dc89bfee51b7df9009d03556cea61de1ee72a90b0361ee4ab3accb213c214f675c0158781927e38cb8acadf2cc8036d4bc32618548b089bb9222724
|
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,7 +7,7 @@ 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)
|
@@ -15,6 +15,7 @@ module RubyEventStore
|
|
15
15
|
end
|
16
16
|
|
17
17
|
private
|
18
|
+
|
18
19
|
attr_reader :serializer
|
19
20
|
end
|
20
21
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arkency
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby_event_store
|
@@ -47,6 +47,7 @@ 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
|
+
rubygems_mfa_required: 'true'
|
50
51
|
post_install_message:
|
51
52
|
rdoc_options: []
|
52
53
|
require_paths:
|
@@ -55,14 +56,14 @@ 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
|
+
rubygems_version: 3.3.9
|
66
67
|
signing_key:
|
67
68
|
specification_version: 4
|
68
69
|
summary: Ruby Event Store scheduler for sidekiq
|