guard 0.8.7 → 0.8.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +6 -0
- data/README.md +2 -2
- data/lib/guard.rb +8 -8
- data/lib/guard/version.rb +1 -1
- data/man/guard.1 +8 -5
- data/man/guard.1.html +10 -5
- metadata +18 -14
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -199,8 +199,8 @@ Guard can optionally watch all file modifications like moves or deletions with:
|
|
199
199
|
|
200
200
|
Turn off completely any Guard terminal [interactions](#interactions) with:
|
201
201
|
|
202
|
-
$ guard start -
|
203
|
-
$ guard start --
|
202
|
+
$ guard start -i
|
203
|
+
$ guard start --no-interactions
|
204
204
|
|
205
205
|
An exhaustive list of options is available with:
|
206
206
|
|
data/lib/guard.rb
CHANGED
@@ -29,17 +29,17 @@ module Guard
|
|
29
29
|
# @param [String] guard_name the name of the Guard to initialize
|
30
30
|
#
|
31
31
|
def initialize_template(guard_name = nil)
|
32
|
+
if !File.exist?('Guardfile')
|
33
|
+
::Guard::UI.info "Writing new Guardfile to #{ Dir.pwd }/Guardfile"
|
34
|
+
FileUtils.cp(GUARDFILE_TEMPLATE, 'Guardfile')
|
35
|
+
elsif guard_name.nil?
|
36
|
+
::Guard::UI.error "Guardfile already exists at #{ Dir.pwd }/Guardfile"
|
37
|
+
exit 1
|
38
|
+
end
|
39
|
+
|
32
40
|
if guard_name
|
33
41
|
guard_class = ::Guard.get_guard_class(guard_name)
|
34
42
|
guard_class.init(guard_name)
|
35
|
-
else
|
36
|
-
if !File.exist?('Guardfile')
|
37
|
-
::Guard::UI.info "Writing new Guardfile to #{ Dir.pwd }/Guardfile"
|
38
|
-
FileUtils.cp(GUARDFILE_TEMPLATE, 'Guardfile')
|
39
|
-
else
|
40
|
-
::Guard::UI.error "Guardfile already exists at #{ Dir.pwd }/Guardfile"
|
41
|
-
exit 1
|
42
|
-
end
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
data/lib/guard/version.rb
CHANGED
data/man/guard.1
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
.\" generated with Ronn/v0.7.3
|
2
2
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
3
3
|
.
|
4
|
-
.TH "GUARD" "1" "
|
4
|
+
.TH "GUARD" "1" "October 2011" "" ""
|
5
5
|
.
|
6
6
|
.SH "NAME"
|
7
7
|
\fBguard\fR \- Guard keeps an eye on your file modifications\.
|
@@ -33,15 +33,18 @@ The following options are available:
|
|
33
33
|
\fB\-g\fR, \fB\-\-group\fR \fIGROUP1\fR \fIGROUP2\fR\.\.\. Runs only the groups specified by GROUP1, GROUP2 etc\. Groups name should be separated by spaces\. Guards that don\'t belong to a group are considered global and are always run\.
|
34
34
|
.
|
35
35
|
.P
|
36
|
-
\fB\-w\fR, \fB\-\-watchdir\fR \fIPATH\fR
|
36
|
+
\fB\-w\fR, \fB\-\-watchdir\fR \fIPATH\fR Tells Guard to watch PATH instead of \fB\./\fR\.
|
37
37
|
.
|
38
38
|
.P
|
39
|
-
Tells Guard to
|
39
|
+
\fB\-G\fR, \fB\-\-guardfile\fR \fIFILE\fR Tells Guard to use FILE as its Guardfile instead of \fB\./Guardfile\fR or \fB~/\.Guardfile\fR\.
|
40
40
|
.
|
41
41
|
.P
|
42
|
-
\fB\-
|
42
|
+
\fB\-A\fR, \fB\-\-watch\-all\-modifications\fR Watch all file modifications like moves or deletions with\.
|
43
|
+
.
|
44
|
+
.P
|
45
|
+
\fB\-i\fR, \fB\-\-no\-interactions\fR Turn off completely any Guard terminal interactions\.
|
43
46
|
.
|
44
|
-
.SS "init
|
47
|
+
.SS "init <a href=\"guard\.html\">GUARD</a>"
|
45
48
|
If no Guardfile is present in the current directory, creates an empty Guardfile\.
|
46
49
|
.
|
47
50
|
.P
|
data/man/guard.1.html
CHANGED
@@ -105,14 +105,19 @@
|
|
105
105
|
Groups name should be separated by spaces.
|
106
106
|
Guards that don't belong to a group are considered global and are always run.</p>
|
107
107
|
|
108
|
-
<p><code>-w</code>, <code>--watchdir</code> <var>PATH</var
|
109
|
-
|
110
|
-
<p>Tells Guard to watch PATH instead of <code>./</code>.</p>
|
108
|
+
<p><code>-w</code>, <code>--watchdir</code> <var>PATH</var>
|
109
|
+
Tells Guard to watch PATH instead of <code>./</code>.</p>
|
111
110
|
|
112
111
|
<p><code>-G</code>, <code>--guardfile</code> <var>FILE</var>
|
113
112
|
Tells Guard to use FILE as its Guardfile instead of <code>./Guardfile</code> or <code>~/.Guardfile</code>.</p>
|
114
113
|
|
115
|
-
<
|
114
|
+
<p><code>-A</code>, <code>--watch-all-modifications</code>
|
115
|
+
Watch all file modifications like moves or deletions with.</p>
|
116
|
+
|
117
|
+
<p><code>-i</code>, <code>--no-interactions</code>
|
118
|
+
Turn off completely any Guard terminal interactions.</p>
|
119
|
+
|
120
|
+
<h3 id="init-GUARD">init <a href="guard.html">GUARD</a></h3>
|
116
121
|
|
117
122
|
<p>If no Guardfile is present in the current directory, creates an empty Guardfile.</p>
|
118
123
|
|
@@ -167,7 +172,7 @@ https://github.com/guard/guard/blob/master/CHANGELOG.md</p>
|
|
167
172
|
|
168
173
|
<ol class='man-decor man-foot man foot'>
|
169
174
|
<li class='tl'></li>
|
170
|
-
<li class='tc'>
|
175
|
+
<li class='tc'>October 2011</li>
|
171
176
|
<li class='tr'>guard(1)</li>
|
172
177
|
</ol>
|
173
178
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-10-
|
12
|
+
date: 2011-10-21 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
16
|
-
requirement: &
|
16
|
+
requirement: &2154664540 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.14.6
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2154664540
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: bundler
|
27
|
-
requirement: &
|
27
|
+
requirement: &2154664100 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2154664100
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
38
|
-
requirement: &
|
38
|
+
requirement: &2154663380 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 2.6.0
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2154663380
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: guard-rspec
|
49
|
-
requirement: &
|
49
|
+
requirement: &2154662720 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 0.5.0
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2154662720
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: yard
|
60
|
-
requirement: &
|
60
|
+
requirement: &2154662020 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 0.7.2
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *2154662020
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: kramdown
|
71
|
-
requirement: &
|
71
|
+
requirement: &2154661180 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
@@ -76,7 +76,7 @@ dependencies:
|
|
76
76
|
version: 0.13.3
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *2154661180
|
80
80
|
description: Guard is a command line tool to easily handle events on file system modifications.
|
81
81
|
email:
|
82
82
|
- thibaud@thibaud.me
|
@@ -125,6 +125,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
125
125
|
- - ! '>='
|
126
126
|
- !ruby/object:Gem::Version
|
127
127
|
version: '0'
|
128
|
+
segments:
|
129
|
+
- 0
|
130
|
+
hash: 2058607326340993912
|
128
131
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
132
|
none: false
|
130
133
|
requirements:
|
@@ -138,3 +141,4 @@ signing_key:
|
|
138
141
|
specification_version: 3
|
139
142
|
summary: Guard keeps an eye on your file modifications
|
140
143
|
test_files: []
|
144
|
+
has_rdoc:
|