sauron 0.1.27 → 0.1.29
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/generators/sauron/templates/sauron_watchr.rb +2 -2
- data/lib/sauron/sauron_template.rb +2 -2
- data/sauron.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.29
|
@@ -5,7 +5,7 @@ when 'testunit'
|
|
5
5
|
# Unit tests #
|
6
6
|
watch('test/unit/(.*)_test\.rb'){|f| Sauron.run_pattern_tests 'test/unit/', f[1], '_test.rb'}
|
7
7
|
watch('app/models/(.*)\.rb') do |f|
|
8
|
-
files = Dir.glob("test/unit
|
8
|
+
files = Dir.glob("test/unit/*#{f[1]}_test.rb")
|
9
9
|
|
10
10
|
if files.size == 1
|
11
11
|
Sauron.run_single_test files.first
|
@@ -18,7 +18,7 @@ when 'testunit'
|
|
18
18
|
watch('test/functional/(.*)_controller_test\.rb'){|f| Sauron.run_pattern_tests 'test/functional/', f[1], '_controller_test.rb'}
|
19
19
|
|
20
20
|
watch('app/controllers/(.*)\.rb') do |f|
|
21
|
-
files = Dir.glob("test/functional
|
21
|
+
files = Dir.glob("test/functional/*#{f[1]}_test.rb")
|
22
22
|
|
23
23
|
if files.size == 1
|
24
24
|
Sauron.run_single_test files.first
|
@@ -45,9 +45,9 @@ class SauronTemplate
|
|
45
45
|
files = []
|
46
46
|
|
47
47
|
elements = pattern.split(/_/)
|
48
|
-
|
48
|
+
begin
|
49
49
|
files << Dir.glob("#{prefix}#{elements.join('_')}#{suffix}") unless elements.empty?
|
50
|
-
end
|
50
|
+
end while elements.shift
|
51
51
|
|
52
52
|
run_multiple_tests files
|
53
53
|
end
|
data/sauron.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{sauron}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.29"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jaime Bellmyer"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-09-01}
|
13
13
|
s.description = %q{Speed up your automated tests with multiple databases and workers.}
|
14
14
|
s.email = %q{jaime@kconrails.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sauron
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 33
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 29
|
10
|
+
version: 0.1.29
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jaime Bellmyer
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-09-01 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|