autowow 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/autowow.gemspec +1 -1
- data/lib/autowow/log_formatter.rb +5 -4
- data/lib/autowow/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f439584090afd01a26a0b170002026891075d7da
|
4
|
+
data.tar.gz: 84254b3472a5305e639b6976d09fe13c49d759bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a8ec3ed4e922d98d3a1ec38f543a8ada4972a3aece0337cb7ea2dfdcc3f691b94de3f9f2481a858ce8c63ff99d1d65ec8b34bd80aa4bcbc78c8d0043d663ba7
|
7
|
+
data.tar.gz: 5bf501d994bd622b2b34f9005186d97e5d3a184d2e366886ddf1f4c528bfbbe24b414af9009599468d7cb8834400bf6a0f6683b54bb07924609c81c3f5aa5557
|
data/autowow.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
|
24
24
|
spec.add_dependency "easy_logging", ">= 0.3.0" # Include logger easily, without redundancy
|
25
25
|
spec.add_dependency "thor" # CLI
|
26
|
-
spec.add_dependency "
|
26
|
+
spec.add_dependency "pastel" # Colorize output of own logger
|
27
27
|
spec.add_dependency "time_difference", "= 0.5.0" # Calculate project age. Fixed version because we refine it :(
|
28
28
|
spec.add_dependency "launchy" # Open project in browser
|
29
29
|
spec.add_dependency "tty-command", ">= 0.7.0" # Execute system commands nicely
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'pastel'
|
2
2
|
|
3
3
|
module Autowow
|
4
4
|
class LogFormatter
|
@@ -9,13 +9,14 @@ module Autowow
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def self.color(severity, msg)
|
12
|
+
pastel = Pastel.new
|
12
13
|
case severity
|
13
14
|
when 'DEBUG'
|
14
|
-
|
15
|
+
pastel.yellow(msg)
|
15
16
|
when 'WARN'
|
16
|
-
msg
|
17
|
+
pastel.red(msg)
|
17
18
|
when 'ERROR'
|
18
|
-
msg
|
19
|
+
pastel.bright_red(msg)
|
19
20
|
else
|
20
21
|
msg
|
21
22
|
end
|
data/lib/autowow/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autowow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thisismydesign
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: pastel
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|