itslog 0.6.0 → 0.6.1

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
@@ -38,7 +38,9 @@ Itslog does not need to be configured unless you want to customize the output st
38
38
  Example:
39
39
 
40
40
  ``` ruby
41
- Itslog.configure do |config|
41
+ if Rails.env.development? || Rails.env.test?
42
+
43
+ Itslog.configure do |config|
42
44
  config.namespace_colors = {
43
45
  'action_controller' => "\e[32m",
44
46
  'active_record' => "\e[94m",
@@ -48,6 +50,8 @@ Itslog.configure do |config|
48
50
  config.format = "%t [%n]: %m"
49
51
  config.message_color = "\e[37m"
50
52
  config.timestamp_format = "%Y-%b-%d %H:%M:%S %z"
53
+ end
54
+
51
55
  end
52
56
  ```
53
57
 
@@ -62,10 +66,14 @@ Configure time format using a strftime format string. [foragoodstrftime](http://
62
66
  I don't recommend coloring by severity because it's not very useful. To color by severity instead of the default of namespace:
63
67
 
64
68
  ``` ruby
65
- Itslog.configure do |config|
66
- config.color_by :severity
67
- # debug, info, warning, error, fatal, unknown
68
- config.severity_colors = ["\e[36m","\e[32m","\e[33m","\e[31m","\e[31m","\e[37m"]
69
+ if Rails.env.development? || Rails.env.test?
70
+
71
+ Itslog.configure do |config|
72
+ config.color_by :severity
73
+ # debug, info, warning, error, fatal, unknown
74
+ config.severity_colors = ["\e[36m","\e[32m","\e[33m","\e[31m","\e[31m","\e[37m"]
75
+ end
76
+
69
77
  end
70
78
  ```
71
79
 
@@ -1,3 +1,3 @@
1
1
  module Itslog
2
- VERSION = '0.6.0'
2
+ VERSION = '0.6.1'
3
3
  end
metadata CHANGED
@@ -1,32 +1,23 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: itslog
3
- version: !ruby/object:Gem::Version
4
- hash: 7
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.1
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 6
9
- - 0
10
- version: 0.6.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - John Thomas Marino
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-08-16 00:00:00 Z
12
+ date: 2011-09-29 00:00:00.000000000Z
19
13
  dependencies: []
20
-
21
- description: "\n `itslog` is a log formatter designed to aid rails 3 development.\n "
14
+ description: ! "\n `itslog` is a log formatter designed to aid rails 3 development.\n
15
+ \ "
22
16
  email: writejm@gmail.com
23
17
  executables: []
24
-
25
18
  extensions: []
26
-
27
19
  extra_rdoc_files: []
28
-
29
- files:
20
+ files:
30
21
  - README.md
31
22
  - Rakefile
32
23
  - LICENSE
@@ -36,43 +27,32 @@ files:
36
27
  - lib/itslog/version.rb
37
28
  - lib/itslog.rb
38
29
  - test/fixtures/article.rb
39
- - test/fixtures/itslog.sqlite3
40
30
  - test/fixtures/log.txt
41
31
  - test/fixtures/schema.rb
42
32
  - test/helper.rb
43
33
  - test/itslog_test.rb
44
- homepage: http://github.com/johmas/itslog
34
+ homepage: http://github.com/johnnytommy/itslog
45
35
  licenses: []
46
-
47
36
  post_install_message:
48
37
  rdoc_options: []
49
-
50
- require_paths:
38
+ require_paths:
51
39
  - lib
52
- required_ruby_version: !ruby/object:Gem::Requirement
40
+ required_ruby_version: !ruby/object:Gem::Requirement
53
41
  none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- hash: 3
58
- segments:
59
- - 0
60
- version: "0"
61
- required_rubygems_version: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ required_rubygems_version: !ruby/object:Gem::Requirement
62
47
  none: false
63
- requirements:
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- hash: 3
67
- segments:
68
- - 0
69
- version: "0"
48
+ requirements:
49
+ - - ! '>='
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
70
52
  requirements: []
71
-
72
53
  rubyforge_project: itslog
73
54
  rubygems_version: 1.8.6
74
55
  signing_key:
75
56
  specification_version: 3
76
57
  summary: itslog makes logs more useful for rails 3 development.
77
58
  test_files: []
78
-
Binary file