rspec_junit_formatter 0.3.0 → 0.4.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rspec_junit_formatter.rb +4 -8
- data/lib/rspec_junit_formatter/rspec3.rb +27 -1
- metadata +11 -11
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad7496b872a273636e473effb145427f2cf66d94
|
4
|
+
data.tar.gz: b61510be2cfa388a7d450937f8bfb3f75b7c1ee1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18f054c82f287d788bfe67b6288f697bfdcfd2d9e568425c4443b8a507ac37e6e00f190c1f7c7bf6ca3a371d2a31c29dbc1f88ea0347b002c0daa609e596a8c8
|
7
|
+
data.tar.gz: d0ec6791a67eb4c740e12850d95cc13487d107bea68ae6875a4d430da13a426dd3422e60cd79129c86ecad668f453b352fb575b2e1ded75dab406ac6db41bc0a
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
@@ -53,8 +53,6 @@ private
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def xml_dump_failed(example)
|
56
|
-
exception = exception_for(example)
|
57
|
-
|
58
56
|
xml_dump_example(example) do
|
59
57
|
output << %{<failure}
|
60
58
|
output << %{ message="#{escape(failure_message_for(example))}"}
|
@@ -80,11 +78,9 @@ private
|
|
80
78
|
ILLEGAL_REGEXP = Regexp.new(
|
81
79
|
"[^" <<
|
82
80
|
"\u{9}" << # => \t
|
83
|
-
"\u{a}" << #
|
81
|
+
"\u{a}" << # => \n
|
84
82
|
"\u{d}" << # => \r
|
85
83
|
"\u{20}-\u{d7ff}" <<
|
86
|
-
"\u{28}-\u{3b}" <<
|
87
|
-
"\u{3d}" <<
|
88
84
|
"\u{e000}-\u{fffd}" <<
|
89
85
|
"\u{10000}-\u{10ffff}" <<
|
90
86
|
"]"
|
@@ -157,8 +153,8 @@ end
|
|
157
153
|
|
158
154
|
RspecJunitFormatter = RSpecJUnitFormatter
|
159
155
|
|
160
|
-
if RSpec::Core::Version::STRING
|
161
|
-
require "rspec_junit_formatter/rspec2"
|
162
|
-
else
|
156
|
+
if Gem::Version.new(RSpec::Core::Version::STRING) >= Gem::Version.new("3")
|
163
157
|
require "rspec_junit_formatter/rspec3"
|
158
|
+
else
|
159
|
+
require "rspec_junit_formatter/rspec2"
|
164
160
|
end
|
@@ -16,7 +16,7 @@ class RSpecJUnitFormatter < RSpec::Core::Formatters::BaseFormatter
|
|
16
16
|
|
17
17
|
def dump_summary(notification)
|
18
18
|
@summary_notification = notification
|
19
|
-
xml_dump
|
19
|
+
without_color { xml_dump }
|
20
20
|
end
|
21
21
|
|
22
22
|
private
|
@@ -99,6 +99,32 @@ private
|
|
99
99
|
#
|
100
100
|
string.sub(STRIP_DIFF_COLORS_BLOCK_REGEXP) { |match| match.gsub(STRIP_DIFF_COLORS_CODES_REGEXP, "".freeze) }
|
101
101
|
end
|
102
|
+
|
103
|
+
# Completely gross hack for forcing off colorising
|
104
|
+
if Gem::Version.new(RSpec::Core::Version::STRING) >= Gem::Version.new("3.6")
|
105
|
+
WITHOUT_COLOR_KEY = :color_mode
|
106
|
+
WITHOUT_COLOR_VALUE = :off
|
107
|
+
else
|
108
|
+
WITHOUT_COLOR_KEY = :color
|
109
|
+
WITHOUT_COLOR_VALUE = false
|
110
|
+
end
|
111
|
+
def without_color
|
112
|
+
unset = Object.new
|
113
|
+
force = RSpec.configuration.send(:value_for, WITHOUT_COLOR_KEY) { unset }
|
114
|
+
if unset.equal?(force)
|
115
|
+
previous = RSpec.configuration.send(WITHOUT_COLOR_KEY)
|
116
|
+
RSpec.configuration.send(:"#{WITHOUT_COLOR_KEY}=", WITHOUT_COLOR_VALUE)
|
117
|
+
else
|
118
|
+
RSpec.configuration.force({WITHOUT_COLOR_KEY => WITHOUT_COLOR_VALUE})
|
119
|
+
end
|
120
|
+
yield
|
121
|
+
ensure
|
122
|
+
if unset.equal?(force)
|
123
|
+
RSpec.configuration.send(:"#{WITHOUT_COLOR_KEY}=", previous)
|
124
|
+
else
|
125
|
+
RSpec.configuration.force({WITHOUT_COLOR_KEY => force})
|
126
|
+
end
|
127
|
+
end
|
102
128
|
end
|
103
129
|
|
104
130
|
# rspec-core 3.0.x forgot to mark this as a module function which causes:
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec_junit_formatter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Cochran
|
@@ -10,9 +10,9 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
13
|
+
MIIDKDCCAhCgAwIBAgIBBTANBgkqhkiG9w0BAQUFADA6MQ0wCwYDVQQDDARzajI2
|
14
14
|
MRQwEgYKCZImiZPyLGQBGRYEc2oyNjETMBEGCgmSJomT8ixkARkWA2NvbTAeFw0x
|
15
|
-
|
15
|
+
NzA3MzEwNTQ3MDVaFw0xODA3MzEwNTQ3MDVaMDoxDTALBgNVBAMMBHNqMjYxFDAS
|
16
16
|
BgoJkiaJk/IsZAEZFgRzajI2MRMwEQYKCZImiZPyLGQBGRYDY29tMIIBIjANBgkq
|
17
17
|
hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsr60Eo/ttCk8GMTMFiPr3GoYMIMFvLak
|
18
18
|
xSmTk9YGCB6UiEePB4THSSA5w6IPyeaCF/nWkDp3/BAam0eZMWG1IzYQB23TqIM0
|
@@ -21,14 +21,14 @@ cert_chain:
|
|
21
21
|
4O/FL2ChjL2CPCpLZW55ShYyrzphWJwLOJe+FJ/ZBl6YXwrzQM9HKnt4titSNvyU
|
22
22
|
KzE3L63A3PZvExzLrN9u09kuWLLJfXB2sGOlw3n9t72rJiuBr3/OQQIDAQABozkw
|
23
23
|
NzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQU99dfRjEKFyczTeIz
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
24
|
+
m3ZsDWrNC80wDQYJKoZIhvcNAQEFBQADggEBADGiXpvK754s0zTFx3y31ZRDdvAI
|
25
|
+
lA209JIjUlDyr9ptCRadihyfF2l9/hb+hLemiPEYppzG6vEK1TIyzbAR36yOJ8CX
|
26
|
+
4vPkCXLuwHhs6UIRbwN+IEy41nsIlBxmjLYei8h3t/G2Vm2oOaLdbjDXS+Srl9U8
|
27
|
+
shsE8ft81PxSQfzEL7Mr9cC9XvWbHW+SyTpfGm8rAtaqZkNeke4U8a0di4oz2EfA
|
28
|
+
P4lSfmXxsd1C71ckIp0cyXkPhyTtpyS/5hq9HhuUNzEHkSDe36/Rd1xYKV5JxMC2
|
29
|
+
YAttWFUs06lor2q1wwncPaMtUtbWwW35+1IV6xhs2rFY6DD/I6ZkK3GnHdY=
|
30
30
|
-----END CERTIFICATE-----
|
31
|
-
date: 2017-
|
31
|
+
date: 2017-12-05 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rspec-core
|
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
101
|
version: 2.0.0
|
102
102
|
requirements: []
|
103
103
|
rubyforge_project:
|
104
|
-
rubygems_version: 2.6.
|
104
|
+
rubygems_version: 2.6.13
|
105
105
|
signing_key:
|
106
106
|
specification_version: 4
|
107
107
|
summary: RSpec JUnit XML formatter
|
metadata.gz.sig
CHANGED
Binary file
|