guard 2.0.0.pre.2 → 2.0.0.pre.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/guard.rb +1 -1
- data/lib/guard/interactor.rb +1 -1
- data/lib/guard/setuper.rb +12 -1
- data/lib/guard/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97231e4fc0839c1025501eaf13e0577f9f53c002
|
4
|
+
data.tar.gz: 07f0d463dd0a08e1aa4480ecbada67db32035e37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6647423b6451e4dd2ccb864240a4a881bf86a20bd1673d547c4f0fdd1285a25004e2604390c8480c60fa60a1fa0a4b436629755665a0f1ef25365c1a9d368d65
|
7
|
+
data.tar.gz: 969be72dd8aeb2eca0f55255fa24e886a7b4cfd4cd31059ec1e26cca2075233c6e9d35f886fea10eae68f88e61cd6b03f0413ff736cb1071f5cf71d0102e91fc
|
data/lib/guard.rb
CHANGED
@@ -27,7 +27,7 @@ module Guard
|
|
27
27
|
extend Setuper
|
28
28
|
|
29
29
|
class << self
|
30
|
-
attr_accessor :
|
30
|
+
attr_accessor :interactor, :runner, :listener, :lock, :scope, :running
|
31
31
|
|
32
32
|
# Smart accessor for retrieving specific plugins at once.
|
33
33
|
#
|
data/lib/guard/interactor.rb
CHANGED
@@ -269,7 +269,7 @@ module Guard
|
|
269
269
|
#
|
270
270
|
def _scope_for_prompt
|
271
271
|
[:plugins, :groups].each do |scope_name|
|
272
|
-
return
|
272
|
+
return _join_scope_for_prompt(scope_name) unless ::Guard.scope[scope_name].empty?
|
273
273
|
end
|
274
274
|
|
275
275
|
''
|
data/lib/guard/setuper.rb
CHANGED
@@ -38,11 +38,11 @@ module Guard
|
|
38
38
|
# @return [Guard] the Guard singleton
|
39
39
|
#
|
40
40
|
def setup(opts = {})
|
41
|
+
_reset_lazy_accessors
|
41
42
|
@running = true
|
42
43
|
@lock = Mutex.new
|
43
44
|
@opts = opts
|
44
45
|
@watchdirs = [Dir.pwd]
|
45
|
-
@evaluator = ::Guard::Guardfile::Evaluator.new(opts)
|
46
46
|
@runner = ::Guard::Runner.new
|
47
47
|
|
48
48
|
if options.watchdir
|
@@ -69,6 +69,12 @@ module Guard
|
|
69
69
|
self
|
70
70
|
end
|
71
71
|
|
72
|
+
# Lazy initializer for Guardfile evaluator
|
73
|
+
#
|
74
|
+
def evaluator
|
75
|
+
@evaluator ||= ::Guard::Guardfile::Evaluator.new(@opts || {})
|
76
|
+
end
|
77
|
+
|
72
78
|
# Lazy initializer for Guard's options hash
|
73
79
|
#
|
74
80
|
def options
|
@@ -134,6 +140,11 @@ module Guard
|
|
134
140
|
|
135
141
|
private
|
136
142
|
|
143
|
+
def _reset_lazy_accessors
|
144
|
+
@options = nil
|
145
|
+
@evaluator = nil
|
146
|
+
end
|
147
|
+
|
137
148
|
# Sets up various debug behaviors:
|
138
149
|
#
|
139
150
|
# * Abort threads on exception;
|
data/lib/guard/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.pre.
|
4
|
+
version: 2.0.0.pre.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thibaud Guillaume-Gentil
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|