fluent-plugin-barito 0.1.5 → 0.1.6

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: f619871d3344d661cc8b0afc3e108b8300ee8ab1
4
- data.tar.gz: 3baf519e4b5855bc58d31f976dfeb308540abcb6
3
+ metadata.gz: 7c714bb9ef094e6168c5cebd7920e71789a6ddc5
4
+ data.tar.gz: 1b7f4582d8f1ff20222f103955a3b3dd96f2a7fb
5
5
  SHA512:
6
- metadata.gz: ec6259c713263775de741fa8426bc6c60ecc4f9e7f5882212cc428d0a5b9c89706f49b5445d463b2df9e0bd5ee1a5ed40979bbb0243e3e603363e06d0ec60de9
7
- data.tar.gz: 1fcc5e7e5c3268afe6e658293aa9892d7f630315c0e7b60c3d30edb04626db8d5d4a875b49ea2eb85ff803c795b9a8702637a19efc1cf7673fac406fdfa732b3
6
+ metadata.gz: a924d303d8181cdb6e60bb429804de69c2e359ecbf98920a834d62692331492f3329f2cbbf8fae7d30f912f2212cb5ceb2fba3678b987b0bbb4e1ee593c24a0a
7
+ data.tar.gz: 847728caa85523c37d3673577c38f87cb5aecee3a12775e3ddf67954b18252d8a19d770f28cacbc8d3890c5f2febff5b1443c87552e35c88eea606b2221bc970
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "fluent-plugin-barito"
6
- spec.version = "0.1.5"
6
+ spec.version = "0.1.6"
7
7
  spec.authors = ["BaritoLog"]
8
8
  spec.email = ["pushm0v.development@gmail.com", "iman.tung@gmail.com"]
9
9
 
@@ -22,10 +22,10 @@ Gem::Specification.new do |spec|
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 1.14"
24
24
  spec.add_development_dependency "rake", "~> 12.0"
25
- spec.add_development_dependency "rspec"
26
- spec.add_development_dependency "timecop"
27
- spec.add_development_dependency "simplecov"
28
- spec.add_development_dependency "coveralls"
25
+ spec.add_development_dependency 'rspec', '~> 3.4'
26
+ spec.add_development_dependency 'timecop', '~> 0.9.1'
27
+ spec.add_development_dependency 'simplecov', '~> 0.16.1'
28
+ spec.add_development_dependency 'coveralls', '~> 0.8.21'
29
29
  spec.add_development_dependency 'test-unit', '~> 3.2'
30
30
 
31
31
  spec.add_runtime_dependency "fluentd", "~> 0.12", ">= 0.12.0"
@@ -4,9 +4,8 @@ class Fluent::Plugin::ClientTrail
4
4
 
5
5
  def initialize(is_k8s)
6
6
  @is_k8s = is_k8s
7
- @sent_at = Time.now.utc
7
+ @sent_at = Time.now.utc.strftime('%FT%TZ')
8
8
  @hints = []
9
-
10
9
  end
11
10
 
12
11
  def to_hash
@@ -24,12 +24,12 @@ class Fluent::Plugin::Timber
24
24
 
25
25
  timber = Fluent::Plugin::Timber.new
26
26
  timber.tag = tag
27
- timber.timestamp = time
27
+ timber.timestamp = Time.at(time).utc.strftime('%FT%TZ')
28
28
  timber.message = record[MESSAGE_KEY] if record.is_a?(Hash) and record.has_key?(MESSAGE_KEY)
29
29
  timber.client_trail = trail
30
30
 
31
31
  if timber.timestamp.nil?
32
- timber.timestamp = Time.now.utc
32
+ timber.timestamp = Time.now.utc.strftime('%FT%TZ')
33
33
  trail.hints << HINTS_NO_TIMESTAMP
34
34
  end
35
35
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-barito
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - BaritoLog
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-02 00:00:00.000000000 Z
11
+ date: 2018-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -42,58 +42,58 @@ dependencies:
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '3.4'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '3.4'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: timecop
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 0.9.1
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 0.9.1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: simplecov
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: 0.16.1
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: 0.16.1
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: coveralls
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: 0.8.21
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: 0.8.21
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: test-unit
99
99
  requirement: !ruby/object:Gem::Requirement