reap 4.0 → 4.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ProjectInfo +18 -6
- data/lib/reap/bin/reap.rb +47 -16
- data/lib/reap/interface/interface.rb +0 -0
- data/lib/reap/interface/rubyforge.rb +247 -0
- data/lib/reap/lint.rb +1 -0
- data/lib/reap/projectinfo.rb +47 -18
- data/lib/reap/reap.rb +0 -0
- data/lib/reap/task/announce.rb +11 -13
- data/lib/reap/task/fileperm.rb +2 -5
- data/lib/reap/task/info.rb +2 -4
- data/lib/reap/task/install.rb +1 -3
- data/lib/reap/task/noop.rb +1 -3
- data/lib/reap/task/package.rb +163 -65
- data/lib/reap/task/publish.rb +2 -4
- data/lib/reap/task/rdoc.rb +1 -3
- data/lib/reap/task/release.rb +273 -0
- data/lib/reap/task/test.rb +19 -5
- data/lib/reap/task/testext.rb +5 -5
- data/lib/reap/task.rb +94 -69
- metadata +70 -256
- data/dev/Rakefile +0 -60
- data/dev/composite_task.rb +0 -27
- data/dev/compositepublisher.rb +0 -24
- data/dev/ftptools.rb +0 -139
- data/dev/license-each.rb +0 -85
- data/dev/publisher.rb +0 -75
- data/dev/rubyforgepublisher.rb +0 -18
- data/dev/sshpublisher.rb +0 -47
- data/dev/suby-cvs.rb +0 -46
- data/dev/template.rb +0 -72
- data/lib/reap/readymade.rb +0 -21
- data/lib/reap/task/webpublish.rb +0 -43
- data/lib/reap/tasks.rb +0 -13
- data/lib/reap/test.rb +0 -138
- data/web/ProjectInfo +0 -57
- data/web/images/appleboy.jpg +0 -0
- data/web/images/grape.jpg +0 -0
- data/web/index.html +0 -124
- data/web/rdoc/classes/Object.html +0 -121
- data/web/rdoc/classes/ProjectInfo.html +0 -207
- data/web/rdoc/classes/ProjectInfo.src/M000094.html +0 -18
- data/web/rdoc/classes/ProjectInfo.src/M000095.html +0 -24
- data/web/rdoc/classes/ProjectInfo.src/M000096.html +0 -22
- data/web/rdoc/classes/ProjectInfo.src/M000097.html +0 -21
- data/web/rdoc/classes/ProjectInfo.src/M000098.html +0 -18
- data/web/rdoc/classes/Reap/Announce.html +0 -262
- data/web/rdoc/classes/Reap/Announce.src/M000030.html +0 -18
- data/web/rdoc/classes/Reap/Announce.src/M000031.html +0 -114
- data/web/rdoc/classes/Reap/Announce.src/M000032.html +0 -46
- data/web/rdoc/classes/Reap/Info.html +0 -176
- data/web/rdoc/classes/Reap/Info.src/M000033.html +0 -18
- data/web/rdoc/classes/Reap/Info.src/M000034.html +0 -17
- data/web/rdoc/classes/Reap/Info.src/M000035.html +0 -18
- data/web/rdoc/classes/Reap/Install.html +0 -193
- data/web/rdoc/classes/Reap/Install.src/M000036.html +0 -18
- data/web/rdoc/classes/Reap/Install.src/M000037.html +0 -20
- data/web/rdoc/classes/Reap/Install.src/M000038.html +0 -26
- data/web/rdoc/classes/Reap/Noop.html +0 -192
- data/web/rdoc/classes/Reap/Noop.src/M000027.html +0 -18
- data/web/rdoc/classes/Reap/Noop.src/M000028.html +0 -17
- data/web/rdoc/classes/Reap/Noop.src/M000029.html +0 -18
- data/web/rdoc/classes/Reap/Package.html +0 -310
- data/web/rdoc/classes/Reap/Package.src/M000055.html +0 -18
- data/web/rdoc/classes/Reap/Package.src/M000056.html +0 -68
- data/web/rdoc/classes/Reap/Package.src/M000057.html +0 -84
- data/web/rdoc/classes/Reap/Package.src/M000058.html +0 -61
- data/web/rdoc/classes/Reap/Perm.html +0 -236
- data/web/rdoc/classes/Reap/Perm.src/M000078.html +0 -18
- data/web/rdoc/classes/Reap/Perm.src/M000079.html +0 -21
- data/web/rdoc/classes/Reap/Perm.src/M000080.html +0 -42
- data/web/rdoc/classes/Reap/Perm.src/M000081.html +0 -26
- data/web/rdoc/classes/Reap/Perm.src/M000082.html +0 -18
- data/web/rdoc/classes/Reap/Publish.html +0 -213
- data/web/rdoc/classes/Reap/Publish.src/M000070.html +0 -18
- data/web/rdoc/classes/Reap/Publish.src/M000071.html +0 -22
- data/web/rdoc/classes/Reap/Publish.src/M000072.html +0 -37
- data/web/rdoc/classes/Reap/RDoc.html +0 -218
- data/web/rdoc/classes/Reap/RDoc.src/M000059.html +0 -18
- data/web/rdoc/classes/Reap/RDoc.src/M000060.html +0 -24
- data/web/rdoc/classes/Reap/RDoc.src/M000061.html +0 -70
- data/web/rdoc/classes/Reap/Task.html +0 -396
- data/web/rdoc/classes/Reap/Task.src/M000039.html +0 -18
- data/web/rdoc/classes/Reap/Task.src/M000040.html +0 -16
- data/web/rdoc/classes/Reap/Task.src/M000041.html +0 -16
- data/web/rdoc/classes/Reap/Task.src/M000042.html +0 -16
- data/web/rdoc/classes/Reap/Task.src/M000043.html +0 -16
- data/web/rdoc/classes/Reap/Task.src/M000044.html +0 -22
- data/web/rdoc/classes/Reap/Task.src/M000045.html +0 -16
- data/web/rdoc/classes/Reap/Task.src/M000046.html +0 -16
- data/web/rdoc/classes/Reap/Task.src/M000047.html +0 -16
- data/web/rdoc/classes/Reap/Task.src/M000048.html +0 -16
- data/web/rdoc/classes/Reap/Task.src/M000049.html +0 -16
- data/web/rdoc/classes/Reap/Task.src/M000050.html +0 -27
- data/web/rdoc/classes/Reap/Task.src/M000051.html +0 -19
- data/web/rdoc/classes/Reap/Task.src/M000052.html +0 -18
- data/web/rdoc/classes/Reap/Task.src/M000053.html +0 -18
- data/web/rdoc/classes/Reap/Task.src/M000054.html +0 -19
- data/web/rdoc/classes/Reap/Test/TestResults.html +0 -205
- data/web/rdoc/classes/Reap/Test/TestResults.src/M000067.html +0 -21
- data/web/rdoc/classes/Reap/Test/TestResults.src/M000068.html +0 -21
- data/web/rdoc/classes/Reap/Test/TestResults.src/M000069.html +0 -23
- data/web/rdoc/classes/Reap/Test.html +0 -253
- data/web/rdoc/classes/Reap/Test.src/M000062.html +0 -18
- data/web/rdoc/classes/Reap/Test.src/M000063.html +0 -26
- data/web/rdoc/classes/Reap/Test.src/M000064.html +0 -77
- data/web/rdoc/classes/Reap/Test.src/M000065.html +0 -27
- data/web/rdoc/classes/Reap/Test.src/M000066.html +0 -50
- data/web/rdoc/classes/Reap/TestExt.html +0 -234
- data/web/rdoc/classes/Reap/TestExt.src/M000073.html +0 -18
- data/web/rdoc/classes/Reap/TestExt.src/M000074.html +0 -20
- data/web/rdoc/classes/Reap/TestExt.src/M000075.html +0 -49
- data/web/rdoc/classes/Reap/TestExt.src/M000076.html +0 -34
- data/web/rdoc/classes/Reap/TestExt.src/M000077.html +0 -27
- data/web/rdoc/classes/Reap/WebPublish.html +0 -213
- data/web/rdoc/classes/Reap/WebPublish.src/M000083.html +0 -18
- data/web/rdoc/classes/Reap/WebPublish.src/M000084.html +0 -21
- data/web/rdoc/classes/Reap/WebPublish.src/M000085.html +0 -32
- data/web/rdoc/classes/Reap.html +0 -248
- data/web/rdoc/classes/Reap.src/M000023.html +0 -16
- data/web/rdoc/classes/Reap.src/M000024.html +0 -21
- data/web/rdoc/classes/Reap.src/M000025.html +0 -16
- data/web/rdoc/classes/Reap.src/M000026.html +0 -21
- data/web/rdoc/classes/ReapCommand.html +0 -425
- data/web/rdoc/classes/ReapCommand.src/M000001.html +0 -16
- data/web/rdoc/classes/ReapCommand.src/M000003.html +0 -16
- data/web/rdoc/classes/ReapCommand.src/M000005.html +0 -16
- data/web/rdoc/classes/ReapCommand.src/M000007.html +0 -16
- data/web/rdoc/classes/ReapCommand.src/M000009.html +0 -16
- data/web/rdoc/classes/ReapCommand.src/M000011.html +0 -16
- data/web/rdoc/classes/ReapCommand.src/M000013.html +0 -18
- data/web/rdoc/classes/ReapCommand.src/M000014.html +0 -19
- data/web/rdoc/classes/ReapCommand.src/M000015.html +0 -19
- data/web/rdoc/classes/ReapCommand.src/M000016.html +0 -24
- data/web/rdoc/classes/ReapCommand.src/M000018.html +0 -29
- data/web/rdoc/classes/Scaffold.html +0 -211
- data/web/rdoc/classes/Scaffold.src/M000086.html +0 -16
- data/web/rdoc/classes/Scaffold.src/M000087.html +0 -28
- data/web/rdoc/classes/Scaffold.src/M000088.html +0 -32
- data/web/rdoc/classes/Scaffold.src/M000089.html +0 -18
- data/web/rdoc/classes/UnitTestKernel.html +0 -176
- data/web/rdoc/classes/UnitTestKernel.src/M000019.html +0 -18
- data/web/rdoc/classes/UnitTestKernel.src/M000020.html +0 -18
- data/web/rdoc/classes/UnitTestKernel.src/M000021.html +0 -22
- data/web/rdoc/classes/UnitTestKernel.src/M000022.html +0 -22
- data/web/rdoc/classes/UnitTesting/Failure.html +0 -156
- data/web/rdoc/classes/UnitTesting/Failure.src/M000092.html +0 -18
- data/web/rdoc/classes/UnitTesting/Failure.src/M000093.html +0 -21
- data/web/rdoc/classes/UnitTesting.html +0 -165
- data/web/rdoc/classes/UnitTesting.src/M000090.html +0 -34
- data/web/rdoc/classes/UnitTesting.src/M000091.html +0 -18
- data/web/rdoc/created.rid +0 -1
- data/web/rdoc/files/ANN.html +0 -107
- data/web/rdoc/files/COPYING.html +0 -119
- data/web/rdoc/files/ChangeLog.html +0 -144
- data/web/rdoc/files/ProjectInfo.html +0 -190
- data/web/rdoc/files/README.html +0 -274
- data/web/rdoc/files/Rakefile.html +0 -101
- data/web/rdoc/files/lib/reap/bin/reap_rb.html +0 -129
- data/web/rdoc/files/lib/reap/lint_rb.html +0 -101
- data/web/rdoc/files/lib/reap/projectinfo_rb.html +0 -110
- data/web/rdoc/files/lib/reap/readymade_rb.html +0 -123
- data/web/rdoc/files/lib/reap/task/announce_rb.html +0 -114
- data/web/rdoc/files/lib/reap/task/fileperm_rb.html +0 -108
- data/web/rdoc/files/lib/reap/task/info_rb.html +0 -108
- data/web/rdoc/files/lib/reap/task/install_rb.html +0 -108
- data/web/rdoc/files/lib/reap/task/noop_rb.html +0 -108
- data/web/rdoc/files/lib/reap/task/package_rb.html +0 -109
- data/web/rdoc/files/lib/reap/task/publish_rb.html +0 -108
- data/web/rdoc/files/lib/reap/task/rdoc_rb.html +0 -108
- data/web/rdoc/files/lib/reap/task/scaffold_rb.html +0 -107
- data/web/rdoc/files/lib/reap/task/test_rb.html +0 -110
- data/web/rdoc/files/lib/reap/task/testext_rb.html +0 -109
- data/web/rdoc/files/lib/reap/task/webpublish_rb.html +0 -108
- data/web/rdoc/files/lib/reap/task_rb.html +0 -120
- data/web/rdoc/files/lib/reap/tasks_rb.html +0 -116
- data/web/rdoc/files/lib/reap/test_rb.html +0 -109
- data/web/rdoc/fr_class_index.html +0 -47
- data/web/rdoc/fr_file_index.html +0 -51
- data/web/rdoc/fr_method_index.html +0 -124
- data/web/rdoc/index.html +0 -24
- data/web/rdoc/rdoc-style.css +0 -208
data/lib/reap/task.rb
CHANGED
@@ -5,10 +5,10 @@ require 'fileutils'
|
|
5
5
|
require 'facet/fileutils/safe_ln'
|
6
6
|
require 'facet/string/tabto'
|
7
7
|
require 'facet/module/basename'
|
8
|
+
require 'facet/module/attr_setter'
|
8
9
|
|
9
|
-
require '
|
10
|
+
require 'calibre/filelist'
|
10
11
|
|
11
|
-
require 'reap/projectinfo'
|
12
12
|
|
13
13
|
# Base class for reap tasks.
|
14
14
|
#
|
@@ -41,27 +41,41 @@ require 'reap/projectinfo'
|
|
41
41
|
#
|
42
42
|
module Reap
|
43
43
|
|
44
|
+
@registry ||= {}
|
45
|
+
|
46
|
+
# Hash of all task classes
|
44
47
|
def self.registry ; @registry ; end
|
45
48
|
|
49
|
+
# Hash of tasks available to this project
|
50
|
+
def self.tasks
|
51
|
+
unless @tasks
|
52
|
+
@tasks = {}
|
53
|
+
@registry.each { |name, klass|
|
54
|
+
@tasks[name] = klass if klass.verify?
|
55
|
+
}
|
56
|
+
end
|
57
|
+
@tasks
|
58
|
+
end
|
59
|
+
|
46
60
|
def self.register
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
61
|
+
$PROJECT_INFO = ProjectInfo.new( $PROJECT_FILE )
|
62
|
+
#@registry ||= {}
|
63
|
+
#ObjectSpace.each_object(Class) { |klass|
|
64
|
+
# if klass < ::Reap::Task
|
65
|
+
# if klass.verify
|
66
|
+
# @registry[klass.basename.downcase] = klass
|
67
|
+
# end
|
68
|
+
# end
|
69
|
+
#}
|
55
70
|
end
|
56
71
|
|
57
|
-
|
72
|
+
# def self.initialize
|
73
|
+
# @tasks ||= {}
|
74
|
+
# registry.each do |name, klass|
|
75
|
+
# @tasks[name] = klass.new
|
76
|
+
# end
|
77
|
+
# end
|
58
78
|
|
59
|
-
def self.initialize
|
60
|
-
@tasks ||= {}
|
61
|
-
registry.each do |name, klass|
|
62
|
-
@tasks[name] = klass.new
|
63
|
-
end
|
64
|
-
end
|
65
79
|
|
66
80
|
|
67
81
|
class Task
|
@@ -71,20 +85,45 @@ module Reap
|
|
71
85
|
|
72
86
|
RUBY = CONFIG['ruby_install_name']
|
73
87
|
|
74
|
-
|
88
|
+
class << self
|
89
|
+
|
90
|
+
def task_desc( text=nil, &block )
|
91
|
+
if text
|
92
|
+
@task_desc = proc { text }
|
93
|
+
elsif block_given?
|
94
|
+
@task_desc = block
|
95
|
+
else
|
96
|
+
@task_desc.call
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
#def task_desc ; '(no desciption given)' ; end
|
101
|
+
def task_name ; basename.downcase ; end
|
75
102
|
|
76
|
-
|
77
|
-
|
103
|
+
def section_required( val ) ; @section_required = val ;end
|
104
|
+
def section_required? ; @section_required ; end
|
78
105
|
|
79
|
-
|
80
|
-
|
106
|
+
#
|
107
|
+
def verify?
|
108
|
+
if section_required?
|
109
|
+
return $PROJECT_INFO.info.key?(task_name)
|
110
|
+
end
|
111
|
+
true
|
112
|
+
end
|
81
113
|
|
82
|
-
|
83
|
-
|
84
|
-
if section_required?
|
85
|
-
assume = ::ProjectInfo.info.key?(task_name)
|
114
|
+
def inherited( base )
|
115
|
+
Reap.registry[base.task_name] = base
|
86
116
|
end
|
87
|
-
|
117
|
+
|
118
|
+
def master_attributes ; @master_attributes ||= [] ; end
|
119
|
+
|
120
|
+
# Use this DSL method to define master task attributes.
|
121
|
+
def attr_master( *names )
|
122
|
+
attr_accessor *names
|
123
|
+
@master_attributes ||= []
|
124
|
+
@master_attributes |= names.collect { |n| n.to_s }
|
125
|
+
end
|
126
|
+
|
88
127
|
end
|
89
128
|
|
90
129
|
# instance methods
|
@@ -92,35 +131,47 @@ module Reap
|
|
92
131
|
def task_name ; self.class.task_name ; end
|
93
132
|
def task_desc ; self.class.task_desc ; end
|
94
133
|
|
95
|
-
def
|
134
|
+
def section_required? ; self.class.section_required? ; end
|
96
135
|
|
136
|
+
#def master ; ::ProjectInfo.info ; end
|
137
|
+
def master ; @master ; end
|
97
138
|
def section ; @section ; end
|
98
139
|
|
99
|
-
|
140
|
+
#
|
141
|
+
def initialize( *args )
|
142
|
+
@master = $PROJECT_INFO
|
100
143
|
|
101
|
-
|
102
|
-
sect = master[task_name]
|
144
|
+
sect = @master[task_name]
|
103
145
|
if sect.is_a?(Array)
|
104
|
-
|
105
|
-
|
146
|
+
@master[task_name].each do |sec|
|
147
|
+
set( sec )
|
106
148
|
init
|
149
|
+
run
|
107
150
|
end
|
108
151
|
else
|
109
|
-
|
152
|
+
set( sect || {} )
|
110
153
|
init
|
154
|
+
run
|
111
155
|
end
|
112
156
|
end
|
113
157
|
|
114
|
-
def
|
115
|
-
@section =
|
116
|
-
|
158
|
+
def set( sec )
|
159
|
+
@section = sec
|
160
|
+
|
161
|
+
self.class.master_attributes.each do |k,v|
|
162
|
+
send( "#{k}=", @master[k] )
|
163
|
+
end
|
164
|
+
|
165
|
+
@section.each do |k,v|
|
166
|
+
send( "#{k}=", v )
|
167
|
+
end
|
117
168
|
end
|
118
169
|
|
119
170
|
def init
|
120
171
|
raise "not implemented for '#{task_name}' task"
|
121
172
|
end
|
122
173
|
|
123
|
-
def run
|
174
|
+
def run
|
124
175
|
raise "no action defined for task #{task_name}"
|
125
176
|
end
|
126
177
|
|
@@ -131,32 +182,6 @@ module Reap
|
|
131
182
|
system arg unless $PRETEND
|
132
183
|
end
|
133
184
|
|
134
|
-
# o = nil
|
135
|
-
# o = yld.call(self) if yld
|
136
|
-
# if String === o
|
137
|
-
# begin
|
138
|
-
# section( o ).each { |k,v| send("#{k}=", v ) }
|
139
|
-
# end
|
140
|
-
# end
|
141
|
-
#
|
142
|
-
# init
|
143
|
-
#
|
144
|
-
# task_name ||= default_name
|
145
|
-
# task_desc = @desc || default_desc
|
146
|
-
#
|
147
|
-
# if subtask
|
148
|
-
# desc task_desc
|
149
|
-
# task task_name => subtask do
|
150
|
-
# run
|
151
|
-
# end
|
152
|
-
# else
|
153
|
-
# desc task_desc
|
154
|
-
# task task_name do
|
155
|
-
# run
|
156
|
-
# end
|
157
|
-
# end
|
158
|
-
# end
|
159
|
-
|
160
185
|
end #class Task
|
161
186
|
|
162
187
|
end #module Reap
|
@@ -167,21 +192,21 @@ end #module Reap
|
|
167
192
|
##
|
168
193
|
# module RakeTask
|
169
194
|
# extend self
|
170
|
-
#
|
195
|
+
#
|
171
196
|
# def gem_package_task(*args,&blk)
|
172
197
|
# ::Rake::GemPackageTask.new(*args,&blk)
|
173
198
|
# end
|
174
|
-
#
|
199
|
+
#
|
175
200
|
# def package_task(*args,&blk)
|
176
201
|
# ::Rake::PackageTask.new(*args,&blk)
|
177
202
|
# end
|
178
|
-
#
|
203
|
+
#
|
179
204
|
# def test_task(*args,&blk)
|
180
205
|
# ::Rake::TestTask.new(*args,&blk)
|
181
206
|
# end
|
182
|
-
#
|
207
|
+
#
|
183
208
|
# def rdoc_task(*args,&blk)
|
184
209
|
# ::Rake::RDocTask.new(*args,&blk)
|
185
210
|
# end
|
186
|
-
#
|
211
|
+
#
|
187
212
|
# end
|
metadata
CHANGED
@@ -3,11 +3,11 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: reap
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version:
|
7
|
-
date:
|
8
|
-
summary:
|
6
|
+
version: 4.3.1
|
7
|
+
date: 2006-03-15 00:00:00 +00:00
|
8
|
+
summary: Tools for Ruby project testing, management and assistance.
|
9
9
|
require_paths:
|
10
|
-
|
10
|
+
- lib
|
11
11
|
email: transfire@gmail.com
|
12
12
|
homepage: http://reap.rubyforge.org
|
13
13
|
rubyforge_project: reap
|
@@ -15,270 +15,84 @@ description:
|
|
15
15
|
autorequire:
|
16
16
|
default_executable:
|
17
17
|
bindir: bin
|
18
|
-
has_rdoc:
|
18
|
+
has_rdoc: true
|
19
19
|
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
20
|
requirements:
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
version: 0.0.0
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
25
24
|
version:
|
26
25
|
platform: ruby
|
27
26
|
signing_key:
|
28
27
|
cert_chain:
|
29
28
|
authors:
|
30
|
-
|
29
|
+
- Thomas Sawyer
|
31
30
|
files:
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
- web/rdoc
|
79
|
-
- web/index.html
|
80
|
-
- web/images
|
81
|
-
- web/ProjectInfo
|
82
|
-
- web/rdoc/files
|
83
|
-
- web/rdoc/index.html
|
84
|
-
- web/rdoc/rdoc-style.css
|
85
|
-
- web/rdoc/fr_method_index.html
|
86
|
-
- web/rdoc/fr_class_index.html
|
87
|
-
- web/rdoc/fr_file_index.html
|
88
|
-
- web/rdoc/created.rid
|
89
|
-
- web/rdoc/classes
|
90
|
-
- web/rdoc/files/lib
|
91
|
-
- web/rdoc/files/Rakefile.html
|
92
|
-
- web/rdoc/files/ChangeLog.html
|
93
|
-
- web/rdoc/files/ANN.html
|
94
|
-
- web/rdoc/files/README.html
|
95
|
-
- web/rdoc/files/COPYING.html
|
96
|
-
- web/rdoc/files/ProjectInfo.html
|
97
|
-
- web/rdoc/files/lib/reap
|
98
|
-
- web/rdoc/files/lib/reap/bin
|
99
|
-
- web/rdoc/files/lib/reap/task
|
100
|
-
- web/rdoc/files/lib/reap/readymade_rb.html
|
101
|
-
- web/rdoc/files/lib/reap/lint_rb.html
|
102
|
-
- web/rdoc/files/lib/reap/projectinfo_rb.html
|
103
|
-
- web/rdoc/files/lib/reap/task_rb.html
|
104
|
-
- web/rdoc/files/lib/reap/test_rb.html
|
105
|
-
- web/rdoc/files/lib/reap/tasks_rb.html
|
106
|
-
- web/rdoc/files/lib/reap/bin/reap_rb.html
|
107
|
-
- web/rdoc/files/lib/reap/task/fileperm_rb.html
|
108
|
-
- web/rdoc/files/lib/reap/task/install_rb.html
|
109
|
-
- web/rdoc/files/lib/reap/task/rdoc_rb.html
|
110
|
-
- web/rdoc/files/lib/reap/task/webpublish_rb.html
|
111
|
-
- web/rdoc/files/lib/reap/task/scaffold_rb.html
|
112
|
-
- web/rdoc/files/lib/reap/task/testext_rb.html
|
113
|
-
- web/rdoc/files/lib/reap/task/info_rb.html
|
114
|
-
- web/rdoc/files/lib/reap/task/package_rb.html
|
115
|
-
- web/rdoc/files/lib/reap/task/noop_rb.html
|
116
|
-
- web/rdoc/files/lib/reap/task/test_rb.html
|
117
|
-
- web/rdoc/files/lib/reap/task/announce_rb.html
|
118
|
-
- web/rdoc/files/lib/reap/task/publish_rb.html
|
119
|
-
- web/rdoc/classes/Reap
|
120
|
-
- web/rdoc/classes/UnitTestKernel.src
|
121
|
-
- web/rdoc/classes/Scaffold.html
|
122
|
-
- web/rdoc/classes/UnitTestKernel.html
|
123
|
-
- web/rdoc/classes/Scaffold.src
|
124
|
-
- web/rdoc/classes/UnitTesting.src
|
125
|
-
- web/rdoc/classes/ProjectInfo.src
|
126
|
-
- web/rdoc/classes/Object.html
|
127
|
-
- web/rdoc/classes/Reap.src
|
128
|
-
- web/rdoc/classes/Reap.html
|
129
|
-
- web/rdoc/classes/ReapCommand.html
|
130
|
-
- web/rdoc/classes/UnitTesting
|
131
|
-
- web/rdoc/classes/ReapCommand.src
|
132
|
-
- web/rdoc/classes/UnitTesting.html
|
133
|
-
- web/rdoc/classes/ProjectInfo.html
|
134
|
-
- web/rdoc/classes/Reap/Test
|
135
|
-
- web/rdoc/classes/Reap/Test.src
|
136
|
-
- web/rdoc/classes/Reap/WebPublish.html
|
137
|
-
- web/rdoc/classes/Reap/WebPublish.src
|
138
|
-
- web/rdoc/classes/Reap/Publish.src
|
139
|
-
- web/rdoc/classes/Reap/Noop.html
|
140
|
-
- web/rdoc/classes/Reap/Package.html
|
141
|
-
- web/rdoc/classes/Reap/Task.src
|
142
|
-
- web/rdoc/classes/Reap/Test.html
|
143
|
-
- web/rdoc/classes/Reap/Info.src
|
144
|
-
- web/rdoc/classes/Reap/Info.html
|
145
|
-
- web/rdoc/classes/Reap/Announce.html
|
146
|
-
- web/rdoc/classes/Reap/TestExt.src
|
147
|
-
- web/rdoc/classes/Reap/RDoc.html
|
148
|
-
- web/rdoc/classes/Reap/Perm.src
|
149
|
-
- web/rdoc/classes/Reap/Noop.src
|
150
|
-
- web/rdoc/classes/Reap/Install.src
|
151
|
-
- web/rdoc/classes/Reap/TestExt.html
|
152
|
-
- web/rdoc/classes/Reap/Package.src
|
153
|
-
- web/rdoc/classes/Reap/Install.html
|
154
|
-
- web/rdoc/classes/Reap/Publish.html
|
155
|
-
- web/rdoc/classes/Reap/Announce.src
|
156
|
-
- web/rdoc/classes/Reap/RDoc.src
|
157
|
-
- web/rdoc/classes/Reap/Perm.html
|
158
|
-
- web/rdoc/classes/Reap/Task.html
|
159
|
-
- web/rdoc/classes/Reap/Test/TestResults.html
|
160
|
-
- web/rdoc/classes/Reap/Test/TestResults.src
|
161
|
-
- web/rdoc/classes/Reap/Test/TestResults.src/M000067.html
|
162
|
-
- web/rdoc/classes/Reap/Test/TestResults.src/M000068.html
|
163
|
-
- web/rdoc/classes/Reap/Test/TestResults.src/M000069.html
|
164
|
-
- web/rdoc/classes/Reap/Test.src/M000062.html
|
165
|
-
- web/rdoc/classes/Reap/Test.src/M000063.html
|
166
|
-
- web/rdoc/classes/Reap/Test.src/M000064.html
|
167
|
-
- web/rdoc/classes/Reap/Test.src/M000065.html
|
168
|
-
- web/rdoc/classes/Reap/Test.src/M000066.html
|
169
|
-
- web/rdoc/classes/Reap/WebPublish.src/M000083.html
|
170
|
-
- web/rdoc/classes/Reap/WebPublish.src/M000084.html
|
171
|
-
- web/rdoc/classes/Reap/WebPublish.src/M000085.html
|
172
|
-
- web/rdoc/classes/Reap/Publish.src/M000070.html
|
173
|
-
- web/rdoc/classes/Reap/Publish.src/M000071.html
|
174
|
-
- web/rdoc/classes/Reap/Publish.src/M000072.html
|
175
|
-
- web/rdoc/classes/Reap/Task.src/M000039.html
|
176
|
-
- web/rdoc/classes/Reap/Task.src/M000040.html
|
177
|
-
- web/rdoc/classes/Reap/Task.src/M000041.html
|
178
|
-
- web/rdoc/classes/Reap/Task.src/M000042.html
|
179
|
-
- web/rdoc/classes/Reap/Task.src/M000043.html
|
180
|
-
- web/rdoc/classes/Reap/Task.src/M000044.html
|
181
|
-
- web/rdoc/classes/Reap/Task.src/M000045.html
|
182
|
-
- web/rdoc/classes/Reap/Task.src/M000046.html
|
183
|
-
- web/rdoc/classes/Reap/Task.src/M000047.html
|
184
|
-
- web/rdoc/classes/Reap/Task.src/M000048.html
|
185
|
-
- web/rdoc/classes/Reap/Task.src/M000049.html
|
186
|
-
- web/rdoc/classes/Reap/Task.src/M000050.html
|
187
|
-
- web/rdoc/classes/Reap/Task.src/M000051.html
|
188
|
-
- web/rdoc/classes/Reap/Task.src/M000052.html
|
189
|
-
- web/rdoc/classes/Reap/Task.src/M000053.html
|
190
|
-
- web/rdoc/classes/Reap/Task.src/M000054.html
|
191
|
-
- web/rdoc/classes/Reap/Info.src/M000033.html
|
192
|
-
- web/rdoc/classes/Reap/Info.src/M000034.html
|
193
|
-
- web/rdoc/classes/Reap/Info.src/M000035.html
|
194
|
-
- web/rdoc/classes/Reap/TestExt.src/M000076.html
|
195
|
-
- web/rdoc/classes/Reap/TestExt.src/M000077.html
|
196
|
-
- web/rdoc/classes/Reap/TestExt.src/M000073.html
|
197
|
-
- web/rdoc/classes/Reap/TestExt.src/M000074.html
|
198
|
-
- web/rdoc/classes/Reap/TestExt.src/M000075.html
|
199
|
-
- web/rdoc/classes/Reap/Perm.src/M000078.html
|
200
|
-
- web/rdoc/classes/Reap/Perm.src/M000079.html
|
201
|
-
- web/rdoc/classes/Reap/Perm.src/M000080.html
|
202
|
-
- web/rdoc/classes/Reap/Perm.src/M000081.html
|
203
|
-
- web/rdoc/classes/Reap/Perm.src/M000082.html
|
204
|
-
- web/rdoc/classes/Reap/Noop.src/M000027.html
|
205
|
-
- web/rdoc/classes/Reap/Noop.src/M000028.html
|
206
|
-
- web/rdoc/classes/Reap/Noop.src/M000029.html
|
207
|
-
- web/rdoc/classes/Reap/Install.src/M000036.html
|
208
|
-
- web/rdoc/classes/Reap/Install.src/M000037.html
|
209
|
-
- web/rdoc/classes/Reap/Install.src/M000038.html
|
210
|
-
- web/rdoc/classes/Reap/Package.src/M000055.html
|
211
|
-
- web/rdoc/classes/Reap/Package.src/M000056.html
|
212
|
-
- web/rdoc/classes/Reap/Package.src/M000057.html
|
213
|
-
- web/rdoc/classes/Reap/Package.src/M000058.html
|
214
|
-
- web/rdoc/classes/Reap/Announce.src/M000030.html
|
215
|
-
- web/rdoc/classes/Reap/Announce.src/M000031.html
|
216
|
-
- web/rdoc/classes/Reap/Announce.src/M000032.html
|
217
|
-
- web/rdoc/classes/Reap/RDoc.src/M000059.html
|
218
|
-
- web/rdoc/classes/Reap/RDoc.src/M000060.html
|
219
|
-
- web/rdoc/classes/Reap/RDoc.src/M000061.html
|
220
|
-
- web/rdoc/classes/UnitTestKernel.src/M000019.html
|
221
|
-
- web/rdoc/classes/UnitTestKernel.src/M000020.html
|
222
|
-
- web/rdoc/classes/UnitTestKernel.src/M000021.html
|
223
|
-
- web/rdoc/classes/UnitTestKernel.src/M000022.html
|
224
|
-
- web/rdoc/classes/Scaffold.src/M000086.html
|
225
|
-
- web/rdoc/classes/Scaffold.src/M000087.html
|
226
|
-
- web/rdoc/classes/Scaffold.src/M000088.html
|
227
|
-
- web/rdoc/classes/Scaffold.src/M000089.html
|
228
|
-
- web/rdoc/classes/UnitTesting.src/M000090.html
|
229
|
-
- web/rdoc/classes/UnitTesting.src/M000091.html
|
230
|
-
- web/rdoc/classes/ProjectInfo.src/M000094.html
|
231
|
-
- web/rdoc/classes/ProjectInfo.src/M000095.html
|
232
|
-
- web/rdoc/classes/ProjectInfo.src/M000096.html
|
233
|
-
- web/rdoc/classes/ProjectInfo.src/M000097.html
|
234
|
-
- web/rdoc/classes/ProjectInfo.src/M000098.html
|
235
|
-
- web/rdoc/classes/Reap.src/M000023.html
|
236
|
-
- web/rdoc/classes/Reap.src/M000024.html
|
237
|
-
- web/rdoc/classes/Reap.src/M000025.html
|
238
|
-
- web/rdoc/classes/Reap.src/M000026.html
|
239
|
-
- web/rdoc/classes/UnitTesting/Failure.html
|
240
|
-
- web/rdoc/classes/UnitTesting/Failure.src
|
241
|
-
- web/rdoc/classes/UnitTesting/Failure.src/M000092.html
|
242
|
-
- web/rdoc/classes/UnitTesting/Failure.src/M000093.html
|
243
|
-
- web/rdoc/classes/ReapCommand.src/M000009.html
|
244
|
-
- web/rdoc/classes/ReapCommand.src/M000011.html
|
245
|
-
- web/rdoc/classes/ReapCommand.src/M000013.html
|
246
|
-
- web/rdoc/classes/ReapCommand.src/M000014.html
|
247
|
-
- web/rdoc/classes/ReapCommand.src/M000015.html
|
248
|
-
- web/rdoc/classes/ReapCommand.src/M000016.html
|
249
|
-
- web/rdoc/classes/ReapCommand.src/M000018.html
|
250
|
-
- web/rdoc/classes/ReapCommand.src/M000001.html
|
251
|
-
- web/rdoc/classes/ReapCommand.src/M000003.html
|
252
|
-
- web/rdoc/classes/ReapCommand.src/M000005.html
|
253
|
-
- web/rdoc/classes/ReapCommand.src/M000007.html
|
254
|
-
- web/images/appleboy.jpg
|
255
|
-
- web/images/grape.jpg
|
256
|
-
- data/reap
|
257
|
-
- data/reap/scaffold
|
258
|
-
- data/reap/scaffold/Todo
|
259
|
-
- data/reap/scaffold/Rakefile
|
260
|
-
- data/reap/scaffold/README
|
261
|
-
- data/reap/scaffold/setup.rb
|
262
|
-
- data/reap/scaffold/INSTALL
|
263
|
-
- data/reap/scaffold/ChangeLog
|
264
|
-
- data/reap/scaffold/COPYING
|
265
|
-
- data/reap/scaffold/ProjectInfo
|
266
|
-
- test/tc_reap.rb
|
31
|
+
- bin
|
32
|
+
- data
|
33
|
+
- lib
|
34
|
+
- test
|
35
|
+
- ANN
|
36
|
+
- ChangeLog
|
37
|
+
- COPYING
|
38
|
+
- ProjectInfo
|
39
|
+
- Rakefile
|
40
|
+
- README
|
41
|
+
- setup.rb
|
42
|
+
- bin/reap
|
43
|
+
- data/reap
|
44
|
+
- data/reap/scaffold
|
45
|
+
- data/reap/scaffold/Todo
|
46
|
+
- data/reap/scaffold/Rakefile
|
47
|
+
- data/reap/scaffold/README
|
48
|
+
- data/reap/scaffold/setup.rb
|
49
|
+
- data/reap/scaffold/INSTALL
|
50
|
+
- data/reap/scaffold/ChangeLog
|
51
|
+
- data/reap/scaffold/COPYING
|
52
|
+
- data/reap/scaffold/ProjectInfo
|
53
|
+
- lib/reap
|
54
|
+
- lib/reap/bin
|
55
|
+
- lib/reap/task
|
56
|
+
- lib/reap/projectinfo.rb
|
57
|
+
- lib/reap/lint.rb
|
58
|
+
- lib/reap/task.rb
|
59
|
+
- lib/reap/reap.rb
|
60
|
+
- lib/reap/interface
|
61
|
+
- lib/reap/bin/reap.rb
|
62
|
+
- lib/reap/task/rdoc.rb
|
63
|
+
- lib/reap/task/release.rb
|
64
|
+
- lib/reap/task/announce.rb
|
65
|
+
- lib/reap/task/testext.rb
|
66
|
+
- lib/reap/task/install.rb
|
67
|
+
- lib/reap/task/test.rb
|
68
|
+
- lib/reap/task/scaffold.rb
|
69
|
+
- lib/reap/task/noop.rb
|
70
|
+
- lib/reap/task/fileperm.rb
|
71
|
+
- lib/reap/task/package.rb
|
72
|
+
- lib/reap/task/info.rb
|
73
|
+
- lib/reap/task/publish.rb
|
74
|
+
- lib/reap/interface/interface.rb
|
75
|
+
- lib/reap/interface/rubyforge.rb
|
76
|
+
- test/tc_reap.rb
|
267
77
|
test_files: []
|
78
|
+
|
268
79
|
rdoc_options: []
|
80
|
+
|
269
81
|
extra_rdoc_files: []
|
82
|
+
|
270
83
|
executables:
|
271
|
-
|
84
|
+
- reap
|
272
85
|
extensions: []
|
86
|
+
|
273
87
|
requirements: []
|
88
|
+
|
274
89
|
dependencies:
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
version:
|
90
|
+
- !ruby/object:Gem::Dependency
|
91
|
+
name: facets
|
92
|
+
version_requirement:
|
93
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: 0.0.0
|
98
|
+
version:
|
data/dev/Rakefile
DELETED
@@ -1,60 +0,0 @@
|
|
1
|
-
# Rakefile for rubypants -*-ruby-*-
|
2
|
-
require 'rake/rdoctask'
|
3
|
-
|
4
|
-
|
5
|
-
desc "Run all the tests"
|
6
|
-
task :default => [:test]
|
7
|
-
|
8
|
-
desc "Do predistribution stuff"
|
9
|
-
task :predist => [:changelog, :doc]
|
10
|
-
|
11
|
-
|
12
|
-
desc "Run all the tests"
|
13
|
-
task :test do
|
14
|
-
ruby 'rand.rb'
|
15
|
-
end
|
16
|
-
|
17
|
-
desc "Make an archive as .tar.gz"
|
18
|
-
task :dist => :test do
|
19
|
-
system "export DARCS_REPO=#{File.expand_path "."}; " +
|
20
|
-
"darcs dist -d rand#{get_darcs_tree_version}"
|
21
|
-
end
|
22
|
-
|
23
|
-
desc "Generate a ChangeLog"
|
24
|
-
task :changelog do
|
25
|
-
system "darcs changes --repo=#{ENV["DARCS_REPO"] || "."} >ChangeLog"
|
26
|
-
end
|
27
|
-
|
28
|
-
desc "Generate RDoc documentation"
|
29
|
-
Rake::RDocTask.new(:doc) do |rdoc|
|
30
|
-
rdoc.options << '--line-numbers --inline-source --all'
|
31
|
-
rdoc.rdoc_files.include 'README'
|
32
|
-
rdoc.rdoc_files.include 'rand.rb'
|
33
|
-
end
|
34
|
-
|
35
|
-
|
36
|
-
# Helper to retrieve the "revision number" of the darcs tree.
|
37
|
-
def get_darcs_tree_version
|
38
|
-
return "" unless File.directory? "_darcs"
|
39
|
-
|
40
|
-
changes = `darcs changes`
|
41
|
-
count = 0
|
42
|
-
tag = "0.0"
|
43
|
-
|
44
|
-
changes.each("\n\n") { |change|
|
45
|
-
head, title, desc = change.split("\n", 3)
|
46
|
-
|
47
|
-
if title =~ /^ \*/
|
48
|
-
# Normal change.
|
49
|
-
count += 1
|
50
|
-
elsif title =~ /tagged (.*)/
|
51
|
-
# Tag. We look for these.
|
52
|
-
tag = $1
|
53
|
-
break
|
54
|
-
else
|
55
|
-
warn "Unparsable change: #{change}"
|
56
|
-
end
|
57
|
-
}
|
58
|
-
|
59
|
-
"-" + tag + "." + count.to_s
|
60
|
-
end
|
data/dev/composite_task.rb
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
|
2
|
-
require 'reap/reap'
|
3
|
-
require 'reap/task'
|
4
|
-
|
5
|
-
class Reap::CompositeTask < Reap::Task
|
6
|
-
|
7
|
-
register "composite"
|
8
|
-
|
9
|
-
#def default_name ; "" ; end
|
10
|
-
def default_desc
|
11
|
-
"run tasks #{subtasks.join(',')} [reap]"
|
12
|
-
end
|
13
|
-
|
14
|
-
#attr_accessor :subtasks
|
15
|
-
|
16
|
-
def init
|
17
|
-
#@subtasks = section['subtasks']
|
18
|
-
end
|
19
|
-
|
20
|
-
private
|
21
|
-
|
22
|
-
def run
|
23
|
-
#@subtasks.each do |st|
|
24
|
-
#end
|
25
|
-
end
|
26
|
-
|
27
|
-
end
|