dohtest 0.1.46 → 0.1.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/dohtest/configure.rb +1 -3
- data/lib/dohtest/require_paths.rb +6 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dad8d02009238e97f6a38074f5a94d3f0000a81a
|
4
|
+
data.tar.gz: 30aabd966c8a0cf60efca82d1fae51b23756c309
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f12bc9c7a9c0d573b26670457a3f8337ea8313e09a16ebcc8263263f89556679e0a5e6abe66ee1310b8d566b75830b9e27ce135c3b5d05093ff71bc4dac6ca6
|
7
|
+
data.tar.gz: 292739c621eff926f14e9150433acc815ed10e1c3f6caa316b52e7143f8f4dd4ae81ce2d67a90acdefb03ff5f9ce528c2dc4c3d44725898029d7c9d317eaec9a
|
data/lib/dohtest/configure.rb
CHANGED
@@ -12,7 +12,7 @@ def find_root(start_directory, max_tries = 20)
|
|
12
12
|
curr_directory = start_directory
|
13
13
|
max_tries.times do
|
14
14
|
return nil if curr_directory == '/'
|
15
|
-
if File.directory?(File.join(curr_directory, 'test'))
|
15
|
+
if File.directory?(File.join(curr_directory, 'test')) || File.exist?(File.join(curr_directory, 'dohtest.rb'))
|
16
16
|
return curr_directory
|
17
17
|
end
|
18
18
|
curr_directory = File.expand_path(File.join(curr_directory, '..'))
|
@@ -32,8 +32,6 @@ def load_configuration_files(start_path)
|
|
32
32
|
DohTest.config[:root] = root_directory
|
33
33
|
|
34
34
|
Doh.find_root_from_path(root_directory)
|
35
|
-
$LOAD_PATH.delete(File.join(Doh.root, 'lib'))
|
36
|
-
|
37
35
|
libdir = File.join(root_directory, 'lib')
|
38
36
|
if File.directory?(libdir) && !$LOAD_PATH.include?(libdir)
|
39
37
|
$LOAD_PATH << libdir
|
@@ -3,17 +3,18 @@ extend self
|
|
3
3
|
|
4
4
|
def require_paths(glob, paths)
|
5
5
|
retval = false
|
6
|
-
paths.
|
7
|
-
|
8
|
-
|
6
|
+
expanded_paths = paths.map {|path| File.expand_path(path) }
|
7
|
+
expanded_paths.each do |path|
|
8
|
+
if File.directory?(path)
|
9
|
+
Dir.glob(File.join(path, '**', glob)).each do |filename|
|
9
10
|
retval = true
|
10
11
|
require(filename)
|
11
12
|
end
|
12
13
|
else
|
13
|
-
require(
|
14
|
+
require(path)
|
14
15
|
end
|
15
16
|
end
|
16
|
-
retval
|
17
|
+
return retval
|
17
18
|
end
|
18
19
|
|
19
20
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dohtest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.47
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Makani Mason
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-03-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: dohroot
|
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
85
|
version: '0'
|
86
86
|
requirements: []
|
87
87
|
rubyforge_project:
|
88
|
-
rubygems_version: 2.
|
88
|
+
rubygems_version: 2.6.8
|
89
89
|
signing_key:
|
90
90
|
specification_version: 4
|
91
91
|
summary: minimalist unit test framework
|