matest 1.6.6 → 1.6.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/matest/runner.rb +12 -1
- data/lib/matest/spec_tasks.rb +3 -1
- data/lib/matest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef6c11d42eabb319915160abb327bf2bd1f3489c
|
4
|
+
data.tar.gz: f418b7b4f472b7a20c69a36b5a5832507a738f9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40976fb568f3768631f893bc0a9fc3ac6fdec6845ac802051bf1232b4440867a295cc4101937e644694ef2837f707c0a23e550d9a6bfb8ce3e27944be3b08108
|
7
|
+
data.tar.gz: f1f8a33f724758b22428e6eaf729942a7696da5008ad95fbf8d22b6d84ceb900162fe655b5f614f40dbec8722f01db2de2816374e9ada6ac0ff5341713a46b0d
|
data/lib/matest/runner.rb
CHANGED
@@ -20,7 +20,12 @@ module Matest
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def load_file(file)
|
23
|
-
|
23
|
+
location = file.split(":")
|
24
|
+
if location.count == 1
|
25
|
+
require(file)
|
26
|
+
else
|
27
|
+
require_spec(*location)
|
28
|
+
end
|
24
29
|
end
|
25
30
|
|
26
31
|
def execute!
|
@@ -29,6 +34,12 @@ module Matest
|
|
29
34
|
end
|
30
35
|
printer.print_messages(self)
|
31
36
|
end
|
37
|
+
|
38
|
+
private
|
39
|
+
|
40
|
+
def require_spec(file, line)
|
41
|
+
require file
|
42
|
+
end
|
32
43
|
end
|
33
44
|
|
34
45
|
end
|
data/lib/matest/spec_tasks.rb
CHANGED
@@ -3,7 +3,9 @@ task :spec do
|
|
3
3
|
if arg_files
|
4
4
|
arg_files.map! { |file_name|
|
5
5
|
path = Pathname(file_name.to_s).expand_path
|
6
|
-
|
6
|
+
unless Pathname(file_name.to_s.split(":").first).exist?
|
7
|
+
raise "Spec file not found: #{file_name.inspect}"
|
8
|
+
end
|
7
9
|
path.directory? ? path.to_s + "/**/*.rb" : path.to_s
|
8
10
|
}
|
9
11
|
end
|
data/lib/matest/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: matest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Federico Iachetti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|