evt-log 0.4.3.3 → 0.4.3.4

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: 4dc054859387aa7be97e91e947cb4fadf5032b37
4
- data.tar.gz: 98301335ec8d3804d45e1e1654f4d54d6ed6b510
3
+ metadata.gz: 309dfbff85a02c644a251265caa5d092042ab65b
4
+ data.tar.gz: 24615ff39093791a1622ce16cfd75e8eb93bae8c
5
5
  SHA512:
6
- metadata.gz: 982e876ac0a8c60887c92d01983dfc6803bdc89ba4f068b033ef3589736f76e2d233e664c03ca0d3121be29f81aa6beadc796e6b65b52901748c60e3248132f6
7
- data.tar.gz: e5f86a3513fa0732a5d81d1758e420737f2d9707942b47935e1576fc11244b5f469074c241c2e1cc473bd3e1590804fb0eb201d94b1ebc64113d63f80fc41dc6
6
+ metadata.gz: ffb1b5950669d0da7b88f84b6317504954bcb85263c083ddf144386a08e1516edc3035c59ffb409ff47a9a865793ba9300f2f04dacdb73e8e4461f081fd7fba5
7
+ data.tar.gz: 492c872aaafeb2939c5e981e712081f0eefec146f3cfb04dab8042518ee394947d3f6ab780be5348a38b27d25e249458261f397c381506595365fe83fcb756c1
data/lib/log.rb CHANGED
@@ -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 'initializer'; Initializer.activate
6
6
  require 'dependency'; Dependency.activate
@@ -57,11 +57,11 @@ module Log::Defaults
57
57
 
58
58
  def self.level_formatters
59
59
  {
60
- error: proc { |message| Rainbow(message).bright.white.bg(:red) },
61
- fatal: proc { |message| Rainbow(message).red.bg(:black) },
62
- warn: proc { |message| Rainbow(message).yellow.bg(:black) },
63
- debug: proc { |message| Rainbow(message).green },
64
- trace: proc { |message| Rainbow(message).cyan }
60
+ error: proc { |message| TerminalColors::Apply.(message, bg: :red, bold: true) },
61
+ fatal: proc { |message| TerminalColors::Apply.(message, fg: :red, bg: :black) },
62
+ warn: proc { |message| TerminalColors::Apply.(message, fg: :yellow, bg: :black) },
63
+ debug: proc { |message| TerminalColors::Apply.(message, fg: :green) },
64
+ trace: proc { |message| TerminalColors::Apply.(message, fg: :cyan) }
65
65
  }
66
66
  end
67
67
  end
@@ -1,5 +1,5 @@
1
1
  module Log::Format::Color
2
2
  def self.header(text)
3
- Rainbow(text).white
3
+ TerminalColors::Apply.(text, fg: :white)
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3.3
4
+ version: 0.4.3.4
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-initializer
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rainbow
70
+ name: terminal_colors
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  version: '0'
139
139
  requirements: []
140
140
  rubyforge_project:
141
- rubygems_version: 2.5.2
141
+ rubygems_version: 2.6.8
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: Logging to STD IO with levels, tagging, and coloring