http_logger 0.4.1 → 0.4.2
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/VERSION +1 -1
- data/http_logger.gemspec +2 -2
- data/lib/http_logger.rb +2 -2
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.2
|
data/http_logger.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = "http_logger"
|
|
8
|
-
s.version = "0.4.
|
|
8
|
+
s.version = "0.4.2"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Bogdan Gusiev"]
|
|
12
|
-
s.date = "2013-
|
|
12
|
+
s.date = "2013-11-22"
|
|
13
13
|
s.description = "This gem keep an eye on every Net::HTTP library usage and dump all request and response data to the log file"
|
|
14
14
|
s.email = "agresso@gmail.com"
|
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/http_logger.rb
CHANGED
|
@@ -196,12 +196,12 @@ if defined?(Rails)
|
|
|
196
196
|
if !Rails.respond_to?(:application) || (Rails.application && Rails.application.config)
|
|
197
197
|
# Rails2
|
|
198
198
|
Rails.configuration.after_initialize do
|
|
199
|
-
HttpLogger.logger = Rails.logger
|
|
199
|
+
HttpLogger.logger = Rails.logger unless HttpLogger.logger
|
|
200
200
|
end
|
|
201
201
|
elsif defined?(ActiveSupport) && ActiveSupport.respond_to?(:on_load)
|
|
202
202
|
# Rails3
|
|
203
203
|
ActiveSupport.on_load(:after_initialize) do
|
|
204
|
-
HttpLogger.logger = Rails.logger
|
|
204
|
+
HttpLogger.logger = Rails.logger unless HttpLogger.logger
|
|
205
205
|
end
|
|
206
206
|
end
|
|
207
207
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: http_logger
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.2
|
|
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: 2013-
|
|
12
|
+
date: 2013-11-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: debugger
|
|
@@ -129,7 +129,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
129
129
|
version: '0'
|
|
130
130
|
segments:
|
|
131
131
|
- 0
|
|
132
|
-
hash: -
|
|
132
|
+
hash: -2297770745671037589
|
|
133
133
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
134
|
none: false
|
|
135
135
|
requirements:
|