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 CHANGED
@@ -1,7 +1,7 @@
1
1
  # Marginalia::Resque
2
2
 
3
- Marginalia-Resque is an addition to Marginalia that adds useful margin
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
@@ -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!
@@ -1,5 +1,5 @@
1
1
  module Marginalia
2
2
  module Resque
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
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.1
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-02 00:00:00.000000000 Z
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: &70160860781460 !ruby/object:Gem::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: *70160860781460
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: &70160860780940 !ruby/object:Gem::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: *70160860780940
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.11
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: