evt-telemetry-logger 0.5.1.4 → 0.5.1.5

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: db0d550399e3b2211c8acbdf361f6dd9d8fcb0f3
4
- data.tar.gz: 0475e9826b6718e679a9d036462ae83ec61f6bb6
3
+ metadata.gz: 03f5e888fb7dcb1df29a98ed8221fee41b867abc
4
+ data.tar.gz: cd5ba4838381750091c5dedf32caf638761c9bd4
5
5
  SHA512:
6
- metadata.gz: f58520936715541de2bd7291f381ce61b203229c1ba63eaab83cbf74b7a92a2788916a8aa400d5b5828aafea141fa56bbd6e747a735306b7dad615e41aa155c8
7
- data.tar.gz: 1760c8c6dbdfcf37765471523c2c9481bf4e4753031d299448dd79715cd9ede881d8069a7d326235fdcbe87a3d58b450f8166ea324c791dd02f8b7a21c3cf959
6
+ metadata.gz: e6384412c047e1c382554f3986dd15a7db4f39a3451952477370d0e53407fe5c9e32dbc6d1e8e90e6d506c08e94c652bdcafe6ebadae32cbea477b66b9dd9c39
7
+ data.tar.gz: 3a8ddf00fb424ba9b1d254436436c1c5ade674e4720159305376645f93162eb8168482af0f121fcfcb41250ac69cd5ada6bd1d4ff108f71bbc83b0111b6ff011
@@ -1,6 +1,6 @@
1
1
  require 'English'
2
2
 
3
- require 'rainbow'; Rainbow.enabled = true
3
+ require 'terminal_colors'
4
4
 
5
5
  require 'pathname'
6
6
  require 'clock'
@@ -12,19 +12,19 @@ class Telemetry
12
12
  end
13
13
 
14
14
  def metadata(text)
15
- Rainbow(text).yellow
15
+ TerminalColors::Apply.(text, fg: 'yellow')
16
16
  end
17
17
 
18
18
  def todo(message)
19
- Rainbow(message).bright.white.bg(:white)
19
+ TerminalColors::Apply.(message, fg: 'white', bg: 'white', bold: true)
20
20
  end
21
21
 
22
22
  def fubar(message)
23
- Rainbow(message).red.bg(:yellow)
23
+ TerminalColors::Apply.(message, fg: 'red', bg: 'yellow')
24
24
  end
25
25
 
26
26
  def obsolete(message)
27
- Rainbow(message).bright.white
27
+ TerminalColors::Apply.(message, fg: 'white', bold: true)
28
28
  end
29
29
 
30
30
  def opt_data(message)
@@ -32,7 +32,7 @@ class Telemetry
32
32
  end
33
33
 
34
34
  def data(message)
35
- Rainbow(message).cyan
35
+ TerminalColors::Apply.(message, fg: 'cyan')
36
36
  end
37
37
 
38
38
  def opt_trace(message)
@@ -40,35 +40,35 @@ class Telemetry
40
40
  end
41
41
 
42
42
  def trace(message)
43
- Rainbow(message).white
43
+ TerminalColors::Apply.(message, fg: 'white')
44
44
  end
45
45
 
46
46
  def info(message)
47
- Rainbow(message).green
47
+ TerminalColors::Apply.(message, fg: 'green')
48
48
  end
49
49
 
50
50
  def pass(message)
51
- Rainbow(message).black.bg(:green)
51
+ TerminalColors::Apply.(message, fg: 'black', bg: 'green')
52
52
  end
53
53
 
54
54
  def fail(message)
55
- Rainbow(message).black.bg(:red)
55
+ TerminalColors::Apply.(message, fg: 'black', bg: 'red')
56
56
  end
57
57
 
58
58
  def focus(message)
59
- Rainbow(message).bright.white.bg(:blue)
59
+ TerminalColors::Apply.(message, fg: 'white', bg: 'blue', bold: true)
60
60
  end
61
61
 
62
62
  def warn(message)
63
- Rainbow(message).yellow.bg(:black)
63
+ TerminalColors::Apply.(message, fg: 'yellow', bg: 'black')
64
64
  end
65
65
 
66
66
  def error(message)
67
- Rainbow(message).red.bg(:black)
67
+ TerminalColors::Apply.(message, fg: 'red', bg: 'black')
68
68
  end
69
69
 
70
70
  def fatal(message)
71
- Rainbow(message).white.bg(:black)
71
+ TerminalColors::Apply.(message, fg: 'white', bg: 'black')
72
72
  end
73
73
  end
74
74
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-telemetry-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1.4
4
+ version: 0.5.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-20 00:00:00.000000000 Z
11
+ date: 2016-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-clock
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rainbow
42
+ name: terminal_colors
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  version: '0'
101
101
  requirements: []
102
102
  rubyforge_project:
103
- rubygems_version: 2.5.2
103
+ rubygems_version: 2.6.8
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: Logging to STDERR with coloring and levels of severity