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 CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.0.8 (2011-05-24)
2
+
3
+ * Changed template to include :environment => 'development'
4
+ * Changed name from 'guard-delayed_job' to 'guard-delayed'
5
+ * Fixed options passing
6
+
1
7
  ## 0.0.3 (2011-05-23)
2
8
 
3
9
  * Initial release.
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 your guard definition for delayed_job *before* your tests, if your tests depend on it
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.
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module DelayedVersion
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
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: 17
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Parry