DotCoverRakeTask 1.0.6 → 1.0.7

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.
Files changed (3) hide show
  1. data/lib/DotCoverRakeTask.rb +23 -24
  2. metadata +9 -7
  3. checksums.yaml +0 -7
@@ -19,39 +19,38 @@ class DotCoverWrapper
19
19
  snapshot_output_file = "#{configuration.report_directory}/#{configuration.snapshot_name}"
20
20
  report_file_path_and_name = "#{configuration.report_directory}/#{configuration.report_name}"
21
21
 
22
- run_coverage(configuration.executable, configuration.nunit_executable, nunit_command_line_args, snapshot_output_file, configuration.filters)
22
+ run_coverage(configuration.executable, configuration.nunit_executable, nunit_command_line_args, snapshot_output_file, configuration.filters)
23
23
 
24
- if (configuration.html_report)
25
- report_html_file = "#{report_file_path_and_name}.html"
26
- create_html_report(configuration.executable, report_html_file)
27
- end
28
-
29
- if (configuration.xml_report)
30
- report_xml_file = "#{report_file_path_and_name}.xml"
31
- create_xml_report(configuration.executable, report_xml_file)
32
- end
24
+ if (configuration.html_report)
25
+ report_html_file = "#{report_file_path_and_name}.html"
26
+ create_html_report(configuration.executable, snapshot_output_file, report_html_file)
27
+ end
33
28
 
29
+ if (configuration.xml_report)
30
+ report_xml_file = "#{report_file_path_and_name}.xml"
31
+ create_xml_report(configuration.executable, snapshot_output_file, report_xml_file)
32
+ end
34
33
  end
35
34
 
36
35
  private
37
36
 
38
- def run_coverage(executable, nunit_executable, nunit_command_line_args, snapshot_output_file, filters)
39
- output = `#{executable} cover /TargetExecutable=#{nunit_executable} /TargetArguments="#{nunit_command_line_args}" /Output=#{snapshot_output_file} /Filters=#{filters}`
40
- puts output
41
- end
37
+ def run_coverage(executable, nunit_executable, nunit_command_line_args, snapshot_output_file, filters)
38
+ output = `#{executable} cover /TargetExecutable=#{nunit_executable} /TargetArguments="#{nunit_command_line_args}" /Output=#{snapshot_output_file} /Filters=#{filters}`
39
+ puts output
40
+ end
42
41
 
43
- def create_html_report(executable, snapshot_output_file, report_file)
44
- create_report(executable, snapshot_output_file, report_file, "HTML")
45
- end
42
+ def create_html_report(executable, snapshot_output_file, report_file)
43
+ create_report(executable, snapshot_output_file, report_file, "HTML")
44
+ end
46
45
 
47
- def create_xml_report(executable, snapshot_output_file, report_file)
48
- create_report(executable, snapshot_output_file, report_file, "XML")
49
- end
46
+ def create_xml_report(executable, snapshot_output_file, report_file)
47
+ create_report(executable, snapshot_output_file, report_file, "XML")
48
+ end
50
49
 
51
- def create_report(executable, snapshot_output_file, report_file, report_type)
52
- output = `#{executable} report /Source="#{snapshot_output_file}" /Output="#{report_file}" /ReportType="#{report_type}"`
53
- puts output
54
- end
50
+ def create_report(executable, snapshot_output_file, report_file, report_type)
51
+ output = `#{executable} report /Source="#{snapshot_output_file}" /Output="#{report_file}" /ReportType="#{report_type}"`
52
+ puts output
53
+ end
55
54
 
56
55
  end
57
56
 
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: DotCoverRakeTask
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - iainjmitchell
@@ -9,7 +10,7 @@ authors:
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2014-05-01 00:00:00.000000000 Z
13
+ date: 2014-10-15 00:00:00.000000000 Z
13
14
  dependencies: []
14
15
  description:
15
16
  email: iainjmitchell@gmail.com
@@ -21,25 +22,26 @@ files:
21
22
  homepage: https://github.com/code-computerlove/dotcover-rake-task
22
23
  licenses:
23
24
  - MIT
24
- metadata: {}
25
25
  post_install_message:
26
26
  rdoc_options: []
27
27
  require_paths:
28
28
  - lib
29
29
  required_ruby_version: !ruby/object:Gem::Requirement
30
+ none: false
30
31
  requirements:
31
- - - '>='
32
+ - - ! '>='
32
33
  - !ruby/object:Gem::Version
33
34
  version: '0'
34
35
  required_rubygems_version: !ruby/object:Gem::Requirement
36
+ none: false
35
37
  requirements:
36
- - - '>='
38
+ - - ! '>='
37
39
  - !ruby/object:Gem::Version
38
40
  version: '0'
39
41
  requirements: []
40
42
  rubyforge_project:
41
- rubygems_version: 2.0.14
43
+ rubygems_version: 1.8.28
42
44
  signing_key:
43
- specification_version: 4
45
+ specification_version: 3
44
46
  summary: DotCover Rake Task
45
47
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: d4556e196eaa77b32cf99560037d06927d96ccd3
4
- data.tar.gz: 51973bab0594b0ddaa008d13a9fd3f0786a1ff0c
5
- SHA512:
6
- metadata.gz: dfbddd578f94f31663fbac3cdf88eb90eac132e46c61dc161f90669d0cd6038bf194fa891810ac1871a4371dc8050a1bac672556fa0df0c5ebebf01264af46b1
7
- data.tar.gz: a06fb18f11c7923f880de492783442c926842f835402344692ad44fb9d964f90038fadaab0202a1baeb12abfb84cab756c4376997acf11a481cbe34537ebe27d