guard-shell 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.md +1 -1
- data/lib/guard/shell.rb +3 -3
- metadata +11 -7
data/Readme.md
CHANGED
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.
|
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
|
-
|
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
|
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
|
+
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-
|
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:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 1.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
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.
|
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:
|