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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b1523a499faf75f76a34ea783ae482a080cfc9e4
4
- data.tar.gz: f8db0701d9029c43ba59173b1b397abc236f500b
3
+ metadata.gz: ef6c11d42eabb319915160abb327bf2bd1f3489c
4
+ data.tar.gz: f418b7b4f472b7a20c69a36b5a5832507a738f9c
5
5
  SHA512:
6
- metadata.gz: d8c7e1a29495405463899ca8a3603951b5245a32e1d050b2f04fae7dbcd62fcaec28455c09716340885c10335dee0244ec51748604f01f678802bdb01bb60eb0
7
- data.tar.gz: 32109c8686e84d05f77d31e48a8d75cf3399899f26013b15f08e1d2d88850a3135c5a921df81d1351ee42b62d0a3a8d7a9b9f3986e0c3c76f36a3ef37db516c0
6
+ metadata.gz: 40976fb568f3768631f893bc0a9fc3ac6fdec6845ac802051bf1232b4440867a295cc4101937e644694ef2837f707c0a23e550d9a6bfb8ce3e27944be3b08108
7
+ data.tar.gz: f1f8a33f724758b22428e6eaf729942a7696da5008ad95fbf8d22b6d84ceb900162fe655b5f614f40dbec8722f01db2de2816374e9ada6ac0ff5341713a46b0d
@@ -20,7 +20,12 @@ module Matest
20
20
  end
21
21
 
22
22
  def load_file(file)
23
- require(file)
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
@@ -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
- raise "Spec file not found: #{file_name.inspect}" unless path.exist?
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
@@ -1,3 +1,3 @@
1
1
  module Matest
2
- VERSION = "1.6.6"
2
+ VERSION = "1.6.9"
3
3
  end
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.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-03-17 00:00:00.000000000 Z
11
+ date: 2015-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler