eetee 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eetee/version.rb +1 -1
- data/lib/guard/eetee.rb +13 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee625b5d6650eb178aaf550f42ea3e59a66d88da
|
4
|
+
data.tar.gz: f6c04db96d459c703cac87265cb0fad8c41a7d8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 496ad10f7b2ff5e1abbc6b979cea56bdf5a3131c4308efadb83d36a1d9dcf040de80ca2e8878095fb75b00a6f7d11ab3468c9ebf915c1d5b220f08438176d1e8
|
7
|
+
data.tar.gz: cd335505343ebe322d4ea192d638fdbc1c776ff725a0bdd93cbd72b554b9b902df298f7d5253976fdee913178ec6880b8d431f885f6d171c85b6fe719590260a
|
data/lib/eetee/version.rb
CHANGED
data/lib/guard/eetee.rb
CHANGED
@@ -22,6 +22,7 @@ module Guard
|
|
22
22
|
def initialize(watchers = [], options = {})
|
23
23
|
@reporter_class = options.delete(:reporter)
|
24
24
|
@with_blink1 = options.delete(:blink1)
|
25
|
+
@last_run_spec = nil
|
25
26
|
super
|
26
27
|
end
|
27
28
|
|
@@ -60,6 +61,18 @@ module Guard
|
|
60
61
|
# @param [Array<String>] paths the changes files or paths
|
61
62
|
# @raise [:task_has_failed] when run_on_change has failed
|
62
63
|
def run_on_changes(paths)
|
64
|
+
if (paths.size == 1)
|
65
|
+
if !File.exists?(paths[0]) && @last_run_spec
|
66
|
+
puts "spec not found: #{paths[0]}"
|
67
|
+
puts "running last one."
|
68
|
+
paths << @last_run_spec
|
69
|
+
else
|
70
|
+
@last_run_spec = paths[0]
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
|
75
|
+
|
63
76
|
pid = Kernel.fork do
|
64
77
|
require 'eetee'
|
65
78
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eetee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julien Ammous
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: term-ansicolor
|
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
version: '0'
|
92
92
|
requirements: []
|
93
93
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.0.
|
94
|
+
rubygems_version: 2.0.5
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: Another test framework
|