foodcritic-junit 0.1.7 → 0.2.0

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: a7529d54c6c5b7f5439cbcc1737c85a97b678ec8
4
- data.tar.gz: 9cf5bcf3a79ef37a4e6d755d04670b310ea274a8
3
+ metadata.gz: 9f3b81709705972df2c617e822ccf45ef8e0eea2
4
+ data.tar.gz: 05ba866ee057c4bbb4634dff0a65f041db12e4c7
5
5
  SHA512:
6
- metadata.gz: 02bc67e05bc499d9968fd9eeab37524228be81735b9694feedd578b6140b368ea33b4b9cfcc596a6ab113f627d3c0c3bfd19b7fe57b6878feffa18651801261d
7
- data.tar.gz: 64fdd0ce6e5b8ba529e4dda96d541bcfb3a93a0c8ae75f28f7463680dfa4cc9889561fce1154d9fbd89ad14c2ff7a373e04cc9bf1083263fcd2c165332f593f2
6
+ metadata.gz: 355616baa56b06fae478ed295c5bc67679ae8a315528f48d257831ce61adc500e91c793dfa5a96b661b2eec7b8e81ee3f3a00d3b47c41ecdd02bb4ee32f98ebc
7
+ data.tar.gz: 969058aa08ed71c60e4f981868ce2441d6f81028d5376dae0369f0ddf72c4790f279bcb14982454231e1f0564e806964aa2eba930e19131be781bab221da44ec
@@ -64,9 +64,9 @@ module Foodcritic
64
64
  <<-EOS
65
65
  <?xml version="1.0" encoding="UTF-8"?>
66
66
  <testsuites>
67
- <testsuite name=#{cookbook_name.encode(xml: :attr)} timestamp=#{Time.now.utc.iso8601.to_s.encode(xml: :attr)}>
68
- #{violations_as_xml}
69
- </testsuite>
67
+ <testsuite name=#{cookbook_name.encode(xml: :attr)} timestamp=#{Time.now.utc.iso8601.to_s.encode(xml: :attr)}>
68
+ #{violations_as_xml}
69
+ </testsuite>
70
70
  </testsuites>
71
71
  EOS
72
72
  end
@@ -84,11 +84,11 @@ module Foodcritic
84
84
  file_name = violation[:file_name].encode(xml: :attr)
85
85
  location = "Located in #{violation[:file_name]}".encode(xml: :attr)
86
86
  <<-EOS
87
- <testcase name=#{name} classname=#{file_name} assertions="0" time="0">
88
- <error type=#{name} message=#{location}>
89
- #{violation[:lines].encode(xml: :text)}
90
- </error>
91
- </testcase>
87
+ <testcase name=#{name} classname=#{file_name} assertions="0" time="0">
88
+ <error type=#{name} message=#{location}>
89
+ #{violation[:lines].encode(xml: :text)}
90
+ </error>
91
+ </testcase>
92
92
  EOS
93
93
  end
94
94
  end
@@ -1,5 +1,5 @@
1
1
  module Foodcritic
2
2
  module Junit
3
- VERSION = "0.1.7"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foodcritic-junit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Vendetta