guard-shell 0.5.1 → 0.5.2

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.
@@ -5,7 +5,7 @@ require 'guard/watcher'
5
5
  module Guard
6
6
  class Shell < Guard
7
7
 
8
- VERSION = '0.5.1'
8
+ VERSION = '0.5.2'
9
9
 
10
10
  # Calls #run_all if the :all_on_start option is present.
11
11
  def start
@@ -14,11 +14,11 @@ module Guard
14
14
 
15
15
  # Call #run_on_change for all files which match this guard.
16
16
  def run_all
17
- run_on_changes(Watcher.match_files(self, Dir.glob('{,**/}*{,.*}').uniq))
17
+ run_on_modifications(Watcher.match_files(self, Dir.glob('{,**/}*{,.*}').uniq))
18
18
  end
19
19
 
20
20
  # Print the result of the command(s), if there are results to be printed.
21
- def run_on_changes(res)
21
+ def run_on_modifications(res)
22
22
  puts res if res
23
23
  end
24
24
 
@@ -1,6 +1,6 @@
1
1
  # Add files and commands to this file, like the example:
2
2
  # watch(%r{file/path}) { `command(s)` }
3
3
  #
4
- guard 'shell' do
4
+ guard :shell do
5
5
  watch(/(.*).txt/) {|m| `tail #{m[0]}` }
6
- end
6
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-shell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-06 00:00:00.000000000 Z
12
+ date: 2013-11-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
@@ -63,3 +63,4 @@ signing_key:
63
63
  specification_version: 3
64
64
  summary: Guard gem for running shell commands
65
65
  test_files: []
66
+ has_rdoc: