guard-delayed 0.0.7 → 0.0.8
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.
- data/CHANGELOG.md +6 -0
- data/README.markdown +9 -3
- data/lib/guard/delayed/version.rb +1 -1
- data/lib/guard/delayed.rb +9 -9
- metadata +3 -3
data/CHANGELOG.md
CHANGED
data/README.markdown
CHANGED
@@ -22,13 +22,13 @@ Add guard definition to your Guardfile by running this command:
|
|
22
22
|
|
23
23
|
Please read [Guard usage doc](http://github.com/guard/guard#readme).
|
24
24
|
|
25
|
-
I suggest you put
|
25
|
+
I suggest you put the delayed guard definition *before* your test/rspec guard if your tests depend on it
|
26
26
|
being active.
|
27
27
|
|
28
28
|
## Guardfile
|
29
29
|
|
30
|
-
guard 'delayed' do
|
31
|
-
watch()
|
30
|
+
guard 'delayed', :environment => 'development' do
|
31
|
+
watch(%r{^app/(.+)\.rb})
|
32
32
|
end
|
33
33
|
|
34
34
|
## Development
|
@@ -44,3 +44,9 @@ you make.
|
|
44
44
|
[David Parry](http://github.com/suranyami)
|
45
45
|
|
46
46
|
This gem is based on [Guard::WEBrick](http://github.com/fnichol/guard-webrick).
|
47
|
+
|
48
|
+
## Note
|
49
|
+
|
50
|
+
I originally called this `guard-delayed_job` but had all sorts of unexpected behaviour when trying to build the gem.
|
51
|
+
After much fruitless investigation it appeared that the underscore was the problem, so I renamed it to `guard-delayed`.
|
52
|
+
Anybody else encountered this? Let me know if you have. Thanks in advance.
|
data/lib/guard/delayed.rb
CHANGED
@@ -24,15 +24,15 @@ module Guard
|
|
24
24
|
system('script/delayed_job', 'stop')
|
25
25
|
UI.info "Starting up delayed_job..."
|
26
26
|
args = "start"
|
27
|
-
args << "--environment=#{options[:environment]} " if options[:environment]
|
28
|
-
args << "--min-priority #{options[:min_priority]} " if options[:min_priority]
|
29
|
-
args << "--max-priority #{options[:max_priority]} " if options[:max_priority]
|
30
|
-
args << "--number_of_workers=#{options[:number_of_workers]} " if options[:number_of_workers]
|
31
|
-
args << "--pid-dir=#{options[:pid_dir]} " if options[:pid_dir]
|
32
|
-
args << "--identifier=#{options[:identifier]} " if options[:identifier]
|
33
|
-
args << "--monitor " if options[:monitor]
|
34
|
-
args << "--sleep-delay #{options[:sleep_delay]} " if options[:sleep_delay]
|
35
|
-
args << "--prefix #{options[:prefix]} " if options[:prefix]
|
27
|
+
args << "--environment=#{@options[:environment]} " if @options[:environment]
|
28
|
+
args << "--min-priority #{@options[:min_priority]} " if @options[:min_priority]
|
29
|
+
args << "--max-priority #{@options[:max_priority]} " if @options[:max_priority]
|
30
|
+
args << "--number_of_workers=#{@options[:number_of_workers]} " if @options[:number_of_workers]
|
31
|
+
args << "--pid-dir=#{@options[:pid_dir]} " if @options[:pid_dir]
|
32
|
+
args << "--identifier=#{@options[:identifier]} " if @options[:identifier]
|
33
|
+
args << "--monitor " if @options[:monitor]
|
34
|
+
args << "--sleep-delay #{@options[:sleep_delay]} " if @options[:sleep_delay]
|
35
|
+
args << "--prefix #{@options[:prefix]} " if @options[:prefix]
|
36
36
|
system('script/delayed_job', 'start')
|
37
37
|
end
|
38
38
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-delayed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 8
|
10
|
+
version: 0.0.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Parry
|