resque-analytics 0.7.3 → 0.7.4
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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/resque/plugins/analytics.rb +3 -0
- data/resque-analytics-0.7.3.gem +0 -0
- data/resque-analytics.gemspec +4 -3
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2cfceccd8cf57e2e6d42125064879b4c91c13457
|
4
|
+
data.tar.gz: c95b5e2b4d194882eb9401cd78fc22e1911f1b1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1d59eae9628a40b7143608cf9d333f62922a23214b19c40897efb3c2c4f5ae0fb86489fdf7c98434bbdbbee5e2dcc6fde4b7aa480af455dc7c614ec0ed0f8ac
|
7
|
+
data.tar.gz: 5c55d37ba2603f49fe4125acd39368a9da0dbc1e6c42935abbc009ca2f0c5be9a57a390a2d0ca0fe23cb93ba907f667e1bc8ae74f27cdce718a7cbf7e9a28d7f
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.4
|
@@ -3,11 +3,14 @@ require 'resque'
|
|
3
3
|
module Resque
|
4
4
|
# Override Resque's push method to add a timestemp to each enqueued item
|
5
5
|
def push(queue, item)
|
6
|
+
tries ||= 3
|
6
7
|
item['analytics_timestamp'] = Time.now if item.is_a?(Hash) && !Resque::Plugins::Analytics.ignore_classes.include?(item[:class])
|
7
8
|
redis.pipelined do
|
8
9
|
watch_queue(queue)
|
9
10
|
redis.rpush "queue:#{queue}", encode(item)
|
10
11
|
end
|
12
|
+
rescue Redis::TimeoutError, Redis::CannotConnectError
|
13
|
+
retry if (tries -= 1).nonzero?
|
11
14
|
end
|
12
15
|
|
13
16
|
class Job
|
Binary file
|
data/resque-analytics.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: resque-analytics 0.7.
|
5
|
+
# stub: resque-analytics 0.7.4 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "resque-analytics"
|
9
|
-
s.version = "0.7.
|
9
|
+
s.version = "0.7.4"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Nir Tzur"]
|
14
|
-
s.date = "2017-01-
|
14
|
+
s.date = "2017-01-18"
|
15
15
|
s.description = "Shows Resque jobs key performance indciators over time"
|
16
16
|
s.email = "nir.tzur@samanage.com"
|
17
17
|
s.extra_rdoc_files = [
|
@@ -31,6 +31,7 @@ Gem::Specification.new do |s|
|
|
31
31
|
"lib/resque-analytics/server.rb",
|
32
32
|
"lib/resque-analytics/server/views/analytics.erb",
|
33
33
|
"lib/resque/plugins/analytics.rb",
|
34
|
+
"resque-analytics-0.7.3.gem",
|
34
35
|
"resque-analytics.gemspec"
|
35
36
|
]
|
36
37
|
s.homepage = "http://github.com/nirtzur/resque-analytics"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque-analytics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nir Tzur
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: resque
|
@@ -100,6 +100,7 @@ files:
|
|
100
100
|
- lib/resque-analytics/server.rb
|
101
101
|
- lib/resque-analytics/server/views/analytics.erb
|
102
102
|
- lib/resque/plugins/analytics.rb
|
103
|
+
- resque-analytics-0.7.3.gem
|
103
104
|
- resque-analytics.gemspec
|
104
105
|
homepage: http://github.com/nirtzur/resque-analytics
|
105
106
|
licenses:
|