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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e259fae5d2c7856aa73eb2dc95d00b8502cfbd8f
4
- data.tar.gz: f0181107ebad07e8eaffa3ff91a8ccd1aab81ec8
3
+ metadata.gz: f8fb0fb59f3145abbaeab802ce468a15cbf1214e
4
+ data.tar.gz: '0393fee23d438cf798b58377dc4c343d93b68291'
5
5
  SHA512:
6
- metadata.gz: ddc63be7d1aece7cadda916383358c18b4736b8583c0fe9d61fc905850a0a0abdcc2c8ec2c56130c5da8e45864357df9f5fcff61e4e29dc6b647cf2d1caaf031
7
- data.tar.gz: fec1115edac0d704df03549205f15bd6d16f0f4239652b9774150b234d2adb5b2410852102d770b1894361f18985d5b7d7be326646e9b2bd44426ae9c04454a7
6
+ metadata.gz: 8eb288fa41b20c782ba7c35e609d0f236bfd756955fd687cc7a141b5edfe43037c8f1c909c2bf94986d6afb88aa9bdad5744ea5877ae8dbe6af46dfe6617ef98
7
+ data.tar.gz: 607a33b0ad3834e613718ec5d4aae8bb57e003dc1f1de00f9b0e584a120201981735a8c5c9420bd178376836b732346183321693b9c912722acf737a23260cb9
@@ -38,7 +38,11 @@ class Analyzer
38
38
 
39
39
  def write_results_for(type, dir)
40
40
  @n.each do |n|
41
- FileUtils.mkdir_p(File.join(dir, type, n.to_s))
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)
@@ -1,3 +1,3 @@
1
1
  class Analyzer
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: analyzer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Bracy