httplog 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,11 +1,11 @@
1
- = HttpLog
1
+ = httplog
2
2
 
3
3
  Log outgoing HTTP requests made from your application.
4
4
 
5
5
  == Installation
6
6
 
7
- Not yet on rubygems, so get if from here please.
8
-
7
+ gem install httplog
8
+
9
9
  == Usage
10
10
 
11
11
  require 'httplog'
@@ -22,5 +22,11 @@ You can override the following default options:
22
22
  HttpLog.options[:log_request] = true
23
23
  HttpLog.options[:log_data] = true
24
24
 
25
+ So if you want to use this in a Rails app:
26
+
27
+ # file: config/initializers/httplog.rb
28
+
29
+ HttpLog.options[:logger] = Rails.logger
30
+
25
31
 
26
32
 
@@ -32,7 +32,7 @@ module Net
32
32
  end
33
33
 
34
34
  if req.request_body_permitted? && HttpLog.options[:log_data]
35
- HttpLog::log("Data: #{req.body}")
35
+ HttpLog::log("Data: #{body}")
36
36
  end
37
37
 
38
38
  orig_request(req, body, &block)
@@ -1,3 +1,3 @@
1
1
  module HttpLog
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: httplog
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3
5
+ version: 0.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Thilo Rusche
@@ -56,7 +56,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
56
56
  requirements:
57
57
  - - ">="
58
58
  - !ruby/object:Gem::Version
59
- hash: 102058995
59
+ hash: -1001317091
60
60
  segments:
61
61
  - 0
62
62
  version: "0"