rspec-buildkite 0.1.6 → 0.1.7
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 +4 -4
- data/README.md +1 -1
- data/lib/rspec/buildkite/annotation_formatter.rb +13 -11
- data/lib/rspec/buildkite/recolorizer.rb +2 -0
- data/lib/rspec/buildkite/version.rb +3 -1
- data/lib/rspec/buildkite.rb +2 -0
- metadata +4 -29
- checksums.yaml.gz.sig +0 -2
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c55c49470425b862360df7e5d1ac7ed5e3046b2a79db0f3eaa23b67ff42922bf
|
|
4
|
+
data.tar.gz: add6c7fee205920b7d7b5a1fbef998c839836600811e9432ec32dd06603e1504
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b04206eec3888860768f9550b8aedac0c3beba1ad0112b1018d09781a21a5b8792129dd320264747fa5b8fd71d98c4528006348bdaedde0d267925fce2b24fc7
|
|
7
|
+
data.tar.gz: 63bd8f5137aa05676da57f91509017b5f8b6c889daae25c0a8dc94f20a3f11807295b84cf300e0c6a4e9888e7248bf830ac9548b5d613bd45c2577b6dd28fa97
|
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Output [RSpec][rspec] failure messages as [Buildkite annotations][buildkite-annotations] as soon as they happen so you can fix them while your build finishes.
|
|
4
4
|
|
|
5
|
-
![A Buildkite build still in progress with an annotation showing an RSpec failure][screenshot]
|
|
5
|
+
[![A Buildkite build still in progress with an annotation showing an RSpec failure][screenshot]](https://buildkite.com/buildkite/rspec-buildkite)
|
|
6
6
|
|
|
7
7
|
[rspec]: http://rspec.info
|
|
8
8
|
[buildkite-annotations]: https://buildkite.com/docs/agent/v3/cli-annotate
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
require "thread"
|
|
2
4
|
|
|
3
5
|
require "rspec/core"
|
|
@@ -49,8 +51,8 @@ module RSpec::Buildkite
|
|
|
49
51
|
end
|
|
50
52
|
end
|
|
51
53
|
rescue
|
|
52
|
-
$stderr.puts "Warning: Couldn't create Buildkite annotations:\n"
|
|
53
|
-
" #{$!.to_s}\n"
|
|
54
|
+
$stderr.puts "Warning: Couldn't create Buildkite annotations:\n" +
|
|
55
|
+
" #{$!.to_s}\n" +
|
|
54
56
|
" #{$!.backtrace.join("\n ")}"
|
|
55
57
|
end
|
|
56
58
|
|
|
@@ -59,19 +61,19 @@ module RSpec::Buildkite
|
|
|
59
61
|
job_id = ENV["BUILDKITE_JOB_ID"].to_s
|
|
60
62
|
job_url = "#{build_url}##{job_id}"
|
|
61
63
|
|
|
62
|
-
%{<details>\n}
|
|
63
|
-
%{<summary>#{notification.description.encode(:xml => :text)}</summary>\n}
|
|
64
|
-
%{<pre class="term">#{Recolorizer.recolorize(notification.colorized_message_lines.join("\n").encode(:xml => :text))}</pre>\n}
|
|
65
|
-
format_rerun(notification)
|
|
66
|
-
%{<p>in <a href=#{job_url.encode(:xml => :attr)}>Job ##{job_id.encode(:xml => :text)}</a></p>\n}
|
|
67
|
-
%{</details>}
|
|
64
|
+
%{<details>\n} +
|
|
65
|
+
%{<summary>#{notification.description.encode(:xml => :text)}</summary>\n} +
|
|
66
|
+
%{<pre class="term">#{Recolorizer.recolorize(notification.colorized_message_lines.join("\n").encode(:xml => :text))}</pre>\n} +
|
|
67
|
+
format_rerun(notification) +
|
|
68
|
+
%{<p>in <a href=#{job_url.encode(:xml => :attr)}>Job ##{job_id.encode(:xml => :text)}</a></p>\n} +
|
|
69
|
+
%{</details>} +
|
|
68
70
|
%{\n\n\n}
|
|
69
71
|
end
|
|
70
72
|
|
|
71
73
|
def format_rerun(notification)
|
|
72
|
-
%{<pre class="term">}
|
|
73
|
-
%{<span class="term-fg31">rspec #{notification.example.location_rerun_argument.encode(:xml => :text)}</span>}
|
|
74
|
-
%{ <span class="term-fg36"># #{notification.example.full_description.encode(:xml => :text)}</span>}
|
|
74
|
+
%{<pre class="term">} +
|
|
75
|
+
%{<span class="term-fg31">rspec #{notification.example.location_rerun_argument.encode(:xml => :text)}</span>} +
|
|
76
|
+
%{ <span class="term-fg36"># #{notification.example.full_description.encode(:xml => :text)}</span>} +
|
|
75
77
|
%{</pre>\n}
|
|
76
78
|
end
|
|
77
79
|
end
|
data/lib/rspec/buildkite.rb
CHANGED
metadata
CHANGED
|
@@ -1,35 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec-buildkite
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samuel Cochran
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
|
-
cert_chain:
|
|
11
|
-
-
|
|
12
|
-
-----BEGIN CERTIFICATE-----
|
|
13
|
-
MIIDXDCCAkSgAwIBAgIBATANBgkqhkiG9w0BAQsFADA6MQ0wCwYDVQQDDARzajI2
|
|
14
|
-
MRQwEgYKCZImiZPyLGQBGRYEc2oyNjETMBEGCgmSJomT8ixkARkWA2NvbTAeFw0y
|
|
15
|
-
MjA3MDQwMDQwNDZaFw0yMzA3MDQwMDQwNDZaMDoxDTALBgNVBAMMBHNqMjYxFDAS
|
|
16
|
-
BgoJkiaJk/IsZAEZFgRzajI2MRMwEQYKCZImiZPyLGQBGRYDY29tMIIBIjANBgkq
|
|
17
|
-
hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsr60Eo/ttCk8GMTMFiPr3GoYMIMFvLak
|
|
18
|
-
xSmTk9YGCB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z
|
|
33
11
|
dependencies:
|
|
34
12
|
- !ruby/object:Gem::Dependency
|
|
35
13
|
name: rspec-core
|
|
@@ -115,7 +93,6 @@ dependencies:
|
|
|
115
93
|
- - ">="
|
|
116
94
|
- !ruby/object:Gem::Version
|
|
117
95
|
version: '0'
|
|
118
|
-
description:
|
|
119
96
|
email: sj26@sj26.com
|
|
120
97
|
executables: []
|
|
121
98
|
extensions: []
|
|
@@ -131,7 +108,6 @@ homepage: https://github.com/buildkite/rspec-buildkite
|
|
|
131
108
|
licenses:
|
|
132
109
|
- MIT
|
|
133
110
|
metadata: {}
|
|
134
|
-
post_install_message:
|
|
135
111
|
rdoc_options: []
|
|
136
112
|
require_paths:
|
|
137
113
|
- lib
|
|
@@ -146,8 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
146
122
|
- !ruby/object:Gem::Version
|
|
147
123
|
version: '0'
|
|
148
124
|
requirements: []
|
|
149
|
-
rubygems_version:
|
|
150
|
-
signing_key:
|
|
125
|
+
rubygems_version: 4.0.4
|
|
151
126
|
specification_version: 4
|
|
152
127
|
summary: RSpec formatter creating Buildkite annotations for failures
|
|
153
128
|
test_files: []
|
checksums.yaml.gz.sig
DELETED
data.tar.gz.sig
DELETED
|
Binary file
|
metadata.gz.sig
DELETED
|
Binary file
|