guard-delayed 0.3.3 → 0.3.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36c58b0947c8bb77b6f8372f8d48e5d6d4114742
4
- data.tar.gz: 01b3e16aa568fef1ff65cc48eeaf3b0e8de85e12
3
+ metadata.gz: de18c5fa2e742ce2a5999792dd27e99936a0c8e9
4
+ data.tar.gz: a18d1a955b1cabb067ce31165bc1ed99a68af4be
5
5
  SHA512:
6
- metadata.gz: 24fab6ac32c58bf12efcad2d414c016dfa25e8f25be13ae79e1ada3c9b5361192911e316a56375554c644f40b49cbb81634b827a780140625b691617e8910fc8
7
- data.tar.gz: 7ae01c8dbf6ff8e93ee0b6ae6591c96cc690475804117aafc68183e2a1066414ed5e79309d531466746ff927965e67477e5eaecfaba243459d0130ece4449b03
6
+ metadata.gz: d5d36f99ee0a95892a7987a0d1cf2e1aec9b09b4a595eadb17feec27b4a49d9050a75d72eae166e38b71f7948bed0c423527ea8370524f924d5920a368e09871
7
+ data.tar.gz: e1798523bd903cc6b58ebaf927b32b02b67006c31060b02f7bd2692b961ee98219e14ea2a05a9b9009f3e8409799c7f5b1358fc5ba108ec5dce0161b80f0d06e
@@ -1,3 +1,8 @@
1
+ ## 0.3.4 (2016-01-28)
2
+
3
+ * Merged PR from @ViZH that allows the executable dir to be configured, but uses `bin` instead of `script` by default.
4
+ * Added notes about optional parameters that can be passed to delayed_job.
5
+
1
6
  ## 0.3.3 (2015-06-26)
2
7
 
3
8
  * Loosened `guard` version dependency to be >= 3
@@ -26,6 +26,24 @@ I suggest you put the delayed guard definition *before* your test/rspec guard if
26
26
  watch(%r{^app/(.+)\.rb})
27
27
  end
28
28
 
29
+ ## Options
30
+
31
+ Allowable options are:
32
+
33
+ ```
34
+ :environment defaults to 'test'
35
+ :min_priority e.g. 2
36
+ :max_priority e.g. 10
37
+ :number_of_workers e.g. 2
38
+ :pid_dir e.g. tmp/pids Specifies an alternate directory in which to store the process ids.
39
+ :identifier A numeric identifier for the worker.
40
+ :monitor Start monitor process.
41
+ :sleep-delay N Amount of time to sleep in seconds when no jobs are found
42
+ :prefix NAME String to be prefixed to worker process names
43
+ :root directory to find the executable. Defaults to ''
44
+ :command Command to execute. Default to 'bin/delayed_job'
45
+ ```
46
+
29
47
  ## Development
30
48
 
31
49
  * Source hosted at [GitHub](http://github.com/suranyami/guard-delayed)
@@ -44,11 +62,11 @@ Please create a topic branch for every separate change you make.
44
62
 
45
63
  * Push to rubygems.org:
46
64
 
47
- gem push guard-delayed-0.3.3.gem
65
+ gem push guard-delayed-0.3.5.gem
48
66
 
49
67
  ## Testing the gem locally
50
68
 
51
- gem install guard-delayed-0.3.3.gem
69
+ gem install guard-delayed-0.3.5.gem
52
70
 
53
71
 
54
72
  ## Authors
@@ -13,10 +13,13 @@ module Guard
13
13
  # :monitor Start monitor process.
14
14
  # :sleep-delay N Amount of time to sleep in seconds when no jobs are found
15
15
  # :prefix NAME String to be prefixed to worker process names
16
+ # :root directory to find the executable. Defaults to ''
17
+ # :command Command to execute. Default to 'bin/delayed_job'
16
18
 
17
19
  def initialize(options = {})
18
20
  super
19
21
  @options = options
22
+ @options[:command] = 'bin/delayed_job' unless @options[:command]
20
23
  end
21
24
 
22
25
  def start
@@ -62,8 +65,8 @@ module Guard
62
65
  end
63
66
 
64
67
  def cmd
65
- command = "script/delayed_job"
66
- command = "#{@options[:root]}/script/delayed_job" if @options[:root]
68
+ command = @options[:command]
69
+ command = "#{@options[:root]}/#{command}" if @options[:root]
67
70
  command = "export RAILS_ENV=#{@options[:environment]}; #{command}" if @options[:environment]
68
71
  command
69
72
  end
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module DelayedVersion
3
- VERSION = "0.3.3"
3
+ VERSION = "0.3.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-delayed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Parry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-26 00:00:00.000000000 Z
11
+ date: 2016-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  version: '2.2'
151
151
  requirements: []
152
152
  rubyforge_project: guard-delayed
153
- rubygems_version: 2.4.8
153
+ rubygems_version: 2.2.2
154
154
  signing_key:
155
155
  specification_version: 4
156
156
  summary: guard gem for delayed_job