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 CHANGED
@@ -30,7 +30,7 @@ load_path:
30
30
  - lib
31
31
  extra: {}
32
32
  date: '2011-10-06'
33
- version: 0.2.0
33
+ version: 0.2.1
34
34
  alternatives: []
35
35
  revision: 0
36
36
  source:
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
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: tapout
3
- version: 0.2.0
3
+ version: 0.2.1
4
4
 
5
5
  title: TapOut
6
6
  summary: Progressive TAP Harness
@@ -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
@@ -1,12 +1,12 @@
1
1
  require 'tapout/version'
2
- require 'tapout/perl_adapter'
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 perlParser
9
+ class PerlParser
10
10
 
11
11
  # options[:format] - the report format to use
12
12
  def initialize(options={})
@@ -1,4 +1,4 @@
1
- require 'test/reporters/abstract'
1
+ require 'tapout/reporters/abstract'
2
2
 
3
3
  module TapOut::Reporters
4
4
 
@@ -1,6 +1,6 @@
1
1
  module TapOut
2
2
  # Current version of TAPOUT project.
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
 
5
5
  # The current revision of the TAP-Y/J format.
6
6
  REVISION = "2"
@@ -19,7 +19,7 @@ Given a legacy TAP stream:
19
19
  ...
20
20
  ok 3
21
21
 
22
- The TAPAdapter can convert the stream into TAP-Y.
22
+ The PerlAdapter can convert the stream into TAP-Y.
23
23
 
24
24
  stream = StringIO.new(@tap)
25
25
 
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.0
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: &24842760 !ruby/object:Gem::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: *24842760
24
+ version_requirements: *25247780
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: detroit
27
- requirement: &24842220 !ruby/object:Gem::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: *24842220
35
+ version_requirements: *25247240
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: qed
38
- requirement: &24841720 !ruby/object:Gem::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: *24841720
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: