imprint 1.4.3.pre3 → 1.4.3.pre4

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
  SHA1:
3
- metadata.gz: 8158732d6953a6ab13497d6fc5306fa8eb6d65ef
4
- data.tar.gz: 2cd801d66940df96573043193c9f231608f6af96
3
+ metadata.gz: 19847e0b5694b127c72eba667442421d45760829
4
+ data.tar.gz: 2a05b5832173caa597612f5cb7ac8603a4839123
5
5
  SHA512:
6
- metadata.gz: 6fe8018a746c2b8cb52896739521a8fbf549366a6c9ff019a19e66ade505734daafe012fa9c3d4dfbd29f346127427c9fea60b49ca08046aee943d4c9383f589
7
- data.tar.gz: f2e296db54992e6155fa2636df3ad6e3fc96cc81a1dad4b44a04fdbfed286c610d5fe46c481e7f8b58a63d94e1d4d1f211794993126c2ca55c6955066b08bc18
6
+ metadata.gz: 165f2a447d068fe2a920cd0bb3d44272b524b65ffd786ab44d0b621321478bfc14116b8dfb65780acad38f998f8432a91b0f12abb50fab08e58ecf65d5c732c2
7
+ data.tar.gz: 83d9dde9d3f4cb3a0b3b0924edb66faed2805af89bc57f5486319aa65ef11ad4c841270eeef34aa0e92bce071c03254c9ce90e19ec55f3964691e116ee28b1f9
@@ -23,7 +23,7 @@ module Imprint
23
23
  end
24
24
 
25
25
  def self.get_trace_timestamp
26
- Thread.current[TRACER_TIMESTAMP] ||= Time.now.strftime("%Y-%m-%dT%H:%M:%S.%6N") + " ##{$$}"
26
+ Thread.current[TRACER_TIMESTAMP] ||= Time.now.utc.strftime("%Y-%m-%dT%H:%M:%S.%6N") + " ##{$$}"
27
27
  end
28
28
 
29
29
  def self.insert_trace_id_in_message(message, severity = nil)
@@ -1,3 +1,3 @@
1
1
  module Imprint
2
- VERSION = "1.4.3.pre3"
2
+ VERSION = "1.4.3.pre4"
3
3
  end
@@ -11,7 +11,7 @@ class TracerTest < Minitest::Test
11
11
  should "set trace timestamp" do
12
12
  fake_trace = "tracer"
13
13
  Timecop.freeze do
14
- test_time = Time.now
14
+ test_time = Time.now.utc
15
15
  Imprint::Tracer.set_trace_id(fake_trace, fake_rack_env)
16
16
  # timecop has a bug with millisec time on osx
17
17
  # this makes the check ignore millisec
@@ -29,7 +29,7 @@ class TracerTest < Minitest::Test
29
29
 
30
30
  should "get trace timestamp defaults" do
31
31
  Timecop.freeze do
32
- test_time = Time.now
32
+ test_time = Time.now.utc
33
33
  # timecop has a bug with millisec time on osx
34
34
  # this makes the check ignore millisec
35
35
  assert !!Imprint::Tracer.get_trace_timestamp.to_s.match(/#{test_time.strftime("%Y-%m-%dT%H:%M:%S")}/)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imprint
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3.pre3
4
+ version: 1.4.3.pre4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Mayer
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  version: 1.3.1
142
142
  requirements: []
143
143
  rubyforge_project:
144
- rubygems_version: 2.4.3
144
+ rubygems_version: 2.2.3
145
145
  signing_key:
146
146
  specification_version: 4
147
147
  summary: A gem to help improve logging. Focused on request tracing and cross app tracing.