minitest-reporters 1.1.7 → 1.1.8

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: 47b21650aa917c323c0dda549bbf596f3146f390
4
- data.tar.gz: 178821e133b2c7472df9a37c800f681078f3c636
3
+ metadata.gz: 7bf3d1a340d1230cf42aeb24cb0d2ca9529b9682
4
+ data.tar.gz: 65c80458d82eb5cd5017fa77c02ff98a8c354fc8
5
5
  SHA512:
6
- metadata.gz: d9014a80d115ad6531f6933c891ae9fc910442ca3a759e7432ff145f72829240ca1fca5f9aac9ebd0b57b52e6a629131ab900f9991faed835f15653e57c82360
7
- data.tar.gz: fa0b84409d297219122aea2b5f55496127e250ac28400faffd4a38439fd44cbbc9d8a319f4905cd3ae744e6384b6a70eae3b45292ade68651b9df67ffe639dab
6
+ metadata.gz: eb8eef912c19e7132b209ff0c6461a96244dd342388fde5e57011ef42b9c03903f815080c66620031c1775a050afedc04f1b28106dae8bdd9f3efc67646d060a
7
+ data.tar.gz: 30fe2a47cd1df20432d5d1c5b404afb27f08c0dae897b9a8480f62e2b5d8097422fd1f8a22d5d94784cb61f02227a0c6dda50c064998dd0ca41355933ff75545
@@ -1,7 +1,10 @@
1
1
  script: 'rake test'
2
+ before_install:
3
+ - gem install bundler
2
4
  rvm:
5
+ - 2.3.0
3
6
  - 2.2
4
7
  - 2.1
5
8
  - 2.0.0
6
9
  - 1.9.3
7
- - jruby-19mode
10
+ - jruby
@@ -75,8 +75,8 @@ module Minitest
75
75
  @reports_path = File.absolute_path(reports_dir)
76
76
 
77
77
  puts "Emptying #{@reports_path}"
78
- FileUtils.remove_dir(@reports_path) if File.exists?(@reports_path)
79
78
  FileUtils.mkdir_p(@reports_path)
79
+ File.delete(html_file)
80
80
  end
81
81
 
82
82
  # Called by the framework to generate the report
@@ -85,7 +85,6 @@ module Minitest
85
85
 
86
86
  begin
87
87
  puts "Writing HTML reports to #{@reports_path}"
88
- html_file = "#{@reports_path}/#{@output_filename}"
89
88
  erb_str = File.read(@erb_template)
90
89
  renderer = ERB.new(erb_str)
91
90
 
@@ -115,6 +114,9 @@ module Minitest
115
114
  end
116
115
 
117
116
  private
117
+ def html_file
118
+ "#{@reports_path}/#{@output_filename}"
119
+ end
118
120
 
119
121
  def compare_suites_by_name(suite_a, suite_b)
120
122
  suite_a[:name] <=> suite_b[:name]
@@ -16,8 +16,8 @@ module Minitest
16
16
 
17
17
  if empty
18
18
  puts "Emptying #{@reports_path}"
19
- FileUtils.remove_dir(@reports_path) if File.exists?(@reports_path)
20
19
  FileUtils.mkdir_p(@reports_path)
20
+ File.delete(*Dir.glob("#{@reports_path}/TEST-*.xml"))
21
21
  end
22
22
  end
23
23
 
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module Reporters
3
- VERSION = '1.1.7'
3
+ VERSION = '1.1.8'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-reporters
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kern
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-26 00:00:00.000000000 Z
11
+ date: 2016-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest