guard 1.5.2 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +7 -0
- data/README.md +24 -22
- data/lib/guard.rb +9 -3
- data/lib/guard/interactor.rb +1 -0
- data/lib/guard/version.rb +1 -1
- data/lib/guard/version.rbc +130 -0
- metadata +8 -4
- data/bin/fsevent_watch_guard +0 -0
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -55,40 +55,42 @@ $ guard init
|
|
55
55
|
**It's important that you always run Guard through Bundler to avoid errors.** If you're getting sick of typing `bundle exec` all
|
56
56
|
the time, try the [Rubygems Bundler](https://github.com/mpapis/rubygems-bundler).
|
57
57
|
|
58
|
-
##
|
58
|
+
## Efficient Filesystem Handling
|
59
59
|
|
60
|
-
|
61
|
-
|
60
|
+
Various operating systems are willing to notify you of changes to files, but the API to
|
61
|
+
register/receive updates varies (see [rb-fsevent](https://github.com/thibaudgg/rb-fsevent) for
|
62
|
+
OS X, [rb-inotify](https://github.com/nex3/rb-inotify) for Linux, and
|
63
|
+
[rb-fchange](https://github.com/stereobooster/rb-fchange) for Windows). If you do not supply
|
64
|
+
one of the supported gems for these methods, Guard will fall back to polling, and give you a
|
65
|
+
warning about it doing so.
|
62
66
|
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
```
|
67
|
+
A challenge arises when trying to make these dependencies work with [Bundler](http://gembundler.com/).
|
68
|
+
If you simply put one of these dependencies into you `Gemfile`, even if it is conditional on a
|
69
|
+
platform match, the platform-specific gem will end up in the `Gemfile.lock`, and developers will
|
70
|
+
thrash the file back and forth.
|
68
71
|
|
69
|
-
|
72
|
+
There is a good solution. All three gems will successfully, quietly install on all three operating
|
73
|
+
systems, and `guard/listen` will only pull in the one you need. This is a more proper `Gemfile`:
|
70
74
|
|
71
|
-
|
72
|
-
don't rely on polling by adding the gem to your `Gemfile` and install it with Bundler:
|
73
|
-
|
74
|
-
```ruby
|
75
|
+
```Ruby
|
75
76
|
group :development do
|
76
77
|
gem 'rb-inotify', :require => false
|
78
|
+
gem 'rb-fsevent', :require => false
|
79
|
+
gem 'rb-fchange', :require => false
|
77
80
|
end
|
78
81
|
```
|
79
82
|
|
80
|
-
|
83
|
+
If you're using Windows and at least Ruby 1.9.2, then [Windows Directory Monitor](https://github.com/Maher4Ever/wdm) is
|
84
|
+
more efficient than using `rb-fchange`. However WDM cannot be installed on platforms other than Windows, making it
|
85
|
+
impossible to add it to the `Gemfile` for projects developed on multiple platforms.
|
81
86
|
|
82
|
-
|
83
|
-
rely on polling by adding the gem to your `Gemfile` and install it with Bundler:
|
84
|
-
|
85
|
-
```ruby
|
87
|
+
```Ruby
|
86
88
|
group :development do
|
87
89
|
gem 'wdm', :require => false
|
88
90
|
end
|
89
91
|
```
|
90
92
|
|
91
|
-
|
93
|
+
## Windows Colors
|
92
94
|
|
93
95
|
If you want colors in your terminal, you'll have to add the [win32console](https://rubygems.org/gems/win32console) gem
|
94
96
|
to your `Gemfile` and install it with Bundler:
|
@@ -520,9 +522,9 @@ You can also disable the interactions completely by running Guard with the `--no
|
|
520
522
|
### Customizations
|
521
523
|
|
522
524
|
Further Guard specific customizations can be made in `~/.guardrc` that will be evaluated prior the Pry session is
|
523
|
-
started. This allows you to make use of the Pry plugin architecture to provide custom commands
|
524
|
-
your own needs and distribute as a gem. Please have a look at the
|
525
|
-
information.
|
525
|
+
started (`~/.pryrc` is ignored). This allows you to make use of the Pry plugin architecture to provide custom commands
|
526
|
+
and extend Guard for your own needs and distribute as a gem. Please have a look at the
|
527
|
+
[Pry Wiki](https://github.com/pry/pry/wiki) for more information.
|
526
528
|
|
527
529
|
### Signals
|
528
530
|
|
data/lib/guard.rb
CHANGED
@@ -63,7 +63,7 @@ module Guard
|
|
63
63
|
::Guard::UI.options[:level] = :debug
|
64
64
|
debug_command_execution
|
65
65
|
end
|
66
|
-
|
66
|
+
|
67
67
|
setup_notifier
|
68
68
|
setup_interactor
|
69
69
|
|
@@ -179,6 +179,8 @@ module Guard
|
|
179
179
|
end
|
180
180
|
|
181
181
|
# Reload Guardfile and all Guard plugins currently enabled.
|
182
|
+
# If no scope is given, then the Guardfile will be re-evaluated,
|
183
|
+
# which results in a stop/start, which makes the reload obsolete.
|
182
184
|
#
|
183
185
|
# @param [Hash] scopes hash with a Guard plugin or a group scope
|
184
186
|
#
|
@@ -186,8 +188,12 @@ module Guard
|
|
186
188
|
within_preserved_state do
|
187
189
|
::Guard::UI.clear(:force => true)
|
188
190
|
::Guard::UI.action_with_scopes('Reload', scopes)
|
189
|
-
|
190
|
-
|
191
|
+
|
192
|
+
if scopes.empty?
|
193
|
+
::Guard::Dsl.reevaluate_guardfile
|
194
|
+
else
|
195
|
+
runner.run(:reload, scopes)
|
196
|
+
end
|
191
197
|
end
|
192
198
|
end
|
193
199
|
|
data/lib/guard/interactor.rb
CHANGED
data/lib/guard/version.rb
CHANGED
@@ -0,0 +1,130 @@
|
|
1
|
+
!RBIX
|
2
|
+
9595534255132031488
|
3
|
+
x
|
4
|
+
M
|
5
|
+
1
|
6
|
+
n
|
7
|
+
n
|
8
|
+
x
|
9
|
+
10
|
10
|
+
__script__
|
11
|
+
i
|
12
|
+
28
|
13
|
+
99
|
14
|
+
7
|
15
|
+
0
|
16
|
+
65
|
17
|
+
49
|
18
|
+
1
|
19
|
+
2
|
20
|
+
13
|
21
|
+
99
|
22
|
+
12
|
23
|
+
7
|
24
|
+
2
|
25
|
+
12
|
26
|
+
7
|
27
|
+
3
|
28
|
+
12
|
29
|
+
65
|
30
|
+
12
|
31
|
+
49
|
32
|
+
4
|
33
|
+
4
|
34
|
+
15
|
35
|
+
49
|
36
|
+
2
|
37
|
+
0
|
38
|
+
15
|
39
|
+
2
|
40
|
+
11
|
41
|
+
I
|
42
|
+
6
|
43
|
+
I
|
44
|
+
0
|
45
|
+
I
|
46
|
+
0
|
47
|
+
I
|
48
|
+
0
|
49
|
+
n
|
50
|
+
p
|
51
|
+
5
|
52
|
+
x
|
53
|
+
5
|
54
|
+
Guard
|
55
|
+
x
|
56
|
+
11
|
57
|
+
open_module
|
58
|
+
x
|
59
|
+
15
|
60
|
+
__module_init__
|
61
|
+
M
|
62
|
+
1
|
63
|
+
n
|
64
|
+
n
|
65
|
+
x
|
66
|
+
5
|
67
|
+
Guard
|
68
|
+
i
|
69
|
+
12
|
70
|
+
5
|
71
|
+
66
|
72
|
+
65
|
73
|
+
7
|
74
|
+
0
|
75
|
+
7
|
76
|
+
1
|
77
|
+
64
|
78
|
+
49
|
79
|
+
2
|
80
|
+
2
|
81
|
+
11
|
82
|
+
I
|
83
|
+
3
|
84
|
+
I
|
85
|
+
0
|
86
|
+
I
|
87
|
+
0
|
88
|
+
I
|
89
|
+
0
|
90
|
+
n
|
91
|
+
p
|
92
|
+
3
|
93
|
+
x
|
94
|
+
7
|
95
|
+
VERSION
|
96
|
+
s
|
97
|
+
5
|
98
|
+
1.3.1
|
99
|
+
x
|
100
|
+
9
|
101
|
+
const_set
|
102
|
+
p
|
103
|
+
3
|
104
|
+
I
|
105
|
+
2
|
106
|
+
I
|
107
|
+
3
|
108
|
+
I
|
109
|
+
c
|
110
|
+
x
|
111
|
+
52
|
112
|
+
/Users/michi/Repositories/guard/lib/guard/version.rb
|
113
|
+
p
|
114
|
+
0
|
115
|
+
x
|
116
|
+
13
|
117
|
+
attach_method
|
118
|
+
p
|
119
|
+
3
|
120
|
+
I
|
121
|
+
0
|
122
|
+
I
|
123
|
+
1
|
124
|
+
I
|
125
|
+
1c
|
126
|
+
x
|
127
|
+
52
|
128
|
+
/Users/michi/Repositories/guard/lib/guard/version.rb
|
129
|
+
p
|
130
|
+
0
|
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: 1.5.
|
4
|
+
version: 1.5.3
|
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-10-
|
12
|
+
date: 2012-10-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
@@ -131,7 +131,6 @@ executables:
|
|
131
131
|
extensions: []
|
132
132
|
extra_rdoc_files: []
|
133
133
|
files:
|
134
|
-
- bin/fsevent_watch_guard
|
135
134
|
- bin/guard
|
136
135
|
- images/failed.png
|
137
136
|
- images/guard.png
|
@@ -166,6 +165,7 @@ files:
|
|
166
165
|
- lib/guard/templates/Guardfile
|
167
166
|
- lib/guard/ui.rb
|
168
167
|
- lib/guard/version.rb
|
168
|
+
- lib/guard/version.rbc
|
169
169
|
- lib/guard/watcher.rb
|
170
170
|
- lib/guard.rb
|
171
171
|
- CHANGELOG.md
|
@@ -185,6 +185,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
185
185
|
- - ! '>='
|
186
186
|
- !ruby/object:Gem::Version
|
187
187
|
version: '0'
|
188
|
+
segments:
|
189
|
+
- 0
|
190
|
+
hash: -1910218198348656087
|
188
191
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
192
|
none: false
|
190
193
|
requirements:
|
@@ -193,8 +196,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
193
196
|
version: 1.3.6
|
194
197
|
requirements: []
|
195
198
|
rubyforge_project: guard
|
196
|
-
rubygems_version: 1.8.
|
199
|
+
rubygems_version: 1.8.24
|
197
200
|
signing_key:
|
198
201
|
specification_version: 3
|
199
202
|
summary: Guard keeps an eye on your file modifications
|
200
203
|
test_files: []
|
204
|
+
has_rdoc:
|
data/bin/fsevent_watch_guard
DELETED
Binary file
|