guard 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/guard.rb +4 -5
- data/lib/guard/guard.rb +1 -0
- data/lib/guard/listener.rb +0 -1
- data/lib/guard/version.rb +1 -1
- metadata +4 -37
data/lib/guard.rb
CHANGED
@@ -33,9 +33,7 @@ module Guard
|
|
33
33
|
UI.error "No guards found in Guardfile, please add at least one."
|
34
34
|
else
|
35
35
|
listener.on_change do |files|
|
36
|
-
if Watcher.match_files?(guards, files)
|
37
|
-
run { run_on_change_for_all_guards(files) }
|
38
|
-
end
|
36
|
+
run { run_on_change_for_all_guards(files) } if Watcher.match_files?(guards, files)
|
39
37
|
end
|
40
38
|
|
41
39
|
UI.info "Guard is now watching at '#{Dir.pwd}'"
|
@@ -49,11 +47,12 @@ module Guard
|
|
49
47
|
paths = Watcher.match_files(guard, files)
|
50
48
|
supervised_task(guard, :run_on_change, paths) unless paths.empty?
|
51
49
|
end
|
50
|
+
|
52
51
|
# Reparse the whole directory to catch new files modified during the guards run
|
53
52
|
new_modified_files = listener.modified_files([Dir.pwd + '/'], :all => true)
|
54
53
|
listener.update_last_event
|
55
54
|
unless new_modified_files.empty?
|
56
|
-
run { run_on_change_for_all_guards(new_modified_files) }
|
55
|
+
run { run_on_change_for_all_guards(new_modified_files) } if Watcher.match_files?(guards, files)
|
57
56
|
end
|
58
57
|
end
|
59
58
|
|
@@ -91,7 +90,7 @@ module Guard
|
|
91
90
|
end
|
92
91
|
|
93
92
|
def locate_guard(name)
|
94
|
-
|
93
|
+
Gem.source_index.find_name("guard-#{name}").last.full_gem_path
|
95
94
|
rescue
|
96
95
|
UI.error "Could not find 'guard-#{name}' gem path."
|
97
96
|
end
|
data/lib/guard/guard.rb
CHANGED
data/lib/guard/listener.rb
CHANGED
data/lib/guard/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 3
|
9
|
-
- 1
|
10
|
-
version: 0.3.1
|
4
|
+
prerelease:
|
5
|
+
version: 0.3.2
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Thibaud Guillaume-Gentil
|
@@ -15,7 +10,7 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date: 2011-04-
|
13
|
+
date: 2011-04-17 00:00:00 +02:00
|
19
14
|
default_executable:
|
20
15
|
dependencies:
|
21
16
|
- !ruby/object:Gem::Dependency
|
@@ -26,11 +21,6 @@ dependencies:
|
|
26
21
|
requirements:
|
27
22
|
- - ~>
|
28
23
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 25
|
30
|
-
segments:
|
31
|
-
- 1
|
32
|
-
- 0
|
33
|
-
- 7
|
34
24
|
version: 1.0.7
|
35
25
|
type: :development
|
36
26
|
version_requirements: *id001
|
@@ -42,11 +32,6 @@ dependencies:
|
|
42
32
|
requirements:
|
43
33
|
- - ~>
|
44
34
|
- !ruby/object:Gem::Version
|
45
|
-
hash: 27
|
46
|
-
segments:
|
47
|
-
- 2
|
48
|
-
- 5
|
49
|
-
- 0
|
50
35
|
version: 2.5.0
|
51
36
|
type: :development
|
52
37
|
version_requirements: *id002
|
@@ -58,11 +43,6 @@ dependencies:
|
|
58
43
|
requirements:
|
59
44
|
- - ~>
|
60
45
|
- !ruby/object:Gem::Version
|
61
|
-
hash: 23
|
62
|
-
segments:
|
63
|
-
- 0
|
64
|
-
- 2
|
65
|
-
- 0
|
66
46
|
version: 0.2.0
|
67
47
|
type: :development
|
68
48
|
version_requirements: *id003
|
@@ -74,11 +54,6 @@ dependencies:
|
|
74
54
|
requirements:
|
75
55
|
- - ~>
|
76
56
|
- !ruby/object:Gem::Version
|
77
|
-
hash: 43
|
78
|
-
segments:
|
79
|
-
- 0
|
80
|
-
- 14
|
81
|
-
- 6
|
82
57
|
version: 0.14.6
|
83
58
|
type: :runtime
|
84
59
|
version_requirements: *id004
|
@@ -126,25 +101,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
126
101
|
requirements:
|
127
102
|
- - ">="
|
128
103
|
- !ruby/object:Gem::Version
|
129
|
-
hash: 3
|
130
|
-
segments:
|
131
|
-
- 0
|
132
104
|
version: "0"
|
133
105
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
134
106
|
none: false
|
135
107
|
requirements:
|
136
108
|
- - ">="
|
137
109
|
- !ruby/object:Gem::Version
|
138
|
-
hash: 23
|
139
|
-
segments:
|
140
|
-
- 1
|
141
|
-
- 3
|
142
|
-
- 6
|
143
110
|
version: 1.3.6
|
144
111
|
requirements: []
|
145
112
|
|
146
113
|
rubyforge_project: guard
|
147
|
-
rubygems_version: 1.
|
114
|
+
rubygems_version: 1.6.2
|
148
115
|
signing_key:
|
149
116
|
specification_version: 3
|
150
117
|
summary: Guard keep an eye on your files modifications.
|