resque-metrics 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -112,7 +112,7 @@ module Resque
112
112
  end
113
113
 
114
114
  def self.set_metric(metric, val)
115
- redis.incrby("_metrics_:#{metric}", val)
115
+ redis.set("_metrics_:#{metric}", val)
116
116
  end
117
117
 
118
118
  def self.get_metric(metric)
@@ -0,0 +1,64 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "resque-metrics"
8
+ s.version = "0.0.2"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Aaron Quint"]
12
+ s.date = "2011-10-06"
13
+ s.description = "A simple Resque plugin that times and saves some simple metrics for Resque jobs back into redis. Based on this system\nyou could build some simple auto-scaling mechanism based on the speed and ETA of queues. Also includes a hook/callback\nmechanism for recording/sending the metrics to your favorite tool (AKA statsd/graphite).\n"
14
+ s.email = "aaron@quirkey.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "LICENSE.txt",
24
+ "README.rdoc",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "lib/resque-metrics.rb",
28
+ "lib/resque/metrics.rb",
29
+ "resque-metrics.gemspec",
30
+ "test/helper.rb",
31
+ "test/redis-test.conf",
32
+ "test/test_resque-metrics.rb"
33
+ ]
34
+ s.homepage = "http://github.com/quirkey/resque-metrics"
35
+ s.licenses = ["MIT"]
36
+ s.require_paths = ["lib"]
37
+ s.rubygems_version = "1.8.10"
38
+ s.summary = "A Resque plugin for recording simple metrics for your jobs"
39
+
40
+ if s.respond_to? :specification_version then
41
+ s.specification_version = 3
42
+
43
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
44
+ s.add_runtime_dependency(%q<resque>, ["~> 1.19"])
45
+ s.add_development_dependency(%q<ruby-debug19>, [">= 0"])
46
+ s.add_development_dependency(%q<minitest>, [">= 2"])
47
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
48
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.2"])
49
+ else
50
+ s.add_dependency(%q<resque>, ["~> 1.19"])
51
+ s.add_dependency(%q<ruby-debug19>, [">= 0"])
52
+ s.add_dependency(%q<minitest>, [">= 2"])
53
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
54
+ s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
55
+ end
56
+ else
57
+ s.add_dependency(%q<resque>, ["~> 1.19"])
58
+ s.add_dependency(%q<ruby-debug19>, [">= 0"])
59
+ s.add_dependency(%q<minitest>, [">= 2"])
60
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
61
+ s.add_dependency(%q<jeweler>, ["~> 1.6.2"])
62
+ end
63
+ end
64
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-metrics
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: 2011-10-05 00:00:00.000000000Z
12
+ date: 2011-10-06 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: resque
16
- requirement: &70326698893780 !ruby/object:Gem::Requirement
16
+ requirement: &70186901120320 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '1.19'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70326698893780
24
+ version_requirements: *70186901120320
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: ruby-debug19
27
- requirement: &70326698892420 !ruby/object:Gem::Requirement
27
+ requirement: &70186901113560 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70326698892420
35
+ version_requirements: *70186901113560
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: minitest
38
- requirement: &70326698883560 !ruby/object:Gem::Requirement
38
+ requirement: &70186901112120 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '2'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70326698883560
46
+ version_requirements: *70186901112120
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
- requirement: &70326698882180 !ruby/object:Gem::Requirement
49
+ requirement: &70186901110860 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.0.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70326698882180
57
+ version_requirements: *70186901110860
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: jeweler
60
- requirement: &70326698880860 !ruby/object:Gem::Requirement
60
+ requirement: &70186901108680 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: 1.6.2
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70326698880860
68
+ version_requirements: *70186901108680
69
69
  description: ! 'A simple Resque plugin that times and saves some simple metrics for
70
70
  Resque jobs back into redis. Based on this system
71
71
 
@@ -91,6 +91,7 @@ files:
91
91
  - VERSION
92
92
  - lib/resque-metrics.rb
93
93
  - lib/resque/metrics.rb
94
+ - resque-metrics.gemspec
94
95
  - test/helper.rb
95
96
  - test/redis-test.conf
96
97
  - test/test_resque-metrics.rb
@@ -109,7 +110,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
109
110
  version: '0'
110
111
  segments:
111
112
  - 0
112
- hash: -2068879796635049629
113
+ hash: 1965452822166595860
113
114
  required_rubygems_version: !ruby/object:Gem::Requirement
114
115
  none: false
115
116
  requirements: