autotest_screen 4.0.2 → 4.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gemtest +0 -0
- data/History.txt +6 -0
- data/Rakefile +5 -2
- data/lib/autotest/screen.rb +15 -15
- metadata +14 -13
data/.gemtest
ADDED
File without changes
|
data/History.txt
CHANGED
data/Rakefile
CHANGED
@@ -2,9 +2,12 @@
|
|
2
2
|
|
3
3
|
require 'rubygems'
|
4
4
|
require 'hoe'
|
5
|
-
require './lib/autotest/screen.rb'
|
6
5
|
|
7
|
-
Hoe.
|
6
|
+
Hoe.add_include_dirs("../../ZenTest/dev/lib")
|
7
|
+
|
8
|
+
Hoe.plugin :seattlerb
|
9
|
+
|
10
|
+
Hoe.spec('autotest_screen') do |p|
|
8
11
|
p.rubyforge_name = 'autotest-screen'
|
9
12
|
p.developer('MIKAMI Yoshiyuki', 'yoshuki@saikyoline.jp')
|
10
13
|
end
|
data/lib/autotest/screen.rb
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'autotest'
|
3
3
|
|
4
4
|
##
|
5
|
-
# Autotest::Screen
|
5
|
+
# Autotest::Screen displays autotest/autospec progress on GNU Screen's status line.
|
6
6
|
#
|
7
7
|
# == FEATURES:
|
8
8
|
# * Screenshots are available in here[http://f.hatena.ne.jp/yoshuki/autotest_screen/].
|
@@ -14,7 +14,7 @@ require 'autotest'
|
|
14
14
|
#
|
15
15
|
|
16
16
|
class Autotest::Screen
|
17
|
-
VERSION = '4.0.
|
17
|
+
VERSION = '4.0.3'
|
18
18
|
|
19
19
|
DEFAULT_STATUSLINE = '%H %`%-w%{=b bw}%n %t%{-}%+w'
|
20
20
|
DEFAULT_SCREEN_CMD = 'screen'
|
@@ -62,36 +62,36 @@ class Autotest::Screen
|
|
62
62
|
# All blocks return false, to execute each of following blocks defined in user's own ".autotest".
|
63
63
|
|
64
64
|
# Do nothing.
|
65
|
-
#Autotest.add_hook :all_good do |at|
|
65
|
+
#Autotest.add_hook :all_good do |at, *args|
|
66
66
|
# next false
|
67
67
|
#end
|
68
68
|
|
69
|
-
Autotest.add_hook :died do |at|
|
69
|
+
Autotest.add_hook :died do |at, *args|
|
70
70
|
message "Exception occured. (#{at.class})", :red
|
71
71
|
next false
|
72
72
|
end
|
73
73
|
|
74
74
|
# Do nothing.
|
75
|
-
#Autotest.add_hook :green do |at|
|
75
|
+
#Autotest.add_hook :green do |at, *args|
|
76
76
|
# next false
|
77
77
|
#end
|
78
78
|
|
79
|
-
Autotest.add_hook :initialize do |at|
|
79
|
+
Autotest.add_hook :initialize do |at, *args|
|
80
80
|
message "Run with #{at.class}" if execute?
|
81
81
|
next false
|
82
82
|
end
|
83
83
|
|
84
84
|
# Do nothing.
|
85
|
-
#Autotest.add_hook :interrupt do |at|
|
85
|
+
#Autotest.add_hook :interrupt do |at, *args|
|
86
86
|
# next false
|
87
87
|
#end
|
88
88
|
|
89
|
-
Autotest.add_hook :quit do |at|
|
89
|
+
Autotest.add_hook :quit do |at, *args|
|
90
90
|
clear if execute?
|
91
91
|
next false
|
92
92
|
end
|
93
93
|
|
94
|
-
Autotest.add_hook :ran_command do |at|
|
94
|
+
Autotest.add_hook :ran_command do |at, *args|
|
95
95
|
next false unless execute?
|
96
96
|
|
97
97
|
output = at.results.join
|
@@ -106,7 +106,7 @@ class Autotest::Screen
|
|
106
106
|
else
|
107
107
|
@last_message = {:message => 'All Green', :color => :green}
|
108
108
|
end
|
109
|
-
when 'Autotest::Rspec', 'Autotest::RailsRspec', 'Autotest::MerbRspec'
|
109
|
+
when 'Autotest::Rspec', 'Autotest::Rspec2', 'Autotest::RailsRspec', 'Autotest::RailsRspec2', 'Autotest::MerbRspec'
|
110
110
|
results = output.scan(/(\d+)\s*examples?,\s*(\d+)\s*failures?(?:,\s*(\d+)\s*pendings?)?/).first
|
111
111
|
num_examples, num_failures, num_pendings = results.map{|r| r.to_i}
|
112
112
|
|
@@ -122,26 +122,26 @@ class Autotest::Screen
|
|
122
122
|
end
|
123
123
|
|
124
124
|
# Do nothing.
|
125
|
-
#Autotest.add_hook :red do |at|
|
125
|
+
#Autotest.add_hook :red do |at, *args|
|
126
126
|
# next false
|
127
127
|
#end
|
128
128
|
|
129
129
|
# Do nothing.
|
130
|
-
#Autotest.add_hook :reset do |at|
|
130
|
+
#Autotest.add_hook :reset do |at, *args|
|
131
131
|
# next false
|
132
132
|
#end
|
133
133
|
|
134
|
-
Autotest.add_hook :run_command do |at|
|
134
|
+
Autotest.add_hook :run_command do |at, *args|
|
135
135
|
message 'Running' if execute?
|
136
136
|
next false
|
137
137
|
end
|
138
138
|
|
139
139
|
# Do nothing.
|
140
|
-
#Autotest.add_hook :updated do |at,
|
140
|
+
#Autotest.add_hook :updated do |at, *args|
|
141
141
|
# next false
|
142
142
|
#end
|
143
143
|
|
144
|
-
Autotest.add_hook :waiting do |at|
|
144
|
+
Autotest.add_hook :waiting do |at, *args|
|
145
145
|
message @last_message[:message], @last_message[:color] if execute?
|
146
146
|
next false
|
147
147
|
end
|
metadata
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autotest_screen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease:
|
5
|
+
version: 4.0.3
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- MIKAMI Yoshiyuki
|
@@ -9,19 +10,19 @@ autorequire:
|
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
12
|
|
12
|
-
date:
|
13
|
-
default_executable:
|
13
|
+
date: 2011-07-22 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: hoe
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
prerelease: false
|
18
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
20
20
|
requirements:
|
21
|
-
- -
|
21
|
+
- - ~>
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 2.
|
24
|
-
|
23
|
+
version: "2.10"
|
24
|
+
type: :development
|
25
|
+
version_requirements: *id001
|
25
26
|
description: Autotest::Screen shows autotest/autospec progress on GNU Screen's status line.
|
26
27
|
email:
|
27
28
|
- yoshuki@saikyoline.jp
|
@@ -40,7 +41,7 @@ files:
|
|
40
41
|
- Rakefile
|
41
42
|
- lib/autotest/screen.rb
|
42
43
|
- test/test_autotest_screen.rb
|
43
|
-
|
44
|
+
- .gemtest
|
44
45
|
homepage: http://autotest-screen.rubyforge.org/
|
45
46
|
licenses: []
|
46
47
|
|
@@ -51,21 +52,21 @@ rdoc_options:
|
|
51
52
|
require_paths:
|
52
53
|
- lib
|
53
54
|
required_ruby_version: !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
54
56
|
requirements:
|
55
57
|
- - ">="
|
56
58
|
- !ruby/object:Gem::Version
|
57
59
|
version: "0"
|
58
|
-
version:
|
59
60
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
60
62
|
requirements:
|
61
63
|
- - ">="
|
62
64
|
- !ruby/object:Gem::Version
|
63
65
|
version: "0"
|
64
|
-
version:
|
65
66
|
requirements: []
|
66
67
|
|
67
68
|
rubyforge_project: autotest-screen
|
68
|
-
rubygems_version: 1.
|
69
|
+
rubygems_version: 1.7.2
|
69
70
|
signing_key:
|
70
71
|
specification_version: 3
|
71
72
|
summary: Autotest::Screen shows autotest/autospec progress on GNU Screen's status line.
|