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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b5cc3da9d9d6f2285d3d5321517d3575ff1f9dd
4
- data.tar.gz: 2ccbd24a3dc47b488ece2007763f192d35bb4d4e
3
+ metadata.gz: ee625b5d6650eb178aaf550f42ea3e59a66d88da
4
+ data.tar.gz: f6c04db96d459c703cac87265cb0fad8c41a7d8b
5
5
  SHA512:
6
- metadata.gz: 56367f2b0ced41f7f6b0e86b265b4dd73343d7a7ff10576d4519bdc94b26a61770d215493d94b5d4faddae1bfce3e04502fcb1c518041111e8ec69bb4f84fd04
7
- data.tar.gz: e74e9932bb10d3bee96dab690a01912ce34c772392791f00b413dd8c899b0352a9d194199cee4d23cb7d25e0ba03fa34cc99ee3b3cd04e3a5694738d8e202b67
6
+ metadata.gz: 496ad10f7b2ff5e1abbc6b979cea56bdf5a3131c4308efadb83d36a1d9dcf040de80ca2e8878095fb75b00a6f7d11ab3468c9ebf915c1d5b220f08438176d1e8
7
+ data.tar.gz: cd335505343ebe322d4ea192d638fdbc1c776ff725a0bdd93cbd72b554b9b902df298f7d5253976fdee913178ec6880b8d431f885f6d171c85b6fe719590260a
data/lib/eetee/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module EEtee
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
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.9
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-05-17 00:00:00.000000000 Z
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.3
94
+ rubygems_version: 2.0.5
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Another test framework