logworm_amqp 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +5 -0
- data/Rakefile +1 -1
- data/lib/base/db.rb +4 -3
- data/lib/client/rack.rb +1 -1
- data/lib/client/rails.rb +2 -2
- data/logworm_amqp.gemspec +2 -2
- metadata +4 -4
data/CHANGELOG
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
v0.9.3
|
2
|
+
Initial support for Rails 3. Based on Rack.
|
3
|
+
Only include Rails package is Rails < 3.0.0
|
4
|
+
Include Minion inside of Logworm module --otherwise creates conflicts with Rails Logger
|
5
|
+
|
1
6
|
v0.9.2
|
2
7
|
Adds support for attaching extra data to log entries (via log_with_request). The main purpose is to allow users to add their own
|
3
8
|
data to the automatically-generated web_log log.
|
data/Rakefile
CHANGED
data/lib/base/db.rb
CHANGED
@@ -5,14 +5,15 @@ require 'hmac-sha1'
|
|
5
5
|
require 'cgi'
|
6
6
|
require 'base64'
|
7
7
|
|
8
|
-
include Minion
|
9
|
-
logger do |msg|
|
10
|
-
end
|
11
8
|
|
12
9
|
module Logworm
|
13
10
|
class ForbiddenAccessException < Exception ; end
|
14
11
|
class DatabaseException < Exception ; end
|
15
12
|
class InvalidQueryException < Exception ; end
|
13
|
+
|
14
|
+
include Minion
|
15
|
+
Minion::logger do |msg|
|
16
|
+
end
|
16
17
|
|
17
18
|
class DB
|
18
19
|
|
data/lib/client/rack.rb
CHANGED
data/lib/client/rails.rb
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
# By default it will automatically log web requests (in a short format) into web_log
|
5
5
|
# Can also log headers, if specified
|
6
6
|
###
|
7
|
-
if defined?(ActionController)
|
7
|
+
if defined?(ActionController) and Rails::VERSION::STRING and Rails::VERSION::STRING < "3.0.0"
|
8
8
|
|
9
9
|
require 'benchmark'
|
10
10
|
|
@@ -84,7 +84,7 @@ if defined?(ActionController)
|
|
84
84
|
|
85
85
|
begin
|
86
86
|
Timeout::timeout(@@timeout) {
|
87
|
-
|
87
|
+
Logworm::Logger.flush
|
88
88
|
}
|
89
89
|
rescue Exception => e
|
90
90
|
# Ignore --nothing we can do. The list of logs may (and most likely will) be preserved for the next request
|
data/logworm_amqp.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{logworm_amqp}
|
5
|
-
s.version = "0.9.
|
5
|
+
s.version = "0.9.3"
|
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-08-
|
9
|
+
s.date = %q{2010-08-17}
|
10
10
|
s.description = %q{logworm - logging service}
|
11
11
|
s.email = %q{schapira@pomelollc.com}
|
12
12
|
s.executables = ["lw-compute", "lw-tail"]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logworm_amqp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 61
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 3
|
10
|
+
version: 0.9.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Pomelo, LLC
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-08-
|
18
|
+
date: 2010-08-17 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|