marginalia-resque 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -2
- data/lib/marginalia-resque.rb +1 -1
- data/lib/marginalia-resque/version.rb +1 -1
- metadata +17 -8
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Marginalia::Resque
|
2
2
|
|
3
|
-
Marginalia-Resque is an addition to Marginalia
|
4
|
-
notes for queries generated from Resque jobs. This is useful because
|
3
|
+
Marginalia-Resque is an addition to [Marginalia](http://github.com/37signals/marginalia)
|
4
|
+
that adds useful margin notes for queries generated from Resque jobs. This is useful because
|
5
5
|
marginalia only annotates queries generated from web requests.
|
6
6
|
|
7
7
|
## Installation
|
data/lib/marginalia-resque.rb
CHANGED
@@ -13,7 +13,7 @@ module Marginalia::Resque
|
|
13
13
|
params = params[0]
|
14
14
|
end
|
15
15
|
Marginalia::Resque.previous_comment = Marginalia::Comment.comment
|
16
|
-
Marginalia::Comment.comment = "job:#{job_klass.name},params:#{params.to_json}"
|
16
|
+
Marginalia::Comment.comment = "job:#{job_klass.name},params:#{params.to_json[0,100]}"
|
17
17
|
end
|
18
18
|
|
19
19
|
def self.clear_after_job!
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: marginalia-resque
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05
|
12
|
+
date: 2012-10-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: marginalia
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,15 @@ dependencies:
|
|
21
21
|
version: 1.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 1.1.0
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: resque
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ! '>='
|
@@ -32,7 +37,12 @@ dependencies:
|
|
32
37
|
version: '0'
|
33
38
|
type: :runtime
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
36
46
|
description: Extends Marginaila to log Job class names and parameters when running
|
37
47
|
queries from a Resque job.
|
38
48
|
email:
|
@@ -69,9 +79,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
79
|
version: '0'
|
70
80
|
requirements: []
|
71
81
|
rubyforge_project:
|
72
|
-
rubygems_version: 1.8.
|
82
|
+
rubygems_version: 1.8.23
|
73
83
|
signing_key:
|
74
84
|
specification_version: 3
|
75
85
|
summary: Extends Marginalia to report on Resque jobs
|
76
86
|
test_files: []
|
77
|
-
has_rdoc:
|