purdytest 1.0.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Rakefile +1 -2
- data/lib/purdytest.rb +17 -17
- metadata +42 -36
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d486894cd4805da369bf4a5f46b6cb3e8def849b
|
4
|
+
data.tar.gz: 19232edc100c71e85681798d31a73df84314eee5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 18df115539d1d46f9bbcfba1049acf6e11880c17a502e04c6fc2346ebb3e32c3d9d792544ca65c23c46879b3aa21408373a6661404dbcdb6ff4fbb07673e83ff
|
7
|
+
data.tar.gz: b9036ece595dbce8e3eac08a00cbf09602ff8e02fed7acbf5d53a4e0fef9fe946de70541026695d46c7c81c18b0cd178a515df776fe975a702559d1609688499
|
data/Rakefile
CHANGED
@@ -13,8 +13,7 @@ Hoe.spec 'purdytest' do
|
|
13
13
|
self.readme_file = 'README.rdoc'
|
14
14
|
self.history_file = 'CHANGELOG.rdoc'
|
15
15
|
self.extra_rdoc_files = FileList['*.rdoc']
|
16
|
-
self.extra_deps << ['minitest', '~>
|
17
|
-
self.testlib = :minitest
|
16
|
+
self.extra_deps << ['minitest', '~> 5.5']
|
18
17
|
end
|
19
18
|
|
20
19
|
# vim: syntax=ruby
|
data/lib/purdytest.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
module Purdytest
|
2
|
-
VERSION = '
|
2
|
+
VERSION = '2.0.0'
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
attr_accessor :pass, :fail, :skip, :error
|
4
|
+
CONFIG = Struct.new(:pass, :fail, :error, :skip)
|
5
|
+
.new(:green, :red, :red, :yellow)
|
7
6
|
|
8
|
-
|
9
|
-
|
7
|
+
class IO < Struct.new :io
|
8
|
+
# Colors stolen from /System/Library/Perl/5.10.0/Term/ANSIColor.pm
|
9
|
+
COLORS = {
|
10
10
|
:black => 30, :on_black => 40,
|
11
11
|
:red => 31, :on_red => 41,
|
12
12
|
:green => 32, :on_green => 42,
|
@@ -17,13 +17,7 @@ module Purdytest
|
|
17
17
|
:white => 37, :on_white => 47
|
18
18
|
}
|
19
19
|
|
20
|
-
|
21
|
-
@io = io
|
22
|
-
@pass = :green
|
23
|
-
@fail = :red
|
24
|
-
@error = :red
|
25
|
-
@skip = :yellow
|
26
|
-
end
|
20
|
+
CONFIG.members.each { |m| define_method(m) { CONFIG[m] } }
|
27
21
|
|
28
22
|
def print o
|
29
23
|
case o
|
@@ -43,14 +37,20 @@ module Purdytest
|
|
43
37
|
end
|
44
38
|
|
45
39
|
###
|
46
|
-
# Yields the current
|
47
|
-
# of Purdytest::IO (hopefully).
|
40
|
+
# Yields the current color configuration
|
48
41
|
def self.configure
|
49
|
-
yield
|
42
|
+
yield CONFIG
|
50
43
|
end
|
51
44
|
end
|
52
45
|
|
53
|
-
|
46
|
+
module MiniTest
|
47
|
+
def self.plugin_purdytest_init(options)
|
48
|
+
composite = Minitest.reporter
|
49
|
+
r = composite.reporters.find { |x| Minitest::ProgressReporter === x }
|
50
|
+
r.io = Purdytest::IO.new r.io
|
51
|
+
end
|
52
|
+
extensions << "purdytest"
|
53
|
+
end
|
54
54
|
|
55
55
|
if system("colordiff", __FILE__, __FILE__)
|
56
56
|
MiniTest::Assertions.diff = 'colordiff -u'
|
metadata
CHANGED
@@ -1,98 +1,104 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: purdytest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 2.0.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Aaron Patterson
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-01-24 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: minitest
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
19
|
+
version: '5.5'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '5.5'
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
|
-
name:
|
27
|
-
requirement:
|
28
|
-
none: false
|
28
|
+
name: rdoc
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
|
-
- -
|
31
|
+
- - "~>"
|
31
32
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
33
|
+
version: '4.0'
|
33
34
|
type: :development
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '4.0'
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: hoe
|
38
|
-
requirement:
|
39
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
40
44
|
requirements:
|
41
|
-
- -
|
45
|
+
- - "~>"
|
42
46
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
47
|
+
version: '3.13'
|
44
48
|
type: :development
|
45
49
|
prerelease: false
|
46
|
-
version_requirements:
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.13'
|
55
|
+
description: |-
|
56
|
+
Purdytest extends minitest with pretty colors. Simply require minitest, then
|
50
57
|
require purdytest, and you have colorific output on your terminal!
|
51
58
|
|
52
|
-
|
53
|
-
For colorized diff output, make sure you have `colordiff` installed.'
|
59
|
+
For colorized diff output, make sure you have `colordiff` installed.
|
54
60
|
email:
|
55
61
|
- aaron@tenderlovemaking.com
|
56
62
|
executables: []
|
57
63
|
extensions: []
|
58
64
|
extra_rdoc_files:
|
59
|
-
- Manifest.txt
|
60
65
|
- CHANGELOG.rdoc
|
66
|
+
- Manifest.txt
|
61
67
|
- README.rdoc
|
62
68
|
files:
|
63
|
-
- .autotest
|
69
|
+
- ".autotest"
|
70
|
+
- ".gemtest"
|
64
71
|
- CHANGELOG.rdoc
|
65
72
|
- Manifest.txt
|
66
73
|
- README.rdoc
|
67
74
|
- Rakefile
|
68
75
|
- lib/purdytest.rb
|
69
76
|
- test/test_purdytest.rb
|
70
|
-
- .gemtest
|
71
77
|
homepage: http://github.com/tenderlove/purdytest
|
72
|
-
licenses:
|
78
|
+
licenses:
|
79
|
+
- MIT
|
80
|
+
metadata: {}
|
73
81
|
post_install_message:
|
74
82
|
rdoc_options:
|
75
|
-
- --main
|
83
|
+
- "--main"
|
76
84
|
- README.rdoc
|
77
85
|
require_paths:
|
78
86
|
- lib
|
79
87
|
required_ruby_version: !ruby/object:Gem::Requirement
|
80
|
-
none: false
|
81
88
|
requirements:
|
82
|
-
- -
|
89
|
+
- - ">="
|
83
90
|
- !ruby/object:Gem::Version
|
84
91
|
version: '0'
|
85
92
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
|
-
none: false
|
87
93
|
requirements:
|
88
|
-
- -
|
94
|
+
- - ">="
|
89
95
|
- !ruby/object:Gem::Version
|
90
96
|
version: '0'
|
91
97
|
requirements: []
|
92
|
-
rubyforge_project:
|
93
|
-
rubygems_version:
|
98
|
+
rubyforge_project:
|
99
|
+
rubygems_version: 2.4.5
|
94
100
|
signing_key:
|
95
|
-
specification_version:
|
101
|
+
specification_version: 4
|
96
102
|
summary: Purdytest extends minitest with pretty colors
|
97
103
|
test_files:
|
98
104
|
- test/test_purdytest.rb
|