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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZGUzMWJmNmI4YTIyN2NhYTVkNzM2YTczY2EyMjJmZGIyZjZkODVmMQ==
4
+ ZTEzZGFiNGNhYjhkYjAyNDBiNWZhNTc2NGNhMTIyZWRjNGRhZmE2Mg==
5
5
  data.tar.gz: !binary |-
6
- ODhhYzkyNWI4MWFiMDc4ZWMwNzM4NTU0ZmMzOTFkNTRjNzg3NjE4Mg==
6
+ YmU3ZWJkMTQ3YmQ3ZjI4MzIzYWIzYTNmYmI5YjJmZjM5NjU1ZjFkNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- N2VjNmVlN2UzZmZhOWViZDEzMGI1ZjkyYjc3YzdhYzQ0NGMyYzdkMGU2Yzg4
10
- Njk4MzE3OWRmMTIxNTIxYjE2N2ZkNmMyNjZjOTM3OGQwNGU5MDA2NWIxNmQw
11
- YWYyOTc5M2E0YzRlNWZmMjNmNmMzYjE0ZWNjYzZjZDVlNjY0OTQ=
9
+ ZDVmNjdkZGYxMDNjMTRkNzk1MWEyNmJjMDY5YjY5ZTdjZTliYzBiOGEyODZm
10
+ ZjlkNDQwNmUzOTY5NmE4NWIwMDU4YjA0MDg5M2ZmZjUxNDQ2NWVhZjUxMjVh
11
+ Mjc2MDhjMDkxZjMzNDA4YjZmNTZjN2M5NWQzMjdkYjkyM2ZhOWQ=
12
12
  data.tar.gz: !binary |-
13
- OTQ4NDcxZmViMDAyMzhkOTBiODBjMGMxMDM1NzI2NDE4NWYyOTk1M2FkMzZj
14
- OTIwMDJhZWYyYmVjNjA2MWE2YTUzMGI0MmRlYmRmN2YxODJiMzQwOTQzOGY4
15
- OTFiNzkwZWQ3MjU4YWFlZjA5MTVkNzhmYjRiYjZjN2Q5NWVlODE=
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
- * ruby-head
36
- * 2.3
37
- * 2.2
38
- * 2.1
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
 
@@ -4,7 +4,7 @@ require 'rexml/element'
4
4
  module SimpleCov
5
5
  module Formatter
6
6
  class CoberturaFormatter
7
- VERSION = '1.1.0'
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
@@ -1,11 +1,9 @@
1
1
  language: ruby
2
2
 
3
3
  rvm:
4
- - ruby-head
5
- - 2.3.0
6
- - 2.2.0
7
- - 2.1.5
8
- - 2.0.0
4
+ - 2.3.1
5
+ - 2.2.5
6
+ - 2.1.10
9
7
  - 1.9.3
10
8
  - jruby-19mode
11
9
 
@@ -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.add_runtime_dependency 'simplecov', '~> 0.8'
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.1.0
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-03-26 00:00:00.000000000 Z
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