sidekiq 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of sidekiq might be problematic. Click here for more details.

data/Changes.md CHANGED
@@ -1,4 +1,4 @@
1
- 0.5.0
1
+ 0.5.1
2
2
  -----------
3
3
 
4
4
  - Initial release!
data/README.md CHANGED
@@ -23,7 +23,7 @@ Requirements
23
23
  -----------------
24
24
 
25
25
  I test on Ruby 1.9.3 and JRuby 1.6.5 in 1.9 mode. Other versions/VMs are
26
- untested.
26
+ untested but I will do my best to support them. Ruby 1.8 is not supported.
27
27
 
28
28
 
29
29
  Installation
@@ -23,9 +23,12 @@ module Sidekiq
23
23
  begin
24
24
  log 'Starting processing, hit Ctrl-C to stop'
25
25
  manager.start!
26
+ # HACK need to determine how to pause main thread while
27
+ # waiting for signals.
26
28
  sleep FOREVER
27
29
  rescue Interrupt
28
- log 'Shutting down...'
30
+ # TODO Need clean shutdown support from Celluloid
31
+ log 'Shutting down, pausing 5 seconds to let workers finish...'
29
32
  manager.stop!
30
33
  manager.wait(:shutdown)
31
34
  end
@@ -7,7 +7,8 @@ module Sidekiq
7
7
  def self.redis
8
8
  @redis ||= begin
9
9
  # autoconfig for Heroku
10
- hash = { :url => ENV['REDISTOGO_URL'] } if ENV['REDISTOGO_URL']
10
+ hash = {}
11
+ hash[:url] = ENV['REDISTOGO_URL'] if ENV['REDISTOGO_URL']
11
12
  Redis.connect(hash)
12
13
  end
13
14
  end
@@ -26,6 +26,7 @@ module Sidekiq
26
26
  @queue_idx = 0
27
27
  @queues_size = @queues.size
28
28
  @redis = Redis.connect(:url => location)
29
+ @done_callback = nil
29
30
 
30
31
  @done = false
31
32
  @busy = []
@@ -54,7 +55,7 @@ module Sidekiq
54
55
  end
55
56
 
56
57
  def processor_done(processor)
57
- @done_callback.call(processor)
58
+ @done_callback.call(processor) if @done_callback
58
59
  @busy.delete(processor)
59
60
  if stopped?
60
61
  processor.terminate
@@ -83,7 +83,7 @@ module Sidekiq
83
83
  def call(*)
84
84
  yield
85
85
  ensure
86
- ActiveRecord::Base.clear_active_connections! if defined?(::ActiveRecord)
86
+ ::ActiveRecord::Base.clear_active_connections! if defined?(::ActiveRecord)
87
87
  end
88
88
  end
89
89
  end
@@ -1,3 +1,3 @@
1
1
  module Sidekiq
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
@@ -1,5 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'rails', '3.2.0'
3
+ gem 'rails', '3.2.1'
4
4
  gem 'sqlite3'
5
- gem 'sidekiq', :path => '..'
5
+ gem 'sidekiq'#, :path => '..'
@@ -1,50 +1,41 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- sidekiq (0.1.0)
5
- celluloid
6
- connection_pool
7
- multi_json
8
- redis
9
-
10
1
  GEM
11
2
  remote: https://rubygems.org/
12
3
  specs:
13
- actionmailer (3.2.0)
14
- actionpack (= 3.2.0)
4
+ actionmailer (3.2.1)
5
+ actionpack (= 3.2.1)
15
6
  mail (~> 2.4.0)
16
- actionpack (3.2.0)
17
- activemodel (= 3.2.0)
18
- activesupport (= 3.2.0)
7
+ actionpack (3.2.1)
8
+ activemodel (= 3.2.1)
9
+ activesupport (= 3.2.1)
19
10
  builder (~> 3.0.0)
20
11
  erubis (~> 2.7.0)
21
- journey (~> 1.0.0)
12
+ journey (~> 1.0.1)
22
13
  rack (~> 1.4.0)
23
14
  rack-cache (~> 1.1)
24
15
  rack-test (~> 0.6.1)
25
16
  sprockets (~> 2.1.2)
26
- activemodel (3.2.0)
27
- activesupport (= 3.2.0)
17
+ activemodel (3.2.1)
18
+ activesupport (= 3.2.1)
28
19
  builder (~> 3.0.0)
29
- activerecord (3.2.0)
30
- activemodel (= 3.2.0)
31
- activesupport (= 3.2.0)
20
+ activerecord (3.2.1)
21
+ activemodel (= 3.2.1)
22
+ activesupport (= 3.2.1)
32
23
  arel (~> 3.0.0)
33
24
  tzinfo (~> 0.3.29)
34
- activeresource (3.2.0)
35
- activemodel (= 3.2.0)
36
- activesupport (= 3.2.0)
37
- activesupport (3.2.0)
25
+ activeresource (3.2.1)
26
+ activemodel (= 3.2.1)
27
+ activesupport (= 3.2.1)
28
+ activesupport (3.2.1)
38
29
  i18n (~> 0.6)
39
30
  multi_json (~> 1.0)
40
31
  arel (3.0.0)
41
32
  builder (3.0.0)
42
- celluloid (0.7.2)
33
+ celluloid (0.8.0)
43
34
  connection_pool (0.1.0)
44
35
  erubis (2.7.0)
45
36
  hike (1.2.1)
46
37
  i18n (0.6.0)
47
- journey (1.0.0)
38
+ journey (1.0.1)
48
39
  json (1.6.5)
49
40
  mail (2.4.1)
50
41
  i18n (>= 0.4.0)
@@ -60,17 +51,17 @@ GEM
60
51
  rack
61
52
  rack-test (0.6.1)
62
53
  rack (>= 1.0)
63
- rails (3.2.0)
64
- actionmailer (= 3.2.0)
65
- actionpack (= 3.2.0)
66
- activerecord (= 3.2.0)
67
- activeresource (= 3.2.0)
68
- activesupport (= 3.2.0)
54
+ rails (3.2.1)
55
+ actionmailer (= 3.2.1)
56
+ actionpack (= 3.2.1)
57
+ activerecord (= 3.2.1)
58
+ activeresource (= 3.2.1)
59
+ activesupport (= 3.2.1)
69
60
  bundler (~> 1.0)
70
- railties (= 3.2.0)
71
- railties (3.2.0)
72
- actionpack (= 3.2.0)
73
- activesupport (= 3.2.0)
61
+ railties (= 3.2.1)
62
+ railties (3.2.1)
63
+ actionpack (= 3.2.1)
64
+ activesupport (= 3.2.1)
74
65
  rack-ssl (~> 1.3.2)
75
66
  rake (>= 0.8.7)
76
67
  rdoc (~> 3.4)
@@ -79,6 +70,11 @@ GEM
79
70
  rdoc (3.12)
80
71
  json (~> 1.4)
81
72
  redis (2.2.2)
73
+ sidekiq (0.5.1)
74
+ celluloid
75
+ connection_pool
76
+ multi_json
77
+ redis
82
78
  sprockets (2.1.2)
83
79
  hike (~> 1.2)
84
80
  rack (~> 1.0)
@@ -95,6 +91,6 @@ PLATFORMS
95
91
  ruby
96
92
 
97
93
  DEPENDENCIES
98
- rails (= 3.2.0)
99
- sidekiq!
94
+ rails (= 3.2.1)
95
+ sidekiq
100
96
  sqlite3
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-02-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: redis
16
- requirement: &70202868236280 !ruby/object:Gem::Requirement
16
+ requirement: &70180457698040 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70202868236280
24
+ version_requirements: *70180457698040
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: connection_pool
27
- requirement: &70202868235720 !ruby/object:Gem::Requirement
27
+ requirement: &70180457697080 !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: :runtime
34
34
  prerelease: false
35
- version_requirements: *70202868235720
35
+ version_requirements: *70180457697080
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: celluloid
38
- requirement: &70202868235160 !ruby/object:Gem::Requirement
38
+ requirement: &70180457696360 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70202868235160
46
+ version_requirements: *70180457696360
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: multi_json
49
- requirement: &70202868234620 !ruby/object:Gem::Requirement
49
+ requirement: &70180457695360 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70202868234620
57
+ version_requirements: *70180457695360
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: minitest
60
- requirement: &70202868234100 !ruby/object:Gem::Requirement
60
+ requirement: &70180457694420 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70202868234100
68
+ version_requirements: *70180457694420
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
- requirement: &70202868233600 !ruby/object:Gem::Requirement
71
+ requirement: &70180457693640 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70202868233600
79
+ version_requirements: *70180457693640
80
80
  description: Simple, efficient message processing for Ruby
81
81
  email:
82
82
  - mperham@gmail.com