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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16e359eba573f46a29762f1afd4bb55a52fcc9252f25ff61779f7f9b136d8f92
4
- data.tar.gz: 2983f7040757c9421ae2464c79599556cd0286678ada618787c9fbe5019eca34
3
+ metadata.gz: 4f72da158c53a425c974608dd30ca4f16f0c70071f3f159e16488b40677f2efe
4
+ data.tar.gz: a039610f1a50c70abaf4f2b36f81a19e748429cd3c675c7c789703d0ba1f8d02
5
5
  SHA512:
6
- metadata.gz: b8296ac3fe9c675ed42f02ad7a112534d30bf212f57ca288313615eb2fa2954f114cd1a5c0f20ca886a11a6ed8085bed5c21d355f63ddadb52ba3508a341cc47
7
- data.tar.gz: 65c2307f632d2dd2360fa0dc97c2c5fa373185c9c1fb78b7c057e970166a25742faa0a294bc8382cee895fc96c3d6302e7af6dbeb2bc44f99bbfff9f792edcd8
6
+ metadata.gz: 6d5d65c583bd1e818918ffc927be4779129d556670d910dd7781a7c2c5be0d178e3315e1a8a1bfb1b0784d3b5b09be7b59187e402915c28a1e33fa726bad7c38
7
+ data.tar.gz: 2cfbe4d0840eae6ee31941dd8b0b8a681c07ab2b6dcc3c832198198eb02a146c6068f8f83081f31f03e0a93a763c9fdd5f62767e5ab1383e1214cbc84489d1e1
@@ -3,7 +3,12 @@
3
3
  module Delayed
4
4
  class LogTailer
5
5
  def run
6
- if Rails.logger.respond_to?(:log_path)
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Delayed
4
- VERSION = "3.1.14"
4
+ VERSION = "3.1.16"
5
5
  end
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.14
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: 2023-11-22 00:00:00.000000000 Z
13
+ date: 2024-04-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord