kiev 4.8.2 → 4.8.3

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: b75d8c13ade0c1c19c620f32cd91f9ee8cfb181b88bbbb450bacc2740ed297de
4
- data.tar.gz: 91dc05471b4dd9cd0b7d436b3c8e6df35760a11a269a48a64b575bf37bf02a3b
3
+ metadata.gz: b49edfb1dad9529b3a4776eacc2b35cdc02c4bf480b073dcc53e536c6f435cca
4
+ data.tar.gz: 7a1e3f489e363f0d95aec400b5d3d049fab01ab1f3d26f4a4c8b7392890ea1f3
5
5
  SHA512:
6
- metadata.gz: 8e8928421ba2133504842a917a9a0188f81786eea86a7f88abc9b722bde7fad3e4d01d84610bd0b073678b06cad8f4735e1002ce05d3c473e68c7e7edc029a77
7
- data.tar.gz: 20bf31e576d12ffea2a8a9b6c9bebfc9e27e00d0ef7bf0a2e446546bb622fa4b2e60a0666d51c64ba4d8ae20b3fb01bdab88fbec9e5f7d5f0957f69e7790cfe0
6
+ metadata.gz: b76c1993ac7c6c65cbfc6a4a80c77a3d43da5af596578d18f5653a2db08c3e6088fbc6bb187a80410f796119c2867c3d6014475bb577bd5fa829d662481b4226
7
+ data.tar.gz: 5ecf6e37e77bdeb1c1083284e91d066b01e0756218a2171b2f6f984ebd927e9ac367edbc47d4ad252fa65b2675bc8c88a05f7d33464a53ca11c12b212eab9a7a
@@ -19,7 +19,7 @@ module Kiev
19
19
  end
20
20
 
21
21
  def tracking_id
22
- self[TRACKING_ID] || self[REQUEST_ID] || SecureRandom.uuid
22
+ presence(self[TRACKING_ID]) || presence(self[REQUEST_ID]) || SecureRandom.uuid
23
23
  end
24
24
 
25
25
  alias_method :request_id, :tracking_id
@@ -43,5 +43,9 @@ module Kiev
43
43
  private
44
44
 
45
45
  attr_reader :subject
46
+
47
+ def presence(value)
48
+ return value if value && !value.empty?
49
+ end
46
50
  end
47
51
  end
data/lib/kiev/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kiev
4
- VERSION = "4.8.2"
4
+ VERSION = "4.8.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kiev
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.8.2
4
+ version: 4.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blacklane
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-25 00:00:00.000000000 Z
11
+ date: 2022-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oga
@@ -124,7 +124,7 @@ description: Kiev is a logging tool aimed at distributed environments. It logs t
124
124
  JSON, while providing human-readable output in development mode. It integrates nicely
125
125
  with Rails, Sinatra and other Rack-based frameworks, Sidekiq, Que, HTTParty, Her
126
126
  and other Faraday-based HTTP clients.
127
- email:
127
+ email:
128
128
  executables: []
129
129
  extensions: []
130
130
  extra_rdoc_files: []
@@ -207,7 +207,7 @@ homepage: https://github.com/blacklane/kiev
207
207
  licenses:
208
208
  - MIT
209
209
  metadata: {}
210
- post_install_message:
210
+ post_install_message:
211
211
  rdoc_options: []
212
212
  require_paths:
213
213
  - lib
@@ -222,8 +222,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
222
222
  - !ruby/object:Gem::Version
223
223
  version: '0'
224
224
  requirements: []
225
- rubygems_version: 3.3.7
226
- signing_key:
225
+ rubyforge_project:
226
+ rubygems_version: 2.7.6
227
+ signing_key:
227
228
  specification_version: 4
228
229
  summary: Distributed logging to JSON integrated with various Ruby frameworks and tools
229
230
  test_files: []