eivo-rails-sidekiq 0.1.0 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/initializers/sidekiq.rb +11 -1
- data/eivo-rails-sidekiq.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be018365076d710c45822fe0d17df39c2d89d38889fa8165037139b5126f5bec
|
4
|
+
data.tar.gz: f9e28ab43d0cd8c9836d1e04304f7fe043b36064e2ae1d1f47a88dca99428a79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b632b6ec0ed73a42077033b24b48b82c7e9b7841321883148b19e2717043e6e72089e09efaa492ea1b8983aa68769a78a0c7d113f17d0a8a2d50383679be602
|
7
|
+
data.tar.gz: '049e97b49f1dbfdc76cf82c78be4e222c739eb637f5a4d6607c0840665e00ab2948ec6d96caaf5da443bf8b1d376431bfd07d3e50c6879bbfa708a86f10d6109'
|
@@ -14,7 +14,17 @@ end
|
|
14
14
|
|
15
15
|
Sidekiq.configure_server do |config|
|
16
16
|
config.redis = redis_config.dup
|
17
|
-
|
17
|
+
|
18
|
+
if Rails.env.staging? || Rails.env.production?
|
19
|
+
config.log_formatter = ::EIVO::Formatter.new
|
20
|
+
|
21
|
+
config.error_handlers << proc do |error, context|
|
22
|
+
Sidekiq.logger.error({
|
23
|
+
error: ["#{error.class.name}: #{error.message}", error.backtrace&.join("\n")].join("\n"),
|
24
|
+
context: context
|
25
|
+
})
|
26
|
+
end
|
27
|
+
end
|
18
28
|
end
|
19
29
|
|
20
30
|
ActiveJob::Base.queue_adapter = :sidekiq if defined?(ActiveJob)
|
data/eivo-rails-sidekiq.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eivo-rails-sidekiq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan VUKOVICH-TRIBOUHARET
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sidekiq
|