rack-rails-logger 1.0.2 → 1.0.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.
data/CHANGES.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # rack-rails-logger CHANGES
2
2
 
3
+ ## rack-rails-logger 1.0.3 -- 2012-08-14
4
+
5
+ * Only redirect loggers if env['rack.logger'] is set.
6
+ It seems most of the servers are not conforming this spec,
7
+ missing logger.
8
+
3
9
  ## rack-rails-logger 1.0.2 -- 2011-09-01
4
10
 
5
11
  * fix gemspec
@@ -14,6 +14,8 @@ class Rack::RailsLogger
14
14
  end
15
15
 
16
16
  def racklogger env, *mods
17
- mods.each{ |mod| mod.send(:logger=, env['rack.logger']) }
17
+ if logger = env['rack.logger']
18
+ mods.each{ |mod| mod.send(:logger=, logger) }
19
+ end
18
20
  end
19
21
  end
@@ -1,5 +1,5 @@
1
1
 
2
2
  module Rack; end
3
3
  class Rack::RailsLogger
4
- VERSION = '1.0.2'
4
+ VERSION = '1.0.3'
5
5
  end
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "rack-rails-logger"
5
- s.version = "1.0.2"
5
+ s.version = "1.0.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Lin Jen-Shin (godfat)"]
9
- s.date = "2011-09-01"
9
+ s.date = "2012-08-14"
10
10
  s.description = "Tell Rails to respect `env['rack.logger']`\n\nAfter installing this middleware, any Rails logs would be redirected to\n`env['rack.logger']`."
11
11
  s.email = ["godfat (XD) godfat.org"]
12
12
  s.files = [
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
  "task/gemgem.rb"]
23
23
  s.homepage = "https://github.com/godfat/rack-rails-logger"
24
24
  s.require_paths = ["lib"]
25
- s.rubygems_version = "1.8.10"
25
+ s.rubygems_version = "1.8.24"
26
26
  s.summary = "Tell Rails to respect `env['rack.logger']`"
27
27
 
28
28
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-rails-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
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: 2011-09-01 00:00:00.000000000Z
12
+ date: 2012-08-14 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! 'Tell Rails to respect `env[''rack.logger'']`
15
15
 
@@ -53,8 +53,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
53
53
  version: '0'
54
54
  requirements: []
55
55
  rubyforge_project:
56
- rubygems_version: 1.8.10
56
+ rubygems_version: 1.8.24
57
57
  signing_key:
58
58
  specification_version: 3
59
59
  summary: Tell Rails to respect `env['rack.logger']`
60
60
  test_files: []
61
+ has_rdoc: