sidetiq 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -6
- data/lib/sidetiq/actor.rb +0 -15
- data/lib/sidetiq/version.rb +1 -1
- data/sidetiq.gemspec +3 -3
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 677e4b065e4e98272d7fc0c4521d9bc8b0228221
|
4
|
+
data.tar.gz: 6f852dc2c1895f159ce90f5d4b6336deae2c6edd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4730133117aadd2054026b7805c509d7d57f5cae690a7ae5f361b0da37d3893e8ea74b313547349e578d926c6881e112b1e53c9a470b00d5837b901909b718a
|
7
|
+
data.tar.gz: d574a8433ae34f51b8b8cf59fe29cd5372878339b2e86d9185039888b158f4c168ce5f8e03d12653c599ae60f793d2db3c788484d93dfa7b6876743cb8fdca1b
|
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
![Sidetiq](http://f.cl.ly/items/1W3k0R2V2x3n3S1t1M0B/sidetiq.png)
|
2
2
|
=========
|
3
3
|
|
4
|
-
[![Build Status](https://travis-ci.org/
|
5
|
-
[![Dependency Status](https://gemnasium.com/
|
6
|
-
[![Coverage Status](https://coveralls.io/repos/
|
7
|
-
[![Code Climate](https://codeclimate.com/github/
|
4
|
+
[![Build Status](https://travis-ci.org/endofunky/sidetiq.png)](https://travis-ci.org/endofunky/sidetiq)
|
5
|
+
[![Dependency Status](https://gemnasium.com/endofunky/sidetiq.png)](https://gemnasium.com/endofunky/sidetiq)
|
6
|
+
[![Coverage Status](https://coveralls.io/repos/endofunky/sidetiq/badge.png)](https://coveralls.io/r/endofunky/sidetiq)
|
7
|
+
[![Code Climate](https://codeclimate.com/github/endofunky/sidetiq.png)](https://codeclimate.com/github/endofunky/sidetiq)
|
8
8
|
|
9
9
|
Recurring jobs for [Sidekiq](http://mperham.github.com/sidekiq/).
|
10
10
|
|
@@ -26,7 +26,7 @@ Sidetiq provides a simple API for defining recurring workers for Sidekiq.
|
|
26
26
|
Usage
|
27
27
|
-----
|
28
28
|
|
29
|
-
Please see the [Sidetiq wiki](http://github.com/
|
29
|
+
Please see the [Sidetiq wiki](http://github.com/endofunky/sidetiq/wiki) for more detailed
|
30
30
|
documentation and usage notes.
|
31
31
|
|
32
32
|
License
|
@@ -37,5 +37,5 @@ Sidetiq is released under the 3-clause BSD. See LICENSE for further details.
|
|
37
37
|
Author
|
38
38
|
------
|
39
39
|
|
40
|
-
Tobias Svensson, [@
|
40
|
+
Tobias Svensson, [@endofunky](https://twitter.com/endofunky), [http://github.com/endofunky](http://github.com/endofunky)
|
41
41
|
|
data/lib/sidetiq/actor.rb
CHANGED
@@ -7,15 +7,7 @@ module Sidetiq
|
|
7
7
|
|
8
8
|
def initialize(*args, &block)
|
9
9
|
log_call "initialize"
|
10
|
-
|
11
10
|
super
|
12
|
-
|
13
|
-
# Link to Sidekiq::Manager when running in server-mode. In most
|
14
|
-
# cases the supervisor is booted before Sidekiq has launched
|
15
|
-
# fully, so defer this.
|
16
|
-
if Sidekiq.server?
|
17
|
-
after(0.1) { link_to_sidekiq_manager }
|
18
|
-
end
|
19
11
|
end
|
20
12
|
|
21
13
|
private
|
@@ -24,13 +16,6 @@ module Sidetiq
|
|
24
16
|
log_call "shutting down ..."
|
25
17
|
end
|
26
18
|
|
27
|
-
def link_to_sidekiq_manager
|
28
|
-
Sidekiq::CLI.instance.launcher.manager.link(current_actor)
|
29
|
-
rescue NoMethodError
|
30
|
-
debug "Can't link #{self.class.name}. Sidekiq::Manager not running. Retrying in 5 seconds ..."
|
31
|
-
after(5) { link_to_sidekiq_manager }
|
32
|
-
end
|
33
|
-
|
34
19
|
def log_call(call)
|
35
20
|
info "#{self.class.name} id: #{object_id} #{call}"
|
36
21
|
end
|
data/lib/sidetiq/version.rb
CHANGED
data/sidetiq.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
|
|
10
10
|
gem.email = ["tob@tobiassvensson.co.uk"]
|
11
11
|
gem.description = "Recurring jobs for Sidekiq"
|
12
12
|
gem.summary = gem.description
|
13
|
-
gem.homepage = "http://github.com/
|
13
|
+
gem.homepage = "http://github.com/endofunky/sidetiq"
|
14
14
|
gem.license = "3-clause BSD"
|
15
15
|
|
16
16
|
gem.files = `git ls-files`.split($/)
|
@@ -19,9 +19,9 @@ Gem::Specification.new do |gem|
|
|
19
19
|
gem.require_paths = ["lib"]
|
20
20
|
gem.extensions = []
|
21
21
|
|
22
|
-
gem.add_dependency 'sidekiq', '>= 4.
|
22
|
+
gem.add_dependency 'sidekiq', '>= 4.1.0'
|
23
23
|
gem.add_dependency 'celluloid', '>= 0.17.3'
|
24
|
-
gem.add_dependency 'ice_cube', '~> 0.
|
24
|
+
gem.add_dependency 'ice_cube', '~> 0.14.0'
|
25
25
|
|
26
26
|
gem.add_development_dependency 'rake'
|
27
27
|
gem.add_development_dependency 'sinatra'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidetiq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Svensson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sidekiq
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.
|
19
|
+
version: 4.1.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.
|
26
|
+
version: 4.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: celluloid
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.14.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.14.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -203,7 +203,7 @@ files:
|
|
203
203
|
- test/test_version.rb
|
204
204
|
- test/test_web.rb
|
205
205
|
- test/test_worker.rb
|
206
|
-
homepage: http://github.com/
|
206
|
+
homepage: http://github.com/endofunky/sidetiq
|
207
207
|
licenses:
|
208
208
|
- 3-clause BSD
|
209
209
|
metadata: {}
|
@@ -248,4 +248,3 @@ test_files:
|
|
248
248
|
- test/test_version.rb
|
249
249
|
- test/test_web.rb
|
250
250
|
- test/test_worker.rb
|
251
|
-
has_rdoc:
|