guard-sidekiq 0.0.8 → 0.0.9

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.
@@ -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
 
@@ -1,3 +1,11 @@
1
+ ## 0.0.9
2
+
3
+ * Add `require` option.
4
+
5
+ ## 0.0.8
6
+
7
+ * Change default stop signal to be TERM.
8
+
1
9
  ## 0.0.7
2
10
 
3
11
  * Add option for specifying a config file.
@@ -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
@@ -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(' ')
@@ -2,7 +2,7 @@ module Guard
2
2
  module SidekiqVersion
3
3
  MAJOR = 0 # api
4
4
  MINOR = 0 # features
5
- PATCH = 8 # bug fixes
5
+ PATCH = 9 # bug fixes
6
6
  BUILD = nil # beta, rc1, etc
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
@@ -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.8
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-09-04 00:00:00.000000000 Z
13
+ date: 2012-10-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: guard