telemetry-logger 0.1.0 → 0.1.1

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: fd320aa72dcf1fd5cef868d702ff53de32f7eb5dca33f223a204b6c4a9ce5997
4
- data.tar.gz: 5289dbee67025db9e7950a53a0a580be48c90fd56ea58e4b263b9a9efcaffa47
3
+ metadata.gz: 650aaafabdc5a72622435581d70848ae723e45d82e9d34d8315e91db845842af
4
+ data.tar.gz: 7c9fc8c2364f206204b29b8e0e520ffb67f60a72066e0d750cba0ba55e0b466e
5
5
  SHA512:
6
- metadata.gz: dc6648148ea8cecdbb12206f558b2444e7ea31e419cd45fcd7d77829350935fd2e89c4e34424e61449171d6ee45d6830ea5f6f8bbc491d56cc37daa120f3466c
7
- data.tar.gz: 4dc1a88f930445998a94dd1951219a82e7a6ea677948cc01b0f16fb172813bbc2aded7b54c7d6acb8e93ebac252c8ae662c6dd8a3e16355422f4e45aa0d05df6
6
+ metadata.gz: 334ad853722b7c2477ff457d9b00524de9d83b6d0e5df7f322e9c0681b5aab2ff43ce999b668feb943f35464bd8250ec883e166f609cabea2222a30446d72283
7
+ data.tar.gz: 3425c27ced9ab4b2e812c1ffed3c1671c10e3a9974e0242be44500f869257da3d5ca79acab5fab79020194f25dcda0411b4f279fcd12fb368488680dc5b559eb
data/CHANGELOG.md CHANGED
@@ -1,4 +1,10 @@
1
1
  # Telemetry::Logger
2
2
 
3
+ ## v0.1.1
4
+ * Fixing issue with color option using the wrong method name
5
+ * Removing format logger from the setup command
6
+ * Changing setup method to return `self`
7
+ * Removing `concurrent-ruby` and `oj` as a dependency
8
+
3
9
  ## v0.1.0
4
10
  Initial release
@@ -13,7 +13,7 @@ module Telemetry
13
13
  def setup(level: 'info', **opts)
14
14
  output(**opts)
15
15
  self.log_level = level
16
- log_format(**opts)
16
+ self
17
17
  end
18
18
  end
19
19
  end
@@ -1,3 +1,5 @@
1
+ require 'rainbow'
2
+
1
3
  module Telemetry
2
4
  module Logger
3
5
  module Methods
@@ -15,7 +17,7 @@ module Telemetry
15
17
  return unless log.level < 1
16
18
 
17
19
  message = yield if message.nil? && block_given?
18
- message = Rainbow(message).blue if @color
20
+ message = Rainbow(message).blue if colorize
19
21
  log.debug(message)
20
22
  end
21
23
 
@@ -23,7 +25,7 @@ module Telemetry
23
25
  return unless log.level < 2
24
26
 
25
27
  message = yield if message.nil? && block_given?
26
- message = Rainbow(message).green if @color
28
+ message = Rainbow(message).green if colorize
27
29
  log.info(message)
28
30
  end
29
31
 
@@ -31,7 +33,7 @@ module Telemetry
31
33
  return unless log.level < 3
32
34
 
33
35
  message = yield if message.nil? && block_given?
34
- message = Rainbow(message).yellow if @color
36
+ message = Rainbow(message).yellow if colorize
35
37
  log.warn(message)
36
38
  end
37
39
 
@@ -39,7 +41,7 @@ module Telemetry
39
41
  return unless log.level < 4
40
42
 
41
43
  message = yield if message.nil? && block_given?
42
- message = Rainbow(message).red if @color
44
+ message = Rainbow(message).red if colorize
43
45
  log.error(message)
44
46
  end
45
47
 
@@ -47,13 +49,13 @@ module Telemetry
47
49
  return unless log.level < 5
48
50
 
49
51
  message = yield if message.nil? && block_given?
50
- message = Rainbow(message).darkred if @color
52
+ message = Rainbow(message).darkred if colorize
51
53
  log.fatal(message)
52
54
  end
53
55
 
54
56
  def unknown(message = nil)
55
57
  message = yield if message.nil? && block_given?
56
- message = Rainbow(message).purple if @color
58
+ message = Rainbow(message).purple if colorize
57
59
  log.unknown(message)
58
60
  end
59
61
 
@@ -1,5 +1,5 @@
1
1
  module Telemetry
2
2
  module Logger
3
- VERSION = '0.1.0'.freeze
3
+ VERSION = '0.1.1'.freeze
4
4
  end
5
5
  end
@@ -24,9 +24,6 @@ Gem::Specification.new do |spec|
24
24
  end
25
25
  spec.require_paths = ['lib']
26
26
 
27
- spec.add_dependency 'concurrent-ruby', '>= 1.1.7'
28
- spec.add_dependency 'concurrent-ruby-ext', '>= 1.1.7'
29
27
  spec.add_dependency 'multi_json'
30
- spec.add_dependency 'oj', '>= 3.11'
31
28
  spec.add_dependency 'rainbow', '~> 3'
32
29
  end
metadata CHANGED
@@ -1,43 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telemetry-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-19 00:00:00.000000000 Z
11
+ date: 2021-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: concurrent-ruby
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: 1.1.7
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: 1.1.7
27
- - !ruby/object:Gem::Dependency
28
- name: concurrent-ruby-ext
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: 1.1.7
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: 1.1.7
41
13
  - !ruby/object:Gem::Dependency
42
14
  name: multi_json
43
15
  requirement: !ruby/object:Gem::Requirement
@@ -52,20 +24,6 @@ dependencies:
52
24
  - - ">="
53
25
  - !ruby/object:Gem::Version
54
26
  version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: oj
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '3.11'
62
- type: :runtime
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '3.11'
69
27
  - !ruby/object:Gem::Dependency
70
28
  name: rainbow
71
29
  requirement: !ruby/object:Gem::Requirement
@@ -131,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
89
  - !ruby/object:Gem::Version
132
90
  version: '0'
133
91
  requirements: []
134
- rubygems_version: 3.1.6
92
+ rubygems_version: 3.2.15
135
93
  signing_key:
136
94
  specification_version: 4
137
95
  summary: Telemetry Logging Gem