guard-shell 0.4.0 → 0.5.0

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.
Files changed (3) hide show
  1. data/Readme.md +1 -1
  2. data/lib/guard/shell.rb +3 -3
  3. metadata +11 -7
data/Readme.md CHANGED
@@ -94,7 +94,7 @@ end
94
94
  ``` ruby
95
95
  guard :shell do
96
96
  watch /.*\.rb$/ do |m|
97
- if system('ruby -c #{m[0]}')
97
+ if system("ruby -c #{m[0]}")
98
98
  n "#{m[0]} is correct", 'Ruby Syntax', :success
99
99
  else
100
100
  n "#{m[0]} is incorrect", 'Ruby Syntax', :failed
data/lib/guard/shell.rb CHANGED
@@ -5,7 +5,7 @@ require 'guard/watcher'
5
5
  module Guard
6
6
  class Shell < Guard
7
7
 
8
- VERSION = '0.4.0'
8
+ VERSION = '0.5.0'
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_change(Watcher.match_files(self, Dir.glob('{,**/}*{,.*}').uniq))
17
+ run_on_changes(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_change(res)
21
+ def run_on_changes(res)
22
22
  puts res if res
23
23
  end
24
24
 
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.4.0
4
+ version: 0.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,19 +9,24 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-09 00:00:00.000000000 Z
12
+ date: 2012-06-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
16
- requirement: &2156563560 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.2.0
21
+ version: 1.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2156563560
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 1.1.0
25
30
  description: ! " Guard::Shell automatically runs shell commands when watched files
26
31
  are\n modified.\n"
27
32
  email: m@hawx.me
@@ -53,9 +58,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
53
58
  version: '0'
54
59
  requirements: []
55
60
  rubyforge_project:
56
- rubygems_version: 1.8.11
61
+ rubygems_version: 1.8.23
57
62
  signing_key:
58
63
  specification_version: 3
59
64
  summary: Guard gem for running shell commands
60
65
  test_files: []
61
- has_rdoc: