logging 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.5.3 / 2007-12-08
2
+
3
+ * Fixed the quoting for messages sent to the growl appender
4
+
1
5
  == 0.5.2 / 2007-11-28
2
6
 
3
7
  * Updated the library to work with Ruby 1.9
data/README.txt CHANGED
@@ -29,7 +29,8 @@ logged.
29
29
  logger.debug "this debug message will not be output by the logger"
30
30
  logger.warn "this is your last warning"
31
31
 
32
- In this example, a single logger is crated that will append to STDOUT and to a file. Only log messages that are informational or higher will be logged.
32
+ In this example, a single logger is crated that will append to STDOUT and to a
33
+ file. Only log messages that are informational or higher will be logged.
33
34
 
34
35
  reqruie 'logging'
35
36
 
data/lib/logging.rb CHANGED
@@ -1,4 +1,4 @@
1
- # $Id: logging.rb 56 2007-11-29 04:44:28Z tim_pease $
1
+ # $Id: logging.rb 58 2007-12-05 20:32:54Z tim_pease $
2
2
 
3
3
  require 'logging/repository'
4
4
 
@@ -22,7 +22,7 @@ require 'logging/config/yaml_configurator'
22
22
  #
23
23
  module Logging
24
24
 
25
- VERSION = '0.5.2' # :nodoc:
25
+ VERSION = '0.5.3' # :nodoc:
26
26
 
27
27
  LEVELS = {} # :nodoc:
28
28
  LNAMES = {} # :nodoc:
@@ -1,4 +1,4 @@
1
- # $Id: growl.rb 56 2007-11-29 04:44:28Z tim_pease $
1
+ # $Id: growl.rb 59 2007-12-08 23:35:14Z tim_pease $
2
2
 
3
3
  require 'logging/appender'
4
4
 
@@ -22,7 +22,7 @@ module Appenders
22
22
  def initialize( name, opts = {} )
23
23
  super
24
24
 
25
- @growl = "growlnotify -w -n '#{@name}' -t '%s' -m '%s' -p %d &"
25
+ @growl = "growlnotify -w -n \"#{@name}\" -t \"%s\" -m \"%s\" -p %d &"
26
26
 
27
27
  getopt = ::Logging.options(opts)
28
28
  @coalesce = getopt[:coalesce, false]
@@ -144,6 +144,7 @@ module Appenders
144
144
  # _priority_.
145
145
  #
146
146
  def growl( title, message, priority )
147
+ message.tr!("`", "'")
147
148
  if @coalesce then coalesce(title, message, priority)
148
149
  else system @growl % [title, message, priority] end
149
150
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: logging
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.5.2
7
- date: 2007-11-28 00:00:00 -07:00
6
+ version: 0.5.3
7
+ date: 2007-12-08 00:00:00 -07:00
8
8
  summary: A flexible and extendable logging library for Ruby
9
9
  require_paths:
10
10
  - lib