simplecov-cobertura 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +5 -6
- data/lib/simplecov-cobertura.rb +3 -2
- data/shippable.yml +3 -5
- data/simplecov-cobertura.gemspec +2 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTEzZGFiNGNhYjhkYjAyNDBiNWZhNTc2NGNhMTIyZWRjNGRhZmE2Mg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YmU3ZWJkMTQ3YmQ3ZjI4MzIzYWIzYTNmYmI5YjJmZjM5NjU1ZjFkNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDVmNjdkZGYxMDNjMTRkNzk1MWEyNmJjMDY5YjY5ZTdjZTliYzBiOGEyODZm
|
10
|
+
ZjlkNDQwNmUzOTY5NmE4NWIwMDU4YjA0MDg5M2ZmZjUxNDQ2NWVhZjUxMjVh
|
11
|
+
Mjc2MDhjMDkxZjMzNDA4YjZmNTZjN2M5NWQzMjdkYjkyM2ZhOWQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NjU4ODZjMjlhMTI0MGVjOTZlZTc0M2Q4NjUwZDVlYTE0MzA4ZmNiNWI4OTFl
|
14
|
+
ZmVlOWJlYTViMjg3ODk3MWZlODg3ZjllZjI0ZTY2NDIxOWUzMDRmNTllOTcz
|
15
|
+
MzY1MWIwZjNhMmUxNjQ5YzE3MmQzNTljZjllNmEzODRhZTAwODU=
|
data/README.md
CHANGED
@@ -32,12 +32,10 @@ SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter
|
|
32
32
|
|
33
33
|
## Continuous Integration
|
34
34
|
Tested in a CI environment against the following Ruby versions:
|
35
|
-
*
|
36
|
-
* 2.
|
37
|
-
* 2.
|
38
|
-
*
|
39
|
-
* 2.0.0
|
40
|
-
* 1.9
|
35
|
+
* 2.3.1
|
36
|
+
* 2.2.5
|
37
|
+
* 2.1.10
|
38
|
+
* 1.9.3
|
41
39
|
* JRuby (1.9 mode)
|
42
40
|
|
43
41
|
## Known Limitations
|
@@ -47,6 +45,7 @@ Tested in a CI environment against the following Ruby versions:
|
|
47
45
|
* Jesse Bowes
|
48
46
|
* Sean Clemmer
|
49
47
|
* Ivailo Petrov
|
48
|
+
* Rob Lester
|
50
49
|
|
51
50
|
## Contributing
|
52
51
|
|
data/lib/simplecov-cobertura.rb
CHANGED
@@ -4,7 +4,7 @@ require 'rexml/element'
|
|
4
4
|
module SimpleCov
|
5
5
|
module Formatter
|
6
6
|
class CoberturaFormatter
|
7
|
-
VERSION = '1.
|
7
|
+
VERSION = '1.2.0'
|
8
8
|
|
9
9
|
RESULT_FILE_NAME = 'coverage.xml'
|
10
10
|
DTD_URL = 'http://cobertura.sourceforge.net/xml/coverage-04.dtd'
|
@@ -27,6 +27,7 @@ module SimpleCov
|
|
27
27
|
private
|
28
28
|
def result_to_xml(result)
|
29
29
|
doc = REXML::Document.new set_xml_head
|
30
|
+
doc.context[:attribute_quote] = :quote
|
30
31
|
doc.add_element REXML::Element.new('coverage')
|
31
32
|
coverage = doc.root
|
32
33
|
|
@@ -106,6 +107,7 @@ module SimpleCov
|
|
106
107
|
end
|
107
108
|
|
108
109
|
def set_xml_head(lines=[])
|
110
|
+
lines << "<?xml version=\"1.0\"?>"
|
109
111
|
lines << "<!DOCTYPE coverage SYSTEM \"#{DTD_URL}\">"
|
110
112
|
lines << "<!-- Generated by simplecov-cobertura version #{VERSION} (https://github.com/dashingrocket/simplecov-cobertura) -->"
|
111
113
|
lines.join("\n")
|
@@ -113,4 +115,3 @@ module SimpleCov
|
|
113
115
|
end
|
114
116
|
end
|
115
117
|
end
|
116
|
-
|
data/shippable.yml
CHANGED
data/simplecov-cobertura.gemspec
CHANGED
@@ -25,5 +25,6 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.add_development_dependency 'ci_reporter_test_unit', '~> 1.0'
|
26
26
|
spec.add_development_dependency 'nokogiri', '~> 1.6'
|
27
27
|
|
28
|
-
spec.
|
28
|
+
spec.add_dependency 'simplecov', '~> 0.8'
|
29
|
+
spec.add_dependency 'json', '~> 1.8'
|
29
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplecov-cobertura
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesse Bowes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - ~>
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0.8'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: json
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ~>
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.8'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ~>
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.8'
|
83
97
|
description: Produces Cobertura XML formatted output from SimpleCov
|
84
98
|
email:
|
85
99
|
- jbowes@dashingrocket.com
|