wololo_formatter 0.0.3 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -1,7 +1,14 @@
1
1
  # WololoFormatter
2
+ Turns this:
3
+ ![Alt text](http://i.imgur.com/MGnFfaR.png)
2
4
 
3
- TODO: Write a gem description
5
+ Into this:
6
+ ![Alt text](http://i.imgur.com/Z9E6cUz.png)
4
7
 
8
+ All messages:
9
+ ![Alt text](http://i.imgur.com/Ndef2Xy.png)
10
+
11
+ Works for all versions of Rails 3+ and in all code where the default ruby logger is used.
5
12
  ## Installation
6
13
 
7
14
  Add this line to your application's Gemfile:
@@ -18,7 +25,7 @@ Or install it yourself as:
18
25
 
19
26
  ## Usage
20
27
 
21
- TODO: Write usage instructions here
28
+ Just adding the gem to the gemfile is enough.
22
29
 
23
30
  ## Contributing
24
31
 
@@ -18,13 +18,13 @@ module ActiveSupport
18
18
  when "DEBUG"
19
19
  "\033[1;34;40m[DEBUG]\033[0m" # blue
20
20
  when "INFO"
21
- "\033[0;32;40m[INFO]\033[0m" # bold white
21
+ "\033[0;32;40m[INFO]\033[0m " # bold white
22
22
  when "WARN"
23
- "\033[0;33;40m[WARNING]\033[0m" # bold yellow
23
+ "\033[0;33;40m[WARN]\033[0m " # bold yellow
24
24
  when "ERROR"
25
25
  "\033[1;31;40m[ERROR]\033[0m" # bold red
26
26
  when "FATAL"
27
- "\033[7;31;40m[FATAL]\033[0m" # bold black, red bg
27
+ "\033[7;31;40m[FATAL]\033[0m" # bold black, red bg
28
28
  else
29
29
  "[#{severity}]" # none
30
30
  end
@@ -12,9 +12,9 @@ class Logger
12
12
  when "DEBUG"
13
13
  "\033[1;34;40m[DEBUG]\033[0m" # blue
14
14
  when "INFO"
15
- "\033[0;32;40m[INFO]\033[0m" # bold white
15
+ "\033[0;32;40m[INFO]\033[0m " # bold white
16
16
  when "WARN"
17
- "\033[0;33;40m[WARNING]\033[0m" # bold yellow
17
+ "\033[0;33;40m[WARN]\033[0m " # bold yellow
18
18
  when "ERROR"
19
19
  "\033[1;31;40m[ERROR]\033[0m" # bold red
20
20
  when "FATAL"
@@ -38,9 +38,9 @@ class Logger
38
38
  when "DEBUG"
39
39
  "\033[1;34;40m[DEBUG]\033[0m" # blue
40
40
  when "INFO"
41
- "\033[0;32;40m[INFO]\033[0m" # bold white
41
+ "\033[0;32;40m[INFO]\033[0m " # bold white
42
42
  when "WARN"
43
- "\033[0;33;40m[WARNING]\033[0m" # bold yellow
43
+ "\033[0;33;40m[WARN]\033[0m " # bold yellow
44
44
  when "ERROR"
45
45
  "\033[1;31;40m[ERROR]\033[0m" # bold red
46
46
  when "FATAL"
@@ -1,3 +1,3 @@
1
1
  module WololoFormatter
2
- VERSION = '0.0.3'
2
+ VERSION = '0.1.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wololo_formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-05 00:00:00.000000000 Z
12
+ date: 2013-06-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler