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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1709251bb5d838ee4ba64f96f0ebf53ffb0db45e
4
- data.tar.gz: e3fd375d5c4edcc27e6fb8b6f7f621b92a0bb391
3
+ metadata.gz: 97231e4fc0839c1025501eaf13e0577f9f53c002
4
+ data.tar.gz: 07f0d463dd0a08e1aa4480ecbada67db32035e37
5
5
  SHA512:
6
- metadata.gz: 4221c9dc78e4340460d672762382978dc500672d29e48e12cfb307f49255e6ddbfd747f874433e7b520ab59c01d0066222dd8f0dd6b31bf8d782f9d75444e38b
7
- data.tar.gz: a96d8688bcd5bad8058cbc38f4173eeb62d118d428ddd55ed9a7f7e90aeeeacb4fdbe066ca725b6bb0ecd5ea67b3b4f5dd9017d5658990349b01a5984328b466
6
+ metadata.gz: 6647423b6451e4dd2ccb864240a4a881bf86a20bd1673d547c4f0fdd1285a25004e2604390c8480c60fa60a1fa0a4b436629755665a0f1ef25365c1a9d368d65
7
+ data.tar.gz: 969be72dd8aeb2eca0f55255fa24e886a7b4cfd4cd31059ec1e26cca2075233c6e9d35f886fea10eae68f88e61cd6b03f0413ff736cb1071f5cf71d0102e91fc
@@ -27,7 +27,7 @@ module Guard
27
27
  extend Setuper
28
28
 
29
29
  class << self
30
- attr_accessor :evaluator, :interactor, :runner, :listener, :lock, :scope, :running
30
+ attr_accessor :interactor, :runner, :listener, :lock, :scope, :running
31
31
 
32
32
  # Smart accessor for retrieving specific plugins at once.
33
33
  #
@@ -269,7 +269,7 @@ module Guard
269
269
  #
270
270
  def _scope_for_prompt
271
271
  [:plugins, :groups].each do |scope_name|
272
- return _join_scope(scope_name) unless ::Guard.scope[scope_name].empty?
272
+ return _join_scope_for_prompt(scope_name) unless ::Guard.scope[scope_name].empty?
273
273
  end
274
274
 
275
275
  ''
@@ -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;
@@ -1,3 +1,3 @@
1
1
  module Guard
2
- VERSION = '2.0.0.pre.2'
2
+ VERSION = '2.0.0.pre.3'
3
3
  end
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.2
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-17 00:00:00.000000000 Z
11
+ date: 2013-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor