grizzled-rails-logger 0.1.2 → 0.1.3

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.
@@ -1,5 +1,14 @@
1
1
  # Change Log
2
2
 
3
+ Version 0.1.3
4
+
5
+ Now works with Ruby 1.8.7, as well as Ruby 1.9. Addresses [Issue 1][issue1].
6
+ (Still requires Rails 3, however.)
7
+
8
+ [issue1]: https://github.com/bmc/grizzled-rails-logger/issues/1
9
+
10
+ ---
11
+
3
12
  Version 0.1.2
4
13
 
5
14
  Backtrace dump now includes message that's in the exception.
data/README.md CHANGED
@@ -12,7 +12,7 @@ capabilities, including:
12
12
  * The ability to include the PID in each message.
13
13
  * The ability to flatten the log output, removing spurious newlines, so that
14
14
  each message occupies only one line.
15
- * An `exception` message that dumps an exception backtrace to the log
15
+ * An`exception` message that dumps an exception backtrace to the log
16
16
 
17
17
  # Installation for Rails 3
18
18
 
@@ -24,6 +24,11 @@ If you want the development version of the gem, use:
24
24
 
25
25
  gem 'grizzled-rails-logger', :git => 'git://github.com/bmc/grizzled-rails-logger.git'
26
26
 
27
+ # Caveats
28
+
29
+ This gem currently only works with Ruby 1.9. If there's a big enough hue and
30
+ cry, I'll patch it to work with Ruby 1.8.7, but I'd rather not.
31
+
27
32
  # Documentation
28
33
 
29
34
  Complete documentation for this software is available on the
@@ -1,8 +1,8 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'grizzled-rails-logger'
4
- s.version = '0.1.2'
5
- s.date = '2012-04-21'
4
+ s.version = '0.1.3'
5
+ s.date = '2012-05-05'
6
6
  s.summary = 'A custom Rails 3 logger'
7
7
  s.authors = ['Brian M. Clapper']
8
8
  s.license = 'BSD'
@@ -17,18 +17,18 @@ module Grizzled # :nodoc:
17
17
 
18
18
  # Configuration constants
19
19
  Configuration = OpenStruct.new(
20
- flatten: true,
21
- flatten_patterns: [
20
+ :format => '[%T] (%S) %P %M',
21
+ :timeformat => '%Y/%m/%d %H:%M:%S',
22
+ :colorize => true,
23
+ :flatten => true,
24
+ :flatten_patterns => [
22
25
  /.*/
23
26
  ],
24
- format: '[%T] (%S) %P %M',
25
- timeformat: '%Y/%m/%d %H:%M:%S',
26
- colorize: true,
27
- colors: {
28
- debug: Term::ANSIColor.cyan,
29
- warn: Term::ANSIColor.yellow + Term::ANSIColor.bold,
30
- fatal: Term::ANSIColor.red + Term::ANSIColor.bold,
31
- error: Term::ANSIColor.red
27
+ :colors => {
28
+ :debug => Term::ANSIColor.cyan,
29
+ :warn => Term::ANSIColor.yellow + Term::ANSIColor.bold,
30
+ :fatal => Term::ANSIColor.red + Term::ANSIColor.bold,
31
+ :error => Term::ANSIColor.red
32
32
  }
33
33
  )
34
34
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grizzled-rails-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-21 00:00:00.000000000 Z
12
+ date: 2012-05-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: term-ansicolor
16
- requirement: &21348540 !ruby/object:Gem::Requirement
16
+ requirement: &14874580 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 1.0.7
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *21348540
24
+ version_requirements: *14874580
25
25
  description: ! 'A custom Rails 3 logger
26
26
 
27
27
  '