rspec-formatter-webkit 2.1.4 → 2.1.5
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.
- data/History.rdoc +5 -0
- data/README.rdoc +45 -0
- data/lib/rspec/core/formatters/webkit.rb +12 -2
- data.tar.gz.sig +0 -0
- metadata +116 -81
- metadata.gz.sig +0 -0
data/History.rdoc
CHANGED
data/README.rdoc
CHANGED
|
@@ -13,6 +13,7 @@ Test output looks like this:
|
|
|
13
13
|
|
|
14
14
|
http://deveiate.org/images/tmrspec-example.png
|
|
15
15
|
|
|
16
|
+
|
|
16
17
|
== Installation
|
|
17
18
|
|
|
18
19
|
To get started, install the `rspec-formatter-webkit` gem:
|
|
@@ -39,3 +40,47 @@ Gecko/Firefox-based viewers, as well.
|
|
|
39
40
|
|
|
40
41
|
Patches/suggestions welcomed.
|
|
41
42
|
|
|
43
|
+
|
|
44
|
+
== Contributing
|
|
45
|
+
|
|
46
|
+
You can check out the current development source with Mercurial via its
|
|
47
|
+
{project page}[ssh://repo.deveiate.org/rspec-formatter-webkit]. Or if you prefer Git, via
|
|
48
|
+
{its Github mirror}[https://github.com/ged/rspec-formatter-webkit].
|
|
49
|
+
|
|
50
|
+
After checking out the source, run:
|
|
51
|
+
|
|
52
|
+
$ rake newb
|
|
53
|
+
|
|
54
|
+
This task will install any missing dependencies and generate the API documentation.
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
== License
|
|
58
|
+
|
|
59
|
+
Copyright (c) 2009-2012, Michael Granger
|
|
60
|
+
All rights reserved.
|
|
61
|
+
|
|
62
|
+
Redistribution and use in source and binary forms, with or without
|
|
63
|
+
modification, are permitted provided that the following conditions are met:
|
|
64
|
+
|
|
65
|
+
* Redistributions of source code must retain the above copyright notice,
|
|
66
|
+
this list of conditions and the following disclaimer.
|
|
67
|
+
|
|
68
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
69
|
+
this list of conditions and the following disclaimer in the documentation
|
|
70
|
+
and/or other materials provided with the distribution.
|
|
71
|
+
|
|
72
|
+
* Neither the name of the author/s, nor the names of the project's
|
|
73
|
+
contributors may be used to endorse or promote products derived from this
|
|
74
|
+
software without specific prior written permission.
|
|
75
|
+
|
|
76
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
77
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
78
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
79
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
|
80
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
81
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
82
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
83
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
84
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
85
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
86
|
+
|
|
@@ -7,12 +7,14 @@ require 'pathname'
|
|
|
7
7
|
require 'rspec'
|
|
8
8
|
require 'rspec/core/formatters/base_text_formatter'
|
|
9
9
|
require 'rspec/core/formatters/snippet_extractor'
|
|
10
|
+
require 'rspec/core/pending'
|
|
11
|
+
|
|
10
12
|
|
|
11
13
|
class RSpec::Core::Formatters::WebKit < RSpec::Core::Formatters::BaseTextFormatter
|
|
12
14
|
include ERB::Util
|
|
13
15
|
|
|
14
16
|
# Version constant
|
|
15
|
-
VERSION = '2.1.
|
|
17
|
+
VERSION = '2.1.5'
|
|
16
18
|
|
|
17
19
|
# Look up the datadir falling back to a relative path (mostly for prerelease testing)
|
|
18
20
|
DATADIR = begin
|
|
@@ -39,6 +41,14 @@ class RSpec::Core::Formatters::WebKit < RSpec::Core::Formatters::BaseTextFormatt
|
|
|
39
41
|
# Pattern to match for excluding lines from backtraces
|
|
40
42
|
BACKTRACE_EXCLUDE_PATTERN = %r{spec/mate|textmate-command|rspec(-(core|expectations|mocks))?/}
|
|
41
43
|
|
|
44
|
+
# Figure out which class pending-example-fixed errors are (2.8 change)
|
|
45
|
+
PENDING_FIXED_EXCEPTION = if defined?( RSpec::Core::Pending::PendingExampleFixedError )
|
|
46
|
+
RSpec::Core::Pending::PendingExampleFixedError
|
|
47
|
+
else
|
|
48
|
+
RSpec::Core::PendingExampleFixedError
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
|
|
42
52
|
### Create a new formatter
|
|
43
53
|
def initialize( output ) # :notnew:
|
|
44
54
|
super
|
|
@@ -149,7 +159,7 @@ class RSpec::Core::Formatters::WebKit < RSpec::Core::Formatters::BaseTextFormatt
|
|
|
149
159
|
counter = self.failcounter += 1
|
|
150
160
|
exception = example.metadata[:execution_result][:exception]
|
|
151
161
|
extra = self.extra_failure_content( exception )
|
|
152
|
-
template = if exception.is_a?(
|
|
162
|
+
template = if exception.is_a?( PENDING_FIXED_EXCEPTION )
|
|
153
163
|
then @example_templates[:pending_fixed]
|
|
154
164
|
else @example_templates[:failed]
|
|
155
165
|
end
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,119 +1,138 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec-formatter-webkit
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
hash: 1
|
|
5
5
|
prerelease:
|
|
6
|
+
segments:
|
|
7
|
+
- 2
|
|
8
|
+
- 1
|
|
9
|
+
- 5
|
|
10
|
+
version: 2.1.5
|
|
6
11
|
platform: ruby
|
|
7
|
-
authors:
|
|
12
|
+
authors:
|
|
8
13
|
- Michael Granger
|
|
9
14
|
autorequire:
|
|
10
15
|
bindir: bin
|
|
11
|
-
cert_chain:
|
|
12
|
-
-
|
|
13
|
-
|
|
16
|
+
cert_chain:
|
|
17
|
+
- |
|
|
18
|
+
-----BEGIN CERTIFICATE-----
|
|
14
19
|
MIIDLDCCAhSgAwIBAgIBADANBgkqhkiG9w0BAQUFADA8MQwwCgYDVQQDDANnZWQx
|
|
15
|
-
|
|
16
20
|
FzAVBgoJkiaJk/IsZAEZFgdfYWVyaWVfMRMwEQYKCZImiZPyLGQBGRYDb3JnMB4X
|
|
17
|
-
|
|
18
21
|
DTEwMDkxNjE0NDg1MVoXDTExMDkxNjE0NDg1MVowPDEMMAoGA1UEAwwDZ2VkMRcw
|
|
19
|
-
|
|
20
22
|
FQYKCZImiZPyLGQBGRYHX2FlcmllXzETMBEGCgmSJomT8ixkARkWA29yZzCCASIw
|
|
21
|
-
|
|
22
23
|
DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALy//BFxC1f/cPSnwtJBWoFiFrir
|
|
23
|
-
|
|
24
24
|
h7RicI+joq/ocVXQqI4TDWPyF/8tqkvt+rD99X9qs2YeR8CU/YiIpLWrQOYST70J
|
|
25
|
-
|
|
26
25
|
vDn7Uvhb2muFVqq6+vobeTkILBEO6pionWDG8jSbo3qKm1RjKJDwg9p4wNKhPuu8
|
|
27
|
-
|
|
28
26
|
KGue/BFb67KflqyApPmPeb3Vdd9clspzqeFqp7cUBMEpFS6LWxy4Gk+qvFFJBJLB
|
|
29
|
-
|
|
30
27
|
BUHE/LZVJMVzfpC5Uq+QmY7B+FH/QqNndn3tOHgsPadLTNimuB1sCuL1a4z3Pepd
|
|
31
|
-
|
|
32
28
|
TeLBEFmEao5Dk3K/Q8o8vlbIB/jBDTUx6Djbgxw77909x6gI9doU4LD5XMcCAwEA
|
|
33
|
-
|
|
34
29
|
AaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFJeoGkOr9l4B
|
|
35
|
-
|
|
36
30
|
+saMkW/ZXT4UeSvVMA0GCSqGSIb3DQEBBQUAA4IBAQBG2KObvYI2eHyyBUJSJ3jN
|
|
37
|
-
|
|
38
31
|
vEnU3d60znAXbrSd2qb3r1lY1EPDD3bcy0MggCfGdg3Xu54z21oqyIdk8uGtWBPL
|
|
39
|
-
|
|
40
32
|
HIa9EgfFGSUEgvcIvaYqiN4jTUtidfEFw+Ltjs8AP9gWgSIYS6Gr38V0WGFFNzIH
|
|
41
|
-
|
|
42
33
|
aOD2wmu9oo/RffW4hS/8GuvfMzcw7CQ355wFR4KB/nyze+EsZ1Y5DerCAagMVuDQ
|
|
43
|
-
|
|
44
34
|
U0BLmWDFzPGGWlPeQCrYHCr+AcJz+NRnaHCKLZdSKj/RHuTOt+gblRex8FAh8NeA
|
|
45
|
-
|
|
46
35
|
cmlhXe46pZNJgWKbxZah85jIjx95hR8vOI+NAM5iH9kOqK13DrxacTKPhqj5PjwF
|
|
47
|
-
|
|
48
36
|
-----END CERTIFICATE-----
|
|
49
37
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
- !ruby/object:Gem::Dependency
|
|
38
|
+
date: 2012-01-09 00:00:00 Z
|
|
39
|
+
dependencies:
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
54
41
|
name: rspec-core
|
|
55
|
-
|
|
42
|
+
prerelease: false
|
|
43
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
|
56
44
|
none: false
|
|
57
|
-
requirements:
|
|
45
|
+
requirements:
|
|
58
46
|
- - ~>
|
|
59
|
-
- !ruby/object:Gem::Version
|
|
60
|
-
|
|
47
|
+
- !ruby/object:Gem::Version
|
|
48
|
+
hash: 13
|
|
49
|
+
segments:
|
|
50
|
+
- 2
|
|
51
|
+
- 7
|
|
52
|
+
version: "2.7"
|
|
61
53
|
type: :runtime
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
- !ruby/object:Gem::Dependency
|
|
54
|
+
version_requirements: *id001
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
65
56
|
name: hoe-mercurial
|
|
66
|
-
|
|
57
|
+
prerelease: false
|
|
58
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
|
67
59
|
none: false
|
|
68
|
-
requirements:
|
|
60
|
+
requirements:
|
|
69
61
|
- - ~>
|
|
70
|
-
- !ruby/object:Gem::Version
|
|
62
|
+
- !ruby/object:Gem::Version
|
|
63
|
+
hash: 25
|
|
64
|
+
segments:
|
|
65
|
+
- 1
|
|
66
|
+
- 3
|
|
67
|
+
- 1
|
|
71
68
|
version: 1.3.1
|
|
72
69
|
type: :development
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
- !ruby/object:Gem::Dependency
|
|
70
|
+
version_requirements: *id002
|
|
71
|
+
- !ruby/object:Gem::Dependency
|
|
76
72
|
name: hoe-highline
|
|
77
|
-
|
|
73
|
+
prerelease: false
|
|
74
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
|
78
75
|
none: false
|
|
79
|
-
requirements:
|
|
76
|
+
requirements:
|
|
80
77
|
- - ~>
|
|
81
|
-
- !ruby/object:Gem::Version
|
|
78
|
+
- !ruby/object:Gem::Version
|
|
79
|
+
hash: 29
|
|
80
|
+
segments:
|
|
81
|
+
- 0
|
|
82
|
+
- 0
|
|
83
|
+
- 1
|
|
82
84
|
version: 0.0.1
|
|
83
85
|
type: :development
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
- !ruby/object:Gem::Dependency
|
|
86
|
+
version_requirements: *id003
|
|
87
|
+
- !ruby/object:Gem::Dependency
|
|
87
88
|
name: hoe
|
|
88
|
-
|
|
89
|
+
prerelease: false
|
|
90
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
|
89
91
|
none: false
|
|
90
|
-
requirements:
|
|
92
|
+
requirements:
|
|
91
93
|
- - ~>
|
|
92
|
-
- !ruby/object:Gem::Version
|
|
93
|
-
|
|
94
|
+
- !ruby/object:Gem::Version
|
|
95
|
+
hash: 27
|
|
96
|
+
segments:
|
|
97
|
+
- 2
|
|
98
|
+
- 12
|
|
99
|
+
version: "2.12"
|
|
94
100
|
type: :development
|
|
101
|
+
version_requirements: *id004
|
|
102
|
+
- !ruby/object:Gem::Dependency
|
|
103
|
+
name: rdoc
|
|
95
104
|
prerelease: false
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
105
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
|
106
|
+
none: false
|
|
107
|
+
requirements:
|
|
108
|
+
- - ~>
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
hash: 19
|
|
111
|
+
segments:
|
|
112
|
+
- 3
|
|
113
|
+
- 10
|
|
114
|
+
version: "3.10"
|
|
115
|
+
type: :development
|
|
116
|
+
version_requirements: *id005
|
|
117
|
+
description: |-
|
|
118
|
+
This is a formatter for RSpec 2 that takes advantage of features in
|
|
99
119
|
WebKit[http://webkit.org/] to make the output from RSpec in Textmate more
|
|
100
|
-
|
|
101
120
|
fun.
|
|
102
|
-
|
|
103
|
-
|
|
121
|
+
|
|
104
122
|
Test output looks like this:
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
email:
|
|
123
|
+
|
|
124
|
+
http://deveiate.org/images/tmrspec-example.png
|
|
125
|
+
email:
|
|
109
126
|
- ged@FaerieMUD.org
|
|
110
127
|
executables: []
|
|
128
|
+
|
|
111
129
|
extensions: []
|
|
112
|
-
|
|
130
|
+
|
|
131
|
+
extra_rdoc_files:
|
|
113
132
|
- Manifest.txt
|
|
114
133
|
- History.rdoc
|
|
115
134
|
- README.rdoc
|
|
116
|
-
files:
|
|
135
|
+
files:
|
|
117
136
|
- History.rdoc
|
|
118
137
|
- LICENSE
|
|
119
138
|
- Manifest.txt
|
|
@@ -163,33 +182,49 @@ files:
|
|
|
163
182
|
- lib/rspec/core/formatters/web_kit.rb
|
|
164
183
|
- lib/rspec/core/formatters/webkit.rb
|
|
165
184
|
homepage: http://deveiate.org/webkit-rspec-formatter.html
|
|
166
|
-
licenses:
|
|
185
|
+
licenses:
|
|
167
186
|
- BSD
|
|
168
|
-
post_install_message:
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
187
|
+
post_install_message: |+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
You can use this formatter from TextMate by setting the TM_RSPEC_OPTS
|
|
191
|
+
shell variable (in the 'Advanced' preference pane) to:
|
|
192
|
+
|
|
193
|
+
--format RSpec::Core::Formatters::WebKit
|
|
194
|
+
|
|
195
|
+
Have fun!
|
|
196
|
+
|
|
197
|
+
rdoc_options:
|
|
172
198
|
- --main
|
|
173
199
|
- README.rdoc
|
|
174
|
-
require_paths:
|
|
200
|
+
require_paths:
|
|
175
201
|
- lib
|
|
176
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
202
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
177
203
|
none: false
|
|
178
|
-
requirements:
|
|
179
|
-
- -
|
|
180
|
-
- !ruby/object:Gem::Version
|
|
204
|
+
requirements:
|
|
205
|
+
- - ">="
|
|
206
|
+
- !ruby/object:Gem::Version
|
|
207
|
+
hash: 57
|
|
208
|
+
segments:
|
|
209
|
+
- 1
|
|
210
|
+
- 8
|
|
211
|
+
- 7
|
|
181
212
|
version: 1.8.7
|
|
182
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
213
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
183
214
|
none: false
|
|
184
|
-
requirements:
|
|
185
|
-
- -
|
|
186
|
-
- !ruby/object:Gem::Version
|
|
187
|
-
|
|
215
|
+
requirements:
|
|
216
|
+
- - ">="
|
|
217
|
+
- !ruby/object:Gem::Version
|
|
218
|
+
hash: 3
|
|
219
|
+
segments:
|
|
220
|
+
- 0
|
|
221
|
+
version: "0"
|
|
188
222
|
requirements: []
|
|
223
|
+
|
|
189
224
|
rubyforge_project: rspec-formatter-webkit
|
|
190
|
-
rubygems_version: 1.8.
|
|
225
|
+
rubygems_version: 1.8.12
|
|
191
226
|
signing_key:
|
|
192
227
|
specification_version: 3
|
|
193
|
-
summary: This is a formatter for RSpec 2 that takes advantage of features in WebKit[http://webkit.org/]
|
|
194
|
-
to make the output from RSpec in Textmate more fun
|
|
228
|
+
summary: This is a formatter for RSpec 2 that takes advantage of features in WebKit[http://webkit.org/] to make the output from RSpec in Textmate more fun
|
|
195
229
|
test_files: []
|
|
230
|
+
|
metadata.gz.sig
CHANGED
|
Binary file
|