guard-sidekiq 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +6 -4
- data/CHANGELOG.md +8 -0
- data/README.markdown +3 -0
- data/lib/guard/sidekiq.rb +2 -0
- data/lib/guard/sidekiq/version.rb +1 -1
- data/spec/guard/sidekiq_spec.rb +5 -0
- metadata +2 -2
data/.travis.yml
CHANGED
@@ -1,12 +1,14 @@
|
|
1
|
+
language: ruby
|
2
|
+
matrix:
|
3
|
+
allow_failures:
|
4
|
+
- rvm: ruby-head
|
5
|
+
- rvm: jruby-head
|
6
|
+
|
1
7
|
rvm:
|
2
|
-
- 1.8.7
|
3
8
|
- 1.9.2
|
4
9
|
- 1.9.3
|
5
|
-
- jruby-18mode # JRuby in 1.8 mode
|
6
10
|
- jruby-19mode # JRuby in 1.9 mode
|
7
|
-
- rbx-18mode
|
8
11
|
- rbx-19mode
|
9
|
-
- ree
|
10
12
|
- ruby-head
|
11
13
|
- jruby-head
|
12
14
|
|
data/CHANGELOG.md
CHANGED
data/README.markdown
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# Guard::Sidekiq
|
2
2
|
|
3
|
+
[![Build Status](https://secure.travis-ci.org/uken/guard-sidekiq.png)](http://travis-ci.org/uken/guard-sidekiq)
|
4
|
+
|
3
5
|
Guard::Sidekiq automatically starts/stops/restarts Sidekiq workers
|
4
6
|
|
5
7
|
*forked from [Guard::Resque](https://github.com/guard/guard-resque)*
|
@@ -43,6 +45,7 @@ You can customize the sidekiq task via the following options:
|
|
43
45
|
* `concurrency`: the number of threads to include (defaults to `1`)
|
44
46
|
* `verbose`: whether to use verbose logging (defaults to `nil`)
|
45
47
|
* `stop_signal`: how to kill the process when restarting (defaults to `TERM`)
|
48
|
+
* `require`: location of rails application with workers or file to require (defaults to `nil`)
|
46
49
|
|
47
50
|
|
48
51
|
## Development
|
data/lib/guard/sidekiq.rb
CHANGED
@@ -16,6 +16,7 @@ module Guard
|
|
16
16
|
# - :concurrency, e.g. 20
|
17
17
|
# - :verbose e.g. true
|
18
18
|
# - :stop_signal e.g. :TERM, :QUIT or :SIGQUIT
|
19
|
+
# - :require e.g. ./sidekiq_helper.rb
|
19
20
|
def initialize(watchers = [], options = {})
|
20
21
|
@options = options
|
21
22
|
@pid = nil
|
@@ -87,6 +88,7 @@ module Guard
|
|
87
88
|
command << "--verbose" if @options[:verbose]
|
88
89
|
command << "--environment #{@options[:environment]}" if @options[:environment]
|
89
90
|
command << "--timeout #{@options[:timeout]}" if @options[:timeout]
|
91
|
+
command << "--require #{@options[:require]}" if @options[:require]
|
90
92
|
command << "--concurrency #{@options[:concurrency]}"
|
91
93
|
|
92
94
|
command.join(' ')
|
data/spec/guard/sidekiq_spec.rb
CHANGED
@@ -44,6 +44,11 @@ describe Guard::Sidekiq do
|
|
44
44
|
obj.send(:cmd).should include '--verbose'
|
45
45
|
end
|
46
46
|
|
47
|
+
it 'should accept :require option' do
|
48
|
+
obj = Guard::Sidekiq.new [], :require => './sidekiq_helper.rb'
|
49
|
+
obj.send(:cmd).should include '--require ./sidekiq_helper.rb'
|
50
|
+
end
|
51
|
+
|
47
52
|
it 'should provide default options' do
|
48
53
|
obj = Guard::Sidekiq.new []
|
49
54
|
obj.send(:cmd).should include "--concurrency #{Guard::Sidekiq::DEFAULT_CONCURRENCY}"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-sidekiq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-10-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: guard
|