inst-jobs 3.1.14 → 3.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/delayed/log_tailer.rb +6 -1
- data/lib/delayed/message_sending.rb +13 -0
- data/lib/delayed/version.rb +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: 4f72da158c53a425c974608dd30ca4f16f0c70071f3f159e16488b40677f2efe
|
4
|
+
data.tar.gz: a039610f1a50c70abaf4f2b36f81a19e748429cd3c675c7c789703d0ba1f8d02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d5d65c583bd1e818918ffc927be4779129d556670d910dd7781a7c2c5be0d178e3315e1a8a1bfb1b0784d3b5b09be7b59187e402915c28a1e33fa726bad7c38
|
7
|
+
data.tar.gz: 2cfbe4d0840eae6ee31941dd8b0b8a681c07ab2b6dcc3c832198198eb02a146c6068f8f83081f31f03e0a93a763c9fdd5f62767e5ab1383e1214cbc84489d1e1
|
data/lib/delayed/log_tailer.rb
CHANGED
@@ -3,7 +3,12 @@
|
|
3
3
|
module Delayed
|
4
4
|
class LogTailer
|
5
5
|
def run
|
6
|
-
if Rails.logger.respond_to?(:
|
6
|
+
if Rails.logger.respond_to?(:broadcast_to)
|
7
|
+
return if ActiveSupport::Logger.logger_outputs_to?(Rails.logger, $stdout)
|
8
|
+
|
9
|
+
Rails.logger.broadcast_to(ActiveSupport::Logger.new($stdout))
|
10
|
+
return
|
11
|
+
elsif Rails.logger.respond_to?(:log_path)
|
7
12
|
log_path = Rails.logger.log_path
|
8
13
|
elsif Rails.logger.instance_variable_get(:@logdev).try(:instance_variable_get, "@dev").try(:path)
|
9
14
|
log_path = Rails.logger.instance_variable_get(:@logdev).instance_variable_get(:@dev).path
|
@@ -78,6 +78,19 @@ module Delayed
|
|
78
78
|
result = nil unless ignore_transaction
|
79
79
|
result
|
80
80
|
end
|
81
|
+
# public_send is the same thing as method_missing - just unwraps one level
|
82
|
+
# of calls so that we don't end up calling public_send with public_send
|
83
|
+
alias_method :public_send, :method_missing
|
84
|
+
|
85
|
+
# send is similar to method-missing - it unwraps one level of calls so
|
86
|
+
# that we don't call send with send. it also bypasses visibility checks
|
87
|
+
def send(method, *args, **kwargs)
|
88
|
+
old_sender = @sender
|
89
|
+
@sender = @object
|
90
|
+
method_missing(method, *args, **kwargs)
|
91
|
+
ensure
|
92
|
+
@sender = old_sender
|
93
|
+
end
|
81
94
|
end
|
82
95
|
|
83
96
|
def delay(sender: nil, **enqueue_args)
|
data/lib/delayed/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inst-jobs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2024-04-01 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activerecord
|