covhura 0.0.2 → 0.0.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf3df102e2f0a35ce06e33bca52a82744a522968
4
- data.tar.gz: 23410c79deefd695d11625cd95e4e2168262c982
3
+ metadata.gz: ad5dc2c2208e11813f146cbadcec863b7a230961
4
+ data.tar.gz: 5b43b1d343f147a918237d4d71dba7a9360cefe7
5
5
  SHA512:
6
- metadata.gz: e77c29aba5b090b40754cd4e7b4b159ee32961cb8e993408fe970b6d8e444448b493a55f04bea0450b782c440e6a96df63699bb6141e555338278461b34ecd3e
7
- data.tar.gz: 356c62803069ea720f097de41641bc0be5d3abc38734f9b11765595979bafbda70fab33ee5853e4b62e350d02061ae58ae86250c1fca8811288784887398dcf3
6
+ metadata.gz: 74e67b960d76cf02c19a62db99b202852e591f7b0efca12e7b0b30da95b970917f446d1c929b4fb8e4055052e11fa380841873f4c6ee529cc00ba567accd7452
7
+ data.tar.gz: ca842311299afe0482c94c3b95caf7358e19d94b02176cb3ffa0f5916484a9ee444a3cc00f7bfc74a67b7b25073a9de5ec16db9763de707655be39b1266d6f06
@@ -53,7 +53,7 @@ class Covhura
53
53
  private
54
54
 
55
55
  def clover?(doc)
56
- doc.xpath("/coverage")&.attr("clover") != nil
56
+ doc.xpath("/coverage")&.attr("generated") != nil
57
57
  end
58
58
 
59
59
  def cobertura?(doc)
@@ -3,8 +3,9 @@ class Report::Clover
3
3
  doc
4
4
  .xpath("//file")
5
5
  .reduce({}) do |acc, file|
6
- acc[file.attr("path")] ||= {}
7
- acc[file.attr("path")][:lines] = file
6
+ file_path = file.attr("path") || file.attr("name")
7
+ acc[file_path] ||= {}
8
+ acc[file_path][:lines] = file
8
9
  .xpath("line")
9
10
  .reduce({}) do |bcc, line|
10
11
  line_num = line.attr("num").to_i
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: covhura
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Yahn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-31 00:00:00.000000000 Z
11
+ date: 2018-09-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Translate code coverage reports into a universal format.
14
14
  email: yahn007@outlook.com
@@ -24,9 +24,9 @@ files:
24
24
  - lib/report/cobertura.rb
25
25
  - lib/report/lcov.rb
26
26
  - lib/report/simplecov.rb
27
- homepage: https://github.com/cuzzo/covhura
27
+ homepage: https://bitbucket.org/cuzzo/covhura
28
28
  licenses:
29
- - BSD-2-Clause
29
+ - Nonstandard
30
30
  metadata: {}
31
31
  post_install_message:
32
32
  rdoc_options: []