rubocop-junit-formatter 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubocop/formatter/junit_formatter.rb +1 -2
- data/rubocop-junit-formatter.gemspec +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: 2f46ce11741763314e5103f1285b5a0d6ac32f33
|
4
|
+
data.tar.gz: 276fa6928e20d708ff6aecf87707d74a3845b37b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b0b119566ef356ee8f8e63f82c0df2512db0cd5ef60a12ca38d455a97e1a36bf983de82ff1856b20745d631addb24c2296d7bfd181c33a9e93adcd220fd1bed
|
7
|
+
data.tar.gz: 0a25b6bd5e5396ca481e6a004dfd5b2494412a0f843a5a31505a2c70e8bded8742f0c31044c280d19aade00d365b8c56718199ccc7df5fc9e7cf5a769a20900e
|
@@ -17,9 +17,8 @@ module RuboCop
|
|
17
17
|
return if offences.empty?
|
18
18
|
|
19
19
|
offences.group_by(&:cop_name).each do |cop, cop_offences|
|
20
|
-
# require 'pry';binding.pry
|
21
20
|
REXML::Element.new('testcase', @testsuite).tap do |f|
|
22
|
-
f.attributes['classname'] = file.gsub("#{Dir.pwd}/", '').gsub('/', '.')
|
21
|
+
f.attributes['classname'] = file.gsub(/\.rb\Z/, '').gsub("#{Dir.pwd}/", '').gsub('/', '.')
|
23
22
|
f.attributes['name'] = cop
|
24
23
|
|
25
24
|
cop_offences.each do |offence|
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "rubocop-junit-formatter"
|
7
|
-
spec.version = '0.1.
|
7
|
+
spec.version = '0.1.1'
|
8
8
|
spec.authors = ["Mikko Kokkonen"]
|
9
9
|
spec.email = ["mikko@owlforestry.com"]
|
10
10
|
spec.summary = %q{Outputs RuboCop Offences as JUnit report}
|