autospec.watchr 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/autospec.watchr.rb +2 -1
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.6
|
data/lib/autospec.watchr.rb
CHANGED
@@ -4,7 +4,8 @@ puts "Waiting... (Save a source or spec file and watch the magic happen)"
|
|
4
4
|
watch(/spec\/factories.rb$/) { |file| spec(Dir["spec/**/*_spec.rb"]) }
|
5
5
|
watch(/config\/environment.*$/) { |file| spec(Dir["spec/**/*_spec.rb"]) }
|
6
6
|
watch(/config\/initializers\/.*$/) { |file| spec(Dir["spec/**/*_spec.rb"]) }
|
7
|
-
|
7
|
+
rails_app_directories = Dir["app/*"].map { |dir| File.directory?(dir) ? File.basename(dir) : nil }.compact
|
8
|
+
rails_app_directories.each do |spec_dir|
|
8
9
|
watch(/app\/#{spec_dir}\/.*\.rb/) { |file| spec(Dir["spec/**/#{file.to_s.sub(/.*\/([^\/]+).rb$/, '\1_spec.rb')}"]) }
|
9
10
|
watch(/spec\/#{spec_dir}\/.*\.rb/) { |file| spec(file) }
|
10
11
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autospec.watchr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Andrew Timberlake
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-10-01 00:00:00 +02:00
|
19
19
|
default_executable: autospec.watchr
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|