analyzer 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/analyzer.rb +5 -1
- data/lib/analyzer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8fb0fb59f3145abbaeab802ce468a15cbf1214e
|
4
|
+
data.tar.gz: '0393fee23d438cf798b58377dc4c343d93b68291'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8eb288fa41b20c782ba7c35e609d0f236bfd756955fd687cc7a141b5edfe43037c8f1c909c2bf94986d6afb88aa9bdad5744ea5877ae8dbe6af46dfe6617ef98
|
7
|
+
data.tar.gz: 607a33b0ad3834e613718ec5d4aae8bb57e003dc1f1de00f9b0e584a120201981735a8c5c9420bd178376836b732346183321693b9c912722acf737a23260cb9
|
data/lib/analyzer.rb
CHANGED
@@ -38,7 +38,11 @@ class Analyzer
|
|
38
38
|
|
39
39
|
def write_results_for(type, dir)
|
40
40
|
@n.each do |n|
|
41
|
-
|
41
|
+
if key(src).index(File::SEPARATOR)
|
42
|
+
FileUtils.mkdir_p(File.join(dir, type, n.to_s, File.dirname(key(src))))
|
43
|
+
else
|
44
|
+
FileUtils.mkdir_p(File.join(dir, type, n.to_s))
|
45
|
+
end
|
42
46
|
@test_files.each do |src|
|
43
47
|
File.open(File.join(dir, type, n.to_s, key(src)), 'w') do |file|
|
44
48
|
send(:"output_#{type}_results", calculate_results_for(type, File.read(src), n), file)
|
data/lib/analyzer/version.rb
CHANGED