logworm_client 0.7.1 → 0.7.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/CHANGELOG CHANGED
@@ -1,3 +1,11 @@
1
+ v0.7.2
2
+ Renamed Rails and Rack configuration commands:
3
+ lw_disable_request_logging ==> donot_log_requests
4
+ lw_log_request_headers ==> log_headers
5
+ lw_enable_dev_logging ==> log_in_development
6
+
7
+ Renamed :headers field in web_log to :request_headers
8
+
1
9
  v0.7.1
2
10
  lw-tail and lw-compute now receive an optional app parameter, for the cases where you want to call command-line tools from a directory other than the app's directory... or when you have more than one Heroku remote/app from the same directory
3
11
 
data/Rakefile CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'echoe'
2
- Echoe.new('logworm_client', '0.7.1') do |p|
2
+ Echoe.new('logworm_client', '0.7.2') do |p|
3
3
  p.description = "logworm client utilities"
4
4
  p.url = "http://www.logworm.com"
5
5
  p.author = "Pomelo, LLC"
@@ -6,9 +6,9 @@ module Logworm
6
6
  def initialize(app, options = {})
7
7
  @app = app
8
8
 
9
- @log_requests = (options[:disable_request_logging].nil? or options[:disable_request_logging] != true)
10
- @log_headers = (options[:log_request_headers] and options[:log_request_headers] == true)
11
- @dev_logging = (options[:enable_dev_logging] and options[:enable_dev_logging] == true)
9
+ @log_requests = (options[:donot_log_requests].nil? or options[:donot_log_requests] != true)
10
+ @log_headers = (options[:log_headers] and options[:log_headers] == true)
11
+ @dev_logging = (options[:log_in_development] and options[:log_in_development] == true)
12
12
  Logger.use_default_db
13
13
  @timeout = 1
14
14
  end
@@ -43,7 +43,7 @@ module Logworm
43
43
  :response_status => status,
44
44
  :profiling => appTime,
45
45
  :queue_size => queue_size}
46
- entry[:headers] = http_headers if @log_headers
46
+ entry[:request_headers] = http_headers if @log_headers
47
47
  entry[:response_headers] = response_headers if @log_headers
48
48
  Logger.log(:web_log, entry) if @log_requests
49
49
 
@@ -20,7 +20,7 @@ if defined?(ActionController)
20
20
  # Disable automatic logging of requests
21
21
  # Use from ApplicationController
22
22
  ###
23
- def self.lw_disable_request_logging
23
+ def self.donot_log_requests
24
24
  @@log_requests = false
25
25
  end
26
26
 
@@ -28,14 +28,14 @@ if defined?(ActionController)
28
28
  # Log headers with requests
29
29
  # Use from ApplicationController
30
30
  ###
31
- def self.lw_log_request_headers
31
+ def self.log_headers
32
32
  @@log_headers = true
33
33
  end
34
34
 
35
35
  ###
36
36
  # Turn on logging in development mode
37
37
  ###
38
- def self.lw_enable_dev_logging
38
+ def self.log_in_development
39
39
  @@dev_logging = true
40
40
  end
41
41
 
@@ -78,7 +78,7 @@ if defined?(ActionController)
78
78
  :response_status => status,
79
79
  :profiling => appTime,
80
80
  :queue_size => queue_size}
81
- entry[:headers] = http_headers if @@log_headers
81
+ entry[:request_headers] = http_headers if @@log_headers
82
82
  entry[:response_headers] = response.headers if @@log_headers
83
83
  Logworm::Logger.log(:web_log, entry) if @@log_requests
84
84
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{logworm_client}
5
- s.version = "0.7.1"
5
+ s.version = "0.7.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Pomelo, LLC"]
9
- s.date = %q{2010-06-24}
9
+ s.date = %q{2010-06-30}
10
10
  s.description = %q{logworm client utilities}
11
11
  s.email = %q{schapira@pomelollc.com}
12
12
  s.executables = ["lw-compute", "lw-tail"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 1
9
- version: 0.7.1
8
+ - 2
9
+ version: 0.7.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Pomelo, LLC
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-24 00:00:00 -04:00
17
+ date: 2010-06-30 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency