tapout 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.ruby +1 -1
- data/HISTORY.rdoc +11 -0
- data/PROFILE +1 -1
- data/lib/tapout/adapters/perl.rb +11 -0
- data/lib/tapout/parsers/perl.rb +2 -2
- data/lib/tapout/reporters/html.rb +1 -1
- data/lib/tapout/version.rb +1 -1
- data/qed/perl_adapter.rdoc +1 -1
- metadata +7 -7
data/.ruby
CHANGED
data/HISTORY.rdoc
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
= RELEASE HISTORY
|
2
2
|
|
3
|
+
== 0.2.1 / 2011-10-07
|
4
|
+
|
5
|
+
A quick fix for a malformed require call in the HTML reporter,
|
6
|
+
and a fix for indention in the legacy TAP adapter.
|
7
|
+
|
8
|
+
Changes:
|
9
|
+
|
10
|
+
* Fix require in html reporter.
|
11
|
+
* Fix indention of YAML in legacy TAP adapter.
|
12
|
+
|
13
|
+
|
3
14
|
== 0.2.0 / 2011-10-06
|
4
15
|
|
5
16
|
This realease revises the specification a bit, primarily
|
data/PROFILE
CHANGED
data/lib/tapout/adapters/perl.rb
CHANGED
@@ -95,6 +95,7 @@ module TapOut
|
|
95
95
|
when :not_ok
|
96
96
|
line = cache[0]
|
97
97
|
yaml = cache[1..-2].join('')
|
98
|
+
yaml = unindent(yaml)
|
98
99
|
data = YAML.load(yaml)
|
99
100
|
md = /^not ok\s+(\d+)\s*\-?\s*(.*?)($|#)/.match(line)
|
100
101
|
entry = convert_not_ok(md[1], md[2], data)
|
@@ -164,6 +165,16 @@ module TapOut
|
|
164
165
|
entry
|
165
166
|
end
|
166
167
|
|
168
|
+
#
|
169
|
+
def unindent(yaml)
|
170
|
+
if md = /^\s+/.match(yaml)
|
171
|
+
re = Regexp.escape(md[0])
|
172
|
+
yaml.gsub(/^#{re}/, '')
|
173
|
+
else
|
174
|
+
yaml
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
167
178
|
end
|
168
179
|
|
169
180
|
end
|
data/lib/tapout/parsers/perl.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
require 'tapout/version'
|
2
|
-
require 'tapout/
|
2
|
+
require 'tapout/adapters/perl'
|
3
3
|
require 'tapout/reporters'
|
4
4
|
|
5
5
|
module TapOut
|
6
6
|
|
7
7
|
# The TAPLegacy Parser takes a traditional TAP stream and routes
|
8
8
|
# it through a Tap Out report format.
|
9
|
-
class
|
9
|
+
class PerlParser
|
10
10
|
|
11
11
|
# options[:format] - the report format to use
|
12
12
|
def initialize(options={})
|
data/lib/tapout/version.rb
CHANGED
data/qed/perl_adapter.rdoc
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tapout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-10-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ansi
|
16
|
-
requirement: &
|
16
|
+
requirement: &25247780 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *25247780
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: detroit
|
27
|
-
requirement: &
|
27
|
+
requirement: &25247240 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *25247240
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: qed
|
38
|
-
requirement: &
|
38
|
+
requirement: &25246740 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *25246740
|
47
47
|
description: Tapout is a TAP consumer that can take any TAP, TAP-Y or TAP-J stream
|
48
48
|
and output it in a variety of useful formats.
|
49
49
|
email:
|