sinatra-request-logger 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,5 @@
1
- ---
2
- :major: 0
1
+ ---
3
2
  :minor: 2
4
- :patch: 0
3
+ :patch: 1
4
+ :major: 0
5
+ :build:
@@ -8,18 +8,21 @@ module Sinatra
8
8
 
9
9
  class ProxyLogger
10
10
  def initialize(logger)
11
+ @buffer = StringIO.new("")
11
12
  @logger = logger
12
13
  end
13
14
 
14
15
  def write(msg)
16
+ @buffer.write(msg)
15
17
  @logger.info(msg)
16
18
  end
17
19
 
18
20
  def flush
19
- #nothing
21
+ @buffer.flush
20
22
  end
21
23
 
22
24
  def puts(msg)
25
+ @buffer.puts(msg)
23
26
  if msg.is_a?(Array)
24
27
  @logger.info(msg.map(&:chomp).join("\n"))
25
28
  elsif msg.is_a?(String)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sinatra-request-logger}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Cyril Mougel"]
12
- s.date = %q{2010-05-03}
12
+ s.date = %q{2010-05-10}
13
13
  s.description = %q{Log request and error on Logger send it by settings}
14
14
  s.email = %q{cyril@yeastymobs.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Cyril Mougel
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-03 00:00:00 +02:00
17
+ date: 2010-05-10 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency