lambdakiq 1.0.3 → 1.0.4

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: 3f6c1f6c45eb8d1a8a5188e4e70e63ed36b05bbf334a807cef72c523d6661b55
4
- data.tar.gz: 4a9683cd82caadeedbbba483686c9584a0c0591bf85e63198202b4af0b414bf7
3
+ metadata.gz: f7c135b6e0287693cd9578f31b12517e005d534d26fe6e97018a7de1860b894a
4
+ data.tar.gz: b0c89e6ed8bc0686700ddfa20591cf1d5b61253ff3f6539393bab9e293f3e9ed
5
5
  SHA512:
6
- metadata.gz: 812d898f39463401a4dc348213b75b40d1892618a575f58791edfd7d168304ead00bf562831d414533304ccb83e00e826e0a8c43653c19432c9a190100e1ca15
7
- data.tar.gz: 144f18512e4db39eae43f6299fa81e48750e0438540ccd03a3e831a5efd914639cc20fec86ebb820ec5aeff1c6cb4ce5a4a2396b34d495f1f3788b486d55aa48
6
+ metadata.gz: 72dd47f3e94b10f3311cffe28a42d6fbc9df564f3767bae47f2b85ad13bab5671fae199df5e3ac054d68e1a887dc076a9a2024a35ac9ac91ad76a01184bdb028
7
+ data.tar.gz: fa0f5c5087f28e19ee204963237798a610257ecaf410e5efb59eda65513390b29e73a2939d3f826bbdb10aaf2a8aefba2efe00109b63d6010c30ef16148051b2
data/CHANGELOG.md CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  See this http://keepachangelog.com link for information on how we want this documented formatted.
4
4
 
5
- ## v1.0.2, v1.0.3
5
+ ## v1.0.2, v1.0.3, v1.0.4
6
6
 
7
7
  #### Fixed
8
8
 
9
- - Ensure `active_job` events are safe for non-Lambdakiq jobs.
9
+ - Rails v5.2 compatibility. Metrics logging is are safe for non-Lambdakiq jobs
10
10
 
11
11
  ## v1.0.0
12
12
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lambdakiq (1.0.3)
4
+ lambdakiq (1.0.4)
5
5
  activejob
6
6
  aws-sdk-sqs
7
7
  concurrent-ruby
@@ -30,8 +30,14 @@ module Lambdakiq
30
30
  job.class.name
31
31
  end
32
32
 
33
+ def adapter_name
34
+ event.payload[:adapter].class.name
35
+ end
36
+
33
37
  def lambdakiq?
34
- job.respond_to?(:lambdakiq?) && job.lambdakiq?
38
+ adapter_name.include?('Lambdakiq') &&
39
+ job.respond_to?(:lambdakiq?) &&
40
+ job.lambdakiq?
35
41
  end
36
42
 
37
43
  def logger
@@ -65,7 +71,7 @@ module Lambdakiq
65
71
  set_property 'QueueName', job.queue_name
66
72
  set_property 'MessageId', job.provider_job_id if job.provider_job_id
67
73
  set_property 'ExceptionName', exception_name if exception_name
68
- set_property 'EnqueuedAt', job.enqueued_at if job.enqueued_at
74
+ set_property 'EnqueuedAt', job.enqueued_at if job.respond_to?(:enqueued_at) && job.enqueued_at
69
75
  set_property 'Executions', job.executions if job.executions
70
76
  job.arguments.each_with_index do |argument, index|
71
77
  set_property "JobArg#{index+1}", argument
@@ -113,4 +119,3 @@ module Lambdakiq
113
119
 
114
120
  end
115
121
  end
116
-
@@ -1,3 +1,3 @@
1
1
  module Lambdakiq
2
- VERSION = '1.0.3'
2
+ VERSION = '1.0.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lambdakiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Collins
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-04 00:00:00.000000000 Z
11
+ date: 2021-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob