tapout 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.ruby +24 -11
- data/HISTORY.rdoc +11 -0
- data/lib/tapout.yml +24 -11
- data/lib/tapout/cli.rb +10 -2
- data/lib/tapout/config.rb +16 -5
- data/lib/tapout/reporters/abstract.rb +9 -1
- metadata +12 -12
data/.ruby
CHANGED
@@ -8,8 +8,6 @@ copyrights:
|
|
8
8
|
- holder: Thomas Sawyer
|
9
9
|
year: '2010'
|
10
10
|
license: BSD-2-Clause
|
11
|
-
replacements: []
|
12
|
-
alternatives: []
|
13
11
|
requirements:
|
14
12
|
- name: ansi
|
15
13
|
- name: json
|
@@ -26,19 +24,34 @@ requirements:
|
|
26
24
|
- test
|
27
25
|
development: true
|
28
26
|
dependencies: []
|
27
|
+
alternatives: []
|
29
28
|
conflicts: []
|
30
29
|
repositories:
|
31
30
|
- uri: git://github.com/rubyworks/tapout.git
|
32
31
|
scm: git
|
33
32
|
name: upstream
|
34
33
|
resources:
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
34
|
+
- uri: http://rubyworks.github.com/tapout
|
35
|
+
name: home
|
36
|
+
type: home
|
37
|
+
- uri: http://github.com/rubyworks/tapout/wiki
|
38
|
+
name: wiki
|
39
|
+
type: wiki
|
40
|
+
- uri: http://rubydoc.info/gems/tapout/frames
|
41
|
+
name: docs
|
42
|
+
type: docs
|
43
|
+
- uri: http://github.com/rubyworks/tapout
|
44
|
+
name: code
|
45
|
+
type: code
|
46
|
+
- uri: http://github.com/rubyworks/tapout/issues
|
47
|
+
name: bugs
|
48
|
+
type: bugs
|
49
|
+
- uri: http://groups.google.com/rubyworks-mailinglist
|
50
|
+
name: mail
|
51
|
+
type: mail
|
52
|
+
- uri: irc://chat.us.freenode.net#rubyworks
|
53
|
+
name: chat
|
54
|
+
type: chat
|
42
55
|
extra: {}
|
43
56
|
load_path:
|
44
57
|
- lib
|
@@ -46,9 +59,9 @@ revision: 0
|
|
46
59
|
created: '2010-12-23'
|
47
60
|
summary: Progressive TAP Harness
|
48
61
|
title: TAPOUT
|
49
|
-
version: 0.4.
|
62
|
+
version: 0.4.1
|
50
63
|
name: tapout
|
51
64
|
description: Tapout is a TAP consumer that can take any TAP, TAP-Y or TAP-J stream
|
52
65
|
and output it in a variety of useful formats.
|
53
66
|
organization: RubyWorks
|
54
|
-
date: '2012-
|
67
|
+
date: '2012-04-14'
|
data/HISTORY.rdoc
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
= RELEASE HISTORY
|
2
2
|
|
3
|
+
== 0.4.1 / 2012-04-16
|
4
|
+
|
5
|
+
Add support for autoloading reporter plugins. Just name the plugin script
|
6
|
+
the same as the reporter prefixed by `tapout-`, e.g. `tapout-fivemat.rb`.
|
7
|
+
|
8
|
+
Changes:
|
9
|
+
|
10
|
+
* Add support for autoloading reporter plugins.
|
11
|
+
* Add -r/-require option to tapout command.
|
12
|
+
|
13
|
+
|
3
14
|
== 0.4.0 / 2012-02-01
|
4
15
|
|
5
16
|
TAP-Y/J spec now supports `stdout` and `stderr` fields. This allows test
|
data/lib/tapout.yml
CHANGED
@@ -8,8 +8,6 @@ copyrights:
|
|
8
8
|
- holder: Thomas Sawyer
|
9
9
|
year: '2010'
|
10
10
|
license: BSD-2-Clause
|
11
|
-
replacements: []
|
12
|
-
alternatives: []
|
13
11
|
requirements:
|
14
12
|
- name: ansi
|
15
13
|
- name: json
|
@@ -26,19 +24,34 @@ requirements:
|
|
26
24
|
- test
|
27
25
|
development: true
|
28
26
|
dependencies: []
|
27
|
+
alternatives: []
|
29
28
|
conflicts: []
|
30
29
|
repositories:
|
31
30
|
- uri: git://github.com/rubyworks/tapout.git
|
32
31
|
scm: git
|
33
32
|
name: upstream
|
34
33
|
resources:
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
34
|
+
- uri: http://rubyworks.github.com/tapout
|
35
|
+
name: home
|
36
|
+
type: home
|
37
|
+
- uri: http://github.com/rubyworks/tapout/wiki
|
38
|
+
name: wiki
|
39
|
+
type: wiki
|
40
|
+
- uri: http://rubydoc.info/gems/tapout/frames
|
41
|
+
name: docs
|
42
|
+
type: docs
|
43
|
+
- uri: http://github.com/rubyworks/tapout
|
44
|
+
name: code
|
45
|
+
type: code
|
46
|
+
- uri: http://github.com/rubyworks/tapout/issues
|
47
|
+
name: bugs
|
48
|
+
type: bugs
|
49
|
+
- uri: http://groups.google.com/rubyworks-mailinglist
|
50
|
+
name: mail
|
51
|
+
type: mail
|
52
|
+
- uri: irc://chat.us.freenode.net#rubyworks
|
53
|
+
name: chat
|
54
|
+
type: chat
|
42
55
|
extra: {}
|
43
56
|
load_path:
|
44
57
|
- lib
|
@@ -46,9 +59,9 @@ revision: 0
|
|
46
59
|
created: '2010-12-23'
|
47
60
|
summary: Progressive TAP Harness
|
48
61
|
title: TAPOUT
|
49
|
-
version: 0.4.
|
62
|
+
version: 0.4.1
|
50
63
|
name: tapout
|
51
64
|
description: Tapout is a TAP consumer that can take any TAP, TAP-Y or TAP-J stream
|
52
65
|
and output it in a variety of useful formats.
|
53
66
|
organization: RubyWorks
|
54
|
-
date: '2012-
|
67
|
+
date: '2012-04-14'
|
data/lib/tapout/cli.rb
CHANGED
@@ -29,11 +29,19 @@ module Tapout
|
|
29
29
|
self.config.minimal = val
|
30
30
|
end
|
31
31
|
|
32
|
-
opt.on('--no-color', '
|
32
|
+
opt.on('--no-color', 'suppress ANSI color codes') do
|
33
33
|
$ansi = false
|
34
34
|
end
|
35
35
|
|
36
|
-
opt.on('--
|
36
|
+
opt.on('--require', '-r FEATURE', 'require feature') do |feature|
|
37
|
+
require feature
|
38
|
+
end
|
39
|
+
|
40
|
+
#opt.on('--plugin', '-p NAME', 'Require plugin feature (tapout-<name>)') do |name|
|
41
|
+
# require "tapout-#{name}"
|
42
|
+
#end
|
43
|
+
|
44
|
+
opt.on('--debug', 'run with $DEBUG flag on') do |fmt|
|
37
45
|
$DEBUG = true
|
38
46
|
end
|
39
47
|
|
data/lib/tapout/config.rb
CHANGED
@@ -2,23 +2,25 @@ module Tapout
|
|
2
2
|
|
3
3
|
#
|
4
4
|
#
|
5
|
-
def self.config
|
5
|
+
def self.config(settings=nil, &block)
|
6
6
|
@config ||= Config.new
|
7
|
+
@config.update(settings, &block)
|
7
8
|
end
|
8
9
|
|
9
10
|
#
|
10
11
|
#
|
11
12
|
class Config
|
12
13
|
|
14
|
+
#
|
13
15
|
def initialize
|
14
16
|
initialize_defaults
|
15
17
|
end
|
16
18
|
|
19
|
+
#
|
17
20
|
def initialize_defaults
|
18
|
-
@trace
|
19
|
-
@lines
|
20
|
-
|
21
|
-
@minimal = false
|
21
|
+
@trace = nil
|
22
|
+
@lines = 3
|
23
|
+
@minimal = false
|
22
24
|
|
23
25
|
@highlight = [:bold]
|
24
26
|
@fadelight = [:dark]
|
@@ -30,6 +32,15 @@ module Tapout
|
|
30
32
|
@omit = [:yellow]
|
31
33
|
end
|
32
34
|
|
35
|
+
#
|
36
|
+
def update(settings, &block)
|
37
|
+
settings.each do |k,v|
|
38
|
+
__send__("#{k}=", v)
|
39
|
+
end if settings
|
40
|
+
block.call(self) if block
|
41
|
+
self
|
42
|
+
end
|
43
|
+
|
33
44
|
#
|
34
45
|
attr :trace
|
35
46
|
|
@@ -19,7 +19,15 @@ module Tapout
|
|
19
19
|
def self.factory(name)
|
20
20
|
list = index.keys.abbrev
|
21
21
|
rptr = index[list[name || DEAFULT_REPORTER]]
|
22
|
-
|
22
|
+
unless rptr
|
23
|
+
begin
|
24
|
+
require "tapout-#{name}"
|
25
|
+
list = index.keys.abbrev
|
26
|
+
rptr = index[list[name || DEAFULT_REPORTER]]
|
27
|
+
rescue LoadError
|
28
|
+
end
|
29
|
+
raise ArgumentError, "Unrecognized reporter -- #{name.inspect}" unless rptr
|
30
|
+
end
|
23
31
|
rptr
|
24
32
|
end
|
25
33
|
|
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.4.
|
4
|
+
version: 0.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-04-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ansi
|
16
|
-
requirement: &
|
16
|
+
requirement: &18065480 !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: *18065480
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: json
|
27
|
-
requirement: &
|
27
|
+
requirement: &18062540 !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: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *18062540
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: detroit
|
38
|
-
requirement: &
|
38
|
+
requirement: &19552740 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *19552740
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: qed
|
49
|
-
requirement: &
|
49
|
+
requirement: &18172440 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *18172440
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: ae
|
60
|
-
requirement: &
|
60
|
+
requirement: &18170480 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,7 +65,7 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *18170480
|
69
69
|
description: Tapout is a TAP consumer that can take any TAP, TAP-Y or TAP-J stream
|
70
70
|
and output it in a variety of useful formats.
|
71
71
|
email:
|