reap 0.5.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ANN-0.6.1 +3 -0
- data/Rakefile +19 -0
- data/Reapfile +46 -33
- data/data/site_ruby/reap/template.yaml +94 -0
- data/lib/reap/announce-task.rb +159 -0
- data/lib/reap/chmod-task.rb +82 -0
- data/lib/reap/package-task.rb +165 -0
- data/lib/reap/publish-task.rb +53 -0
- data/lib/reap/rdoc-task.rb +70 -0
- data/lib/reap/reap-all.rb +15 -0
- data/lib/reap/task.rb +177 -118
- data/lib/reap/template-task.rb +40 -0
- data/lib/reap/test-task.rb +159 -0
- data/pub/www/Reapfile +99 -0
- data/pub/www/images/appleboy.jpg +0 -0
- data/pub/www/index.html +49 -5
- data/{doc/files/LICENSE.html → pub/www/rdoc/classes/Reap.html} +32 -33
- data/pub/www/rdoc/classes/Reap/AnnounceTask.html +154 -0
- data/pub/www/rdoc/classes/Reap/AnnounceTask.src/M000031.html +111 -0
- data/pub/www/rdoc/classes/Reap/AnnounceTask.src/M000032.html +46 -0
- data/pub/www/rdoc/classes/Reap/ChmodTask.html +220 -0
- data/pub/www/rdoc/classes/Reap/ChmodTask.src/M000015.html +21 -0
- data/pub/www/rdoc/classes/Reap/ChmodTask.src/M000016.html +21 -0
- data/pub/www/rdoc/classes/Reap/ChmodTask.src/M000017.html +42 -0
- data/pub/www/rdoc/classes/Reap/ChmodTask.src/M000018.html +26 -0
- data/pub/www/rdoc/classes/Reap/PackageTask.html +181 -0
- data/pub/www/rdoc/classes/Reap/PackageTask.src/M000001.html +49 -0
- data/pub/www/rdoc/classes/Reap/PackageTask.src/M000002.html +74 -0
- data/pub/www/rdoc/classes/Reap/PackageTask.src/M000003.html +51 -0
- data/pub/www/rdoc/classes/Reap/PublishTask.html +160 -0
- data/pub/www/rdoc/classes/Reap/PublishTask.src/M000019.html +24 -0
- data/pub/www/rdoc/classes/Reap/PublishTask.src/M000020.html +38 -0
- data/pub/www/rdoc/classes/Reap/RDocTask.html +220 -0
- data/pub/www/rdoc/classes/Reap/RDocTask.src/M000004.html +24 -0
- data/pub/www/rdoc/classes/Reap/RDocTask.src/M000005.html +21 -0
- data/pub/www/rdoc/classes/Reap/RDocTask.src/M000006.html +53 -0
- data/pub/www/rdoc/classes/Reap/Task.html +319 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000024.html +21 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000025.html +18 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000026.html +18 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000027.html +28 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000028.html +16 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000029.html +18 -0
- data/pub/www/rdoc/classes/Reap/Task.src/M000030.html +19 -0
- data/pub/www/rdoc/classes/Reap/TemplateTask.html +182 -0
- data/pub/www/rdoc/classes/Reap/TemplateTask.src/M000021.html +18 -0
- data/pub/www/rdoc/classes/Reap/TemplateTask.src/M000022.html +21 -0
- data/pub/www/rdoc/classes/Reap/TemplateTask.src/M000023.html +34 -0
- data/pub/www/rdoc/classes/Reap/TestTask.html +228 -0
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000007.html +25 -0
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000008.html +21 -0
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000009.html +77 -0
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000010.html +27 -0
- data/pub/www/rdoc/classes/Reap/TestTask.src/M000011.html +36 -0
- data/{doc → pub/www/rdoc}/classes/Reap/TestTask/TestResults.html +23 -55
- data/pub/www/rdoc/classes/Reap/TestTask/TestResults.src/M000012.html +21 -0
- data/pub/www/rdoc/classes/Reap/TestTask/TestResults.src/M000013.html +21 -0
- data/pub/www/rdoc/classes/Reap/TestTask/TestResults.src/M000014.html +23 -0
- data/pub/www/rdoc/created.rid +1 -0
- data/{doc/files/lib/reap/tasks → pub/www/rdoc/files/lib/reap2}/announce-task_rb.html +3 -3
- data/{doc/files/lib/reap/task_rb.html → pub/www/rdoc/files/lib/reap2/chmod-task_rb.html} +5 -5
- data/pub/www/{doc/files/lib/reap/tasks → rdoc/files/lib/reap2}/package-task_rb.html +3 -3
- data/pub/www/{doc/files/lib/reap/template_rb.html → rdoc/files/lib/reap2/publish-task_rb.html} +10 -4
- data/pub/www/{doc/files/lib/reap/task_rb.html → rdoc/files/lib/reap2/rdoc-task_rb.html} +5 -5
- data/pub/www/{doc/files/lib/reap/reap_rb.html → rdoc/files/lib/reap2/reap-all_rb.html} +7 -7
- data/{doc/files/lib/reap/runner_rb.html → pub/www/rdoc/files/lib/reap2/task_rb.html} +7 -8
- data/pub/www/{doc/files/lib/reap/tasks → rdoc/files/lib/reap2}/template-task_rb.html +4 -4
- data/{doc/files/lib/reap/tasks → pub/www/rdoc/files/lib/reap2}/test-task_rb.html +10 -4
- data/{doc → pub/www/rdoc}/fr_class_index.html +0 -1
- data/pub/www/rdoc/fr_file_index.html +35 -0
- data/pub/www/rdoc/fr_method_index.html +58 -0
- data/{doc → pub/www/rdoc}/index.html +1 -1
- data/{doc → pub/www/rdoc}/rdoc-style.css +0 -0
- data/test/tc_reap.rb +11 -0
- metadata +98 -112
- data/bin/reap +0 -103
- data/doc/classes/Reap.html +0 -184
- data/doc/classes/Reap/AnnounceTask.html +0 -339
- data/doc/classes/Reap/ChmodTask.html +0 -277
- data/doc/classes/Reap/PackageTask.html +0 -374
- data/doc/classes/Reap/PublishTask.html +0 -237
- data/doc/classes/Reap/RDocTask.html +0 -254
- data/doc/classes/Reap/Runner.html +0 -299
- data/doc/classes/Reap/Task.html +0 -438
- data/doc/classes/Reap/TemplateTask.html +0 -226
- data/doc/classes/Reap/TestTask.html +0 -354
- data/doc/created.rid +0 -1
- data/doc/files/README.html +0 -194
- data/doc/files/lib/reap/reap_rb.html +0 -111
- data/doc/files/lib/reap/tasks/chmod-task_rb.html +0 -101
- data/doc/files/lib/reap/tasks/package-task_rb.html +0 -108
- data/doc/files/lib/reap/tasks/publish-task_rb.html +0 -101
- data/doc/files/lib/reap/tasks/rdoc-task_rb.html +0 -101
- data/doc/files/lib/reap/tasks/template-task_rb.html +0 -109
- data/doc/fr_file_index.html +0 -38
- data/doc/fr_method_index.html +0 -73
- data/lib/reap/reap.rb +0 -13
- data/lib/reap/runner.rb +0 -90
- data/lib/reap/tasks/announce-task.rb +0 -149
- data/lib/reap/tasks/chmod-task.rb +0 -69
- data/lib/reap/tasks/package-task.rb +0 -157
- data/lib/reap/tasks/publish-task.rb +0 -39
- data/lib/reap/tasks/rdoc-task.rb +0 -55
- data/lib/reap/tasks/template-task.rb +0 -39
- data/lib/reap/tasks/test-task.rb +0 -140
- data/pub/www/doc/classes/Reap.html +0 -184
- data/pub/www/doc/classes/Reap/AnnounceTask.html +0 -331
- data/pub/www/doc/classes/Reap/ChmodTask.html +0 -278
- data/pub/www/doc/classes/Reap/PackageTask.html +0 -372
- data/pub/www/doc/classes/Reap/PublishTask.html +0 -231
- data/pub/www/doc/classes/Reap/RDocTask.html +0 -254
- data/pub/www/doc/classes/Reap/Runner.html +0 -307
- data/pub/www/doc/classes/Reap/Task.html +0 -390
- data/pub/www/doc/classes/Reap/TemplateTask.html +0 -233
- data/pub/www/doc/classes/Reap/TestTask.html +0 -242
- data/pub/www/doc/created.rid +0 -1
- data/pub/www/doc/files/LICENSE.html +0 -119
- data/pub/www/doc/files/README.html +0 -194
- data/pub/www/doc/files/lib/reap/runner_rb.html +0 -113
- data/pub/www/doc/files/lib/reap/tasks/announce-task_rb.html +0 -113
- data/pub/www/doc/files/lib/reap/tasks/chmod-task_rb.html +0 -101
- data/pub/www/doc/files/lib/reap/tasks/publish-task_rb.html +0 -101
- data/pub/www/doc/files/lib/reap/tasks/rdoc-task_rb.html +0 -101
- data/pub/www/doc/files/lib/reap/tasks/test-task_rb.html +0 -101
- data/pub/www/doc/fr_class_index.html +0 -36
- data/pub/www/doc/fr_file_index.html +0 -39
- data/pub/www/doc/fr_method_index.html +0 -69
- data/pub/www/doc/index.html +0 -24
- data/pub/www/doc/rdoc-style.css +0 -208
- data/test/tc_require.rb +0 -11
@@ -1,39 +0,0 @@
|
|
1
|
-
|
2
|
-
require 'fileutils'
|
3
|
-
require 'rbconfig'
|
4
|
-
|
5
|
-
module Reap
|
6
|
-
|
7
|
-
class TemplateTask < Task
|
8
|
-
|
9
|
-
DATA_DIR = 'site_ruby/reap'
|
10
|
-
|
11
|
-
def self.task ; :template ; end
|
12
|
-
def self.desc ; "Create template configuration file in current directory." ; end
|
13
|
-
|
14
|
-
#def setup
|
15
|
-
#end
|
16
|
-
|
17
|
-
def run
|
18
|
-
dir = File.join( ::Config::CONFIG['datadir'], DATA_DIR ) #File.dirname(File.dirname(__FILE__))
|
19
|
-
tmpf = File.join( dir, 'template.yaml' )
|
20
|
-
unless File.file?( tmpf )
|
21
|
-
puts tmpf
|
22
|
-
raise "Tempfile is missing."
|
23
|
-
end
|
24
|
-
|
25
|
-
if File.directory?("Reapfile")
|
26
|
-
puts "Why is Reapfile a directory? Cannot comply."
|
27
|
-
return
|
28
|
-
elsif File.file?("Reapfile")
|
29
|
-
puts "Reapfile already exists."
|
30
|
-
return
|
31
|
-
end
|
32
|
-
# copy tmpf to Reapfile
|
33
|
-
FileUtils.cp( tmpf, "Reapfile" )
|
34
|
-
puts "Reapfile created. You'll need to fill it out."
|
35
|
-
end
|
36
|
-
|
37
|
-
end #class Template
|
38
|
-
|
39
|
-
end #module Reap
|
data/lib/reap/tasks/test-task.rb
DELETED
@@ -1,140 +0,0 @@
|
|
1
|
-
|
2
|
-
require 'nano/string/tab'
|
3
|
-
|
4
|
-
#require 'test/unit'
|
5
|
-
require 'test/unit/ui/testrunnermediator'
|
6
|
-
|
7
|
-
Test::Unit.run = true # don't run auto tests
|
8
|
-
|
9
|
-
module Reap
|
10
|
-
|
11
|
-
class TestTask < Task
|
12
|
-
|
13
|
-
def self.task ; :test ; end
|
14
|
-
def self.desc ; "Run unit tests." ; end
|
15
|
-
|
16
|
-
def setup
|
17
|
-
@libs = ( section["libs"] || ['lib'] ).join(':')
|
18
|
-
#@libs = (section["libs"] || []).join(':')
|
19
|
-
@files = section["files"] || [ 'test/**/tc*.rb', 'test/**/test*.rb', 'test/**/*test.rb' ]
|
20
|
-
@options = section['options']
|
21
|
-
|
22
|
-
@results = TestResults.new
|
23
|
-
@errors = []
|
24
|
-
@failures = []
|
25
|
-
end
|
26
|
-
|
27
|
-
def run
|
28
|
-
# get test files
|
29
|
-
test_libs = @libs
|
30
|
-
test_files = FileList.new
|
31
|
-
test_files.include(*@files)
|
32
|
-
if test_files.empty?
|
33
|
-
puts "No test files found."
|
34
|
-
return
|
35
|
-
end
|
36
|
-
print "Reap is shelling out work to Ruby's Test Suite..."
|
37
|
-
|
38
|
-
test_files.each { |f|
|
39
|
-
$stdout << '.'; $stdout.flush
|
40
|
-
run_test( f )
|
41
|
-
#ruby %{-r"test/unit" "#{f}"}
|
42
|
-
}
|
43
|
-
puts "done."
|
44
|
-
|
45
|
-
# Display Failures
|
46
|
-
puts
|
47
|
-
puts %{FAILURES:#{@failures.empty? ? ' []' : ''}}
|
48
|
-
@failures.reverse.each { |fails|
|
49
|
-
fails.reverse.each { |failure|
|
50
|
-
puts
|
51
|
-
puts %{ - test : #{failure.test_name}}
|
52
|
-
puts %{ message : #{failure.message.gsub("\n"," ")}}
|
53
|
-
puts %{ location : #{failure.location}}
|
54
|
-
}
|
55
|
-
}
|
56
|
-
|
57
|
-
# Display Errors
|
58
|
-
puts
|
59
|
-
puts %{ERRORS:#{@errors.empty? ? ' []' : ''}}
|
60
|
-
@errors.reverse.each { |errs|
|
61
|
-
errs.reverse.each { |err|
|
62
|
-
puts
|
63
|
-
puts %{ - test : #{err.test_name}}
|
64
|
-
puts %{ message : #{err.exception.message}}
|
65
|
-
puts %{ backtrace :}
|
66
|
-
err.exception.backtrace[0...-1].each { |bt| puts %Q{ - #{bt}} }
|
67
|
-
}
|
68
|
-
}
|
69
|
-
|
70
|
-
# Display Final Results
|
71
|
-
puts
|
72
|
-
puts @results
|
73
|
-
puts
|
74
|
-
|
75
|
-
# old way (don't work right)
|
76
|
-
#puts %Q{ ruby %{-I#{test_libs} -e0 -r"test/unit" \\\n#{test_reqs}#{test_opts}} } if $DEBUG
|
77
|
-
#ruby %{-I#{test_libs} -e0 -r"test/unit" \\\n#{test_reqs}#{test_opts}}
|
78
|
-
#ruby %{-e0 -r"test/unit" \\\n#{test_reqs}#{test_opts}}
|
79
|
-
end
|
80
|
-
|
81
|
-
def run_test( test_file )
|
82
|
-
if ! File.file?( test_file )
|
83
|
-
r = nil
|
84
|
-
else
|
85
|
-
r = fork_test( test_file )
|
86
|
-
end
|
87
|
-
unless r.passed?
|
88
|
-
@errors << r.instance_variable_get('@errors')
|
89
|
-
@failures << r.instance_variable_get('@failures')
|
90
|
-
end
|
91
|
-
@results << r
|
92
|
-
end
|
93
|
-
|
94
|
-
def fork_test( testfile )
|
95
|
-
src = %Q{
|
96
|
-
#require 'test/unit'
|
97
|
-
require 'test/unit/collector'
|
98
|
-
require 'test/unit/collector/objectspace'
|
99
|
-
require 'test/unit/ui/testrunnermediator'
|
100
|
-
load('#{testfile}')
|
101
|
-
tests = Test::Unit::Collector::ObjectSpace.new.collect
|
102
|
-
runner = Test::Unit::UI::TestRunnerMediator.new( tests )
|
103
|
-
result = runner.run_suite
|
104
|
-
puts Marshal.dump(result)
|
105
|
-
}
|
106
|
-
result = IO.popen("ruby","w+") do |ruby|
|
107
|
-
ruby.puts src
|
108
|
-
ruby.close_write
|
109
|
-
ruby.read
|
110
|
-
end
|
111
|
-
return Marshal.load(result)
|
112
|
-
end
|
113
|
-
|
114
|
-
class TestResults
|
115
|
-
attr_reader :assertion_count, :run_count, :failure_count, :error_count
|
116
|
-
def initialize
|
117
|
-
@assertion_count = 0
|
118
|
-
@run_count = 0
|
119
|
-
@failure_count = 0
|
120
|
-
@error_count = 0
|
121
|
-
end
|
122
|
-
def <<( result )
|
123
|
-
@assertion_count += result.assertion_count
|
124
|
-
@run_count += result.run_count
|
125
|
-
@failure_count += result.failure_count
|
126
|
-
@error_count += result.error_count
|
127
|
-
end
|
128
|
-
def to_s
|
129
|
-
s = %{SUMMARY:\n\n}
|
130
|
-
s << %{ tests : #{@run_count}\n}
|
131
|
-
s << %{ assertions : #{@assertion_count}\n}
|
132
|
-
s << %{ failures : #{@failure_count}\n}
|
133
|
-
s << %{ errors : #{@error_count}\n}
|
134
|
-
s
|
135
|
-
end
|
136
|
-
end
|
137
|
-
|
138
|
-
end #class TestTask
|
139
|
-
|
140
|
-
end #module Reap
|
@@ -1,184 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Module: Reap</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Module</strong></td>
|
53
|
-
<td class="class-name-in-header">Reap</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../files/lib/reap/reap_rb.html">
|
59
|
-
lib/reap/reap.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
<a href="../files/lib/reap/task_rb.html">
|
63
|
-
lib/reap/task.rb
|
64
|
-
</a>
|
65
|
-
<br />
|
66
|
-
<a href="../files/lib/reap/runner_rb.html">
|
67
|
-
lib/reap/runner.rb
|
68
|
-
</a>
|
69
|
-
<br />
|
70
|
-
<a href="../files/lib/reap/tasks/template-task_rb.html">
|
71
|
-
lib/reap/tasks/template-task.rb
|
72
|
-
</a>
|
73
|
-
<br />
|
74
|
-
<a href="../files/lib/reap/tasks/test-task_rb.html">
|
75
|
-
lib/reap/tasks/test-task.rb
|
76
|
-
</a>
|
77
|
-
<br />
|
78
|
-
<a href="../files/lib/reap/tasks/announce-task_rb.html">
|
79
|
-
lib/reap/tasks/announce-task.rb
|
80
|
-
</a>
|
81
|
-
<br />
|
82
|
-
<a href="../files/lib/reap/tasks/publish-task_rb.html">
|
83
|
-
lib/reap/tasks/publish-task.rb
|
84
|
-
</a>
|
85
|
-
<br />
|
86
|
-
<a href="../files/lib/reap/tasks/rdoc-task_rb.html">
|
87
|
-
lib/reap/tasks/rdoc-task.rb
|
88
|
-
</a>
|
89
|
-
<br />
|
90
|
-
<a href="../files/lib/reap/tasks/package-task_rb.html">
|
91
|
-
lib/reap/tasks/package-task.rb
|
92
|
-
</a>
|
93
|
-
<br />
|
94
|
-
<a href="../files/lib/reap/tasks/chmod-task_rb.html">
|
95
|
-
lib/reap/tasks/chmod-task.rb
|
96
|
-
</a>
|
97
|
-
<br />
|
98
|
-
</td>
|
99
|
-
</tr>
|
100
|
-
|
101
|
-
</table>
|
102
|
-
</div>
|
103
|
-
<!-- banner header -->
|
104
|
-
|
105
|
-
<div id="bodyContent">
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
<div id="contextContent">
|
110
|
-
|
111
|
-
<div id="description">
|
112
|
-
<p>
|
113
|
-
class Hash
|
114
|
-
</p>
|
115
|
-
<pre>
|
116
|
-
def downcase_keys!
|
117
|
-
new_hash = {}
|
118
|
-
self.each_pair { |k,v| new_hash[k.to_s.downcase] = v }
|
119
|
-
self.replace( new_hash )
|
120
|
-
end
|
121
|
-
</pre>
|
122
|
-
<p>
|
123
|
-
end
|
124
|
-
</p>
|
125
|
-
|
126
|
-
</div>
|
127
|
-
|
128
|
-
|
129
|
-
</div>
|
130
|
-
|
131
|
-
|
132
|
-
</div>
|
133
|
-
|
134
|
-
|
135
|
-
<!-- if includes -->
|
136
|
-
|
137
|
-
<div id="section">
|
138
|
-
|
139
|
-
<div id="class-list">
|
140
|
-
<h3 class="section-bar">Classes and Modules</h3>
|
141
|
-
|
142
|
-
Class <a href="Reap/AnnounceTask.html" class="link">Reap::AnnounceTask</a><br />
|
143
|
-
Class <a href="Reap/ChmodTask.html" class="link">Reap::ChmodTask</a><br />
|
144
|
-
Class <a href="Reap/PackageTask.html" class="link">Reap::PackageTask</a><br />
|
145
|
-
Class <a href="Reap/PublishTask.html" class="link">Reap::PublishTask</a><br />
|
146
|
-
Class <a href="Reap/RDocTask.html" class="link">Reap::RDocTask</a><br />
|
147
|
-
Class <a href="Reap/Runner.html" class="link">Reap::Runner</a><br />
|
148
|
-
Class <a href="Reap/Task.html" class="link">Reap::Task</a><br />
|
149
|
-
Class <a href="Reap/TemplateTask.html" class="link">Reap::TemplateTask</a><br />
|
150
|
-
Class <a href="Reap/TestTask.html" class="link">Reap::TestTask</a><br />
|
151
|
-
|
152
|
-
</div>
|
153
|
-
|
154
|
-
<div id="constants-list">
|
155
|
-
<h3 class="section-bar">Constants</h3>
|
156
|
-
|
157
|
-
<div class="name-list">
|
158
|
-
<table summary="Constants">
|
159
|
-
<tr class="top-aligned-row context-row">
|
160
|
-
<td class="context-item-name">VERSION</td>
|
161
|
-
<td>=</td>
|
162
|
-
<td class="context-item-value">"0.4.0"</td>
|
163
|
-
</tr>
|
164
|
-
</table>
|
165
|
-
</div>
|
166
|
-
</div>
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
<!-- if method_list -->
|
174
|
-
|
175
|
-
|
176
|
-
</div>
|
177
|
-
|
178
|
-
|
179
|
-
<div id="validator-badges">
|
180
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
181
|
-
</div>
|
182
|
-
|
183
|
-
</body>
|
184
|
-
</html>
|
@@ -1,331 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Class: Reap::AnnounceTask</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">Reap::AnnounceTask</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../files/lib/reap/tasks/announce-task_rb.html">
|
59
|
-
lib/reap/tasks/announce-task.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
<tr class="top-aligned-row">
|
66
|
-
<td><strong>Parent:</strong></td>
|
67
|
-
<td>
|
68
|
-
<a href="Task.html">
|
69
|
-
Task
|
70
|
-
</a>
|
71
|
-
</td>
|
72
|
-
</tr>
|
73
|
-
</table>
|
74
|
-
</div>
|
75
|
-
<!-- banner header -->
|
76
|
-
|
77
|
-
<div id="bodyContent">
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
<div id="contextContent">
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
</div>
|
86
|
-
|
87
|
-
<div id="method-list">
|
88
|
-
<h3 class="section-bar">Methods</h3>
|
89
|
-
|
90
|
-
<div class="name-list">
|
91
|
-
<a href="#M000041">desc</a>
|
92
|
-
<a href="#M000043">run</a>
|
93
|
-
<a href="#M000042">set</a>
|
94
|
-
<a href="#M000040">task</a>
|
95
|
-
</div>
|
96
|
-
</div>
|
97
|
-
|
98
|
-
</div>
|
99
|
-
|
100
|
-
|
101
|
-
<!-- if includes -->
|
102
|
-
|
103
|
-
<div id="section">
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
<!-- if method_list -->
|
113
|
-
<div id="methods">
|
114
|
-
<h3 class="section-bar">Public Class methods</h3>
|
115
|
-
|
116
|
-
<div id="method-M000041" class="method-detail">
|
117
|
-
<a name="M000041"></a>
|
118
|
-
|
119
|
-
<div class="method-heading">
|
120
|
-
<a href="#M000041" class="method-signature">
|
121
|
-
<span class="method-name">desc</span><span class="method-args">()</span>
|
122
|
-
</a>
|
123
|
-
</div>
|
124
|
-
|
125
|
-
<div class="method-description">
|
126
|
-
<p><a class="source-toggle" href="#"
|
127
|
-
onclick="toggleCode('M000041-source');return false;">[Source]</a></p>
|
128
|
-
<div class="method-source-code" id="M000041-source">
|
129
|
-
<pre>
|
130
|
-
<span class="ruby-comment cmt"># File lib/reap/tasks/announce-task.rb, line 15</span>
|
131
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">desc</span> ; <span class="ruby-value str">"Sends [ANN] email to ruby-talk or other list."</span> ; <span class="ruby-keyword kw">end</span>
|
132
|
-
</pre>
|
133
|
-
</div>
|
134
|
-
</div>
|
135
|
-
</div>
|
136
|
-
|
137
|
-
<div id="method-M000040" class="method-detail">
|
138
|
-
<a name="M000040"></a>
|
139
|
-
|
140
|
-
<div class="method-heading">
|
141
|
-
<a href="#M000040" class="method-signature">
|
142
|
-
<span class="method-name">task</span><span class="method-args">()</span>
|
143
|
-
</a>
|
144
|
-
</div>
|
145
|
-
|
146
|
-
<div class="method-description">
|
147
|
-
<p><a class="source-toggle" href="#"
|
148
|
-
onclick="toggleCode('M000040-source');return false;">[Source]</a></p>
|
149
|
-
<div class="method-source-code" id="M000040-source">
|
150
|
-
<pre>
|
151
|
-
<span class="ruby-comment cmt"># File lib/reap/tasks/announce-task.rb, line 13</span>
|
152
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">task</span> ; <span class="ruby-identifier">:announce</span> ; <span class="ruby-keyword kw">end</span>
|
153
|
-
</pre>
|
154
|
-
</div>
|
155
|
-
</div>
|
156
|
-
</div>
|
157
|
-
|
158
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
159
|
-
|
160
|
-
<div id="method-M000043" class="method-detail">
|
161
|
-
<a name="M000043"></a>
|
162
|
-
|
163
|
-
<div class="method-heading">
|
164
|
-
<a href="#M000043" class="method-signature">
|
165
|
-
<span class="method-name">run</span><span class="method-args">()</span>
|
166
|
-
</a>
|
167
|
-
</div>
|
168
|
-
|
169
|
-
<div class="method-description">
|
170
|
-
<p><a class="source-toggle" href="#"
|
171
|
-
onclick="toggleCode('M000043-source');return false;">[Source]</a></p>
|
172
|
-
<div class="method-source-code" id="M000043-source">
|
173
|
-
<pre>
|
174
|
-
<span class="ruby-comment cmt"># File lib/reap/tasks/announce-task.rb, line 108</span>
|
175
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">run</span>
|
176
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-node">"\n#{@message}\n\n"</span>
|
177
|
-
<span class="ruby-identifier">print</span> <span class="ruby-value str">"Send? [Y/n] "</span>
|
178
|
-
<span class="ruby-keyword kw">until</span> <span class="ruby-identifier">inp</span> = <span class="ruby-identifier">$stdin</span>.<span class="ruby-identifier">gets</span>[<span class="ruby-value">0</span>,<span class="ruby-value">1</span>] ; <span class="ruby-identifier">sleep</span> <span class="ruby-value">1</span> ; <span class="ruby-keyword kw">end</span>
|
179
|
-
<span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">inp</span> <span class="ruby-operator">||</span> <span class="ruby-value str">'y'</span>).<span class="ruby-identifier">downcase</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'y'</span>
|
180
|
-
<span class="ruby-comment cmt"># ask for password</span>
|
181
|
-
<span class="ruby-identifier">print</span> <span class="ruby-node">"Password for #{@account}: "</span>
|
182
|
-
<span class="ruby-keyword kw">until</span> <span class="ruby-identifier">passwd</span> = <span class="ruby-identifier">$stdin</span>.<span class="ruby-identifier">gets</span>.<span class="ruby-identifier">strip</span> ; <span class="ruby-identifier">sleep</span> <span class="ruby-value">1</span> ; <span class="ruby-keyword kw">end</span>
|
183
|
-
<span class="ruby-identifier">mail</span> = <span class="ruby-node">%Q{
|
184
|
-
|From: #{@from}
|
185
|
-
|To: #{@address}
|
186
|
-
|Subject: #{@subject}
|
187
|
-
|
|
188
|
-
|#{@message}
|
189
|
-
}</span>.<span class="ruby-identifier">margin</span>
|
190
|
-
<span class="ruby-keyword kw">begin</span>
|
191
|
-
<span class="ruby-comment cmt"># --- Send using SMTP object and an adaptor</span>
|
192
|
-
<span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">SMTP</span>.<span class="ruby-identifier">start</span>(<span class="ruby-ivar">@server</span>, <span class="ruby-ivar">@port</span>, <span class="ruby-ivar">@domain</span>, <span class="ruby-ivar">@account</span>, <span class="ruby-identifier">passwd</span>, <span class="ruby-ivar">@authtype</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span>
|
193
|
-
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">send_message</span> <span class="ruby-identifier">mail</span>, <span class="ruby-ivar">@from</span>, <span class="ruby-ivar">@address</span>
|
194
|
-
<span class="ruby-keyword kw">end</span>
|
195
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-node">"Email sent successfully to #{@address}."</span>
|
196
|
-
<span class="ruby-keyword kw">rescue</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span>
|
197
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-value str">"Email delivery failed."</span>
|
198
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">e</span>
|
199
|
-
<span class="ruby-keyword kw">end</span>
|
200
|
-
<span class="ruby-keyword kw">else</span>
|
201
|
-
<span class="ruby-identifier">puts</span> <span class="ruby-value str">"Reap announce task canceled."</span>
|
202
|
-
<span class="ruby-identifier">exit</span> <span class="ruby-value">0</span>
|
203
|
-
<span class="ruby-keyword kw">end</span>
|
204
|
-
<span class="ruby-keyword kw">end</span>
|
205
|
-
</pre>
|
206
|
-
</div>
|
207
|
-
</div>
|
208
|
-
</div>
|
209
|
-
|
210
|
-
<div id="method-M000042" class="method-detail">
|
211
|
-
<a name="M000042"></a>
|
212
|
-
|
213
|
-
<div class="method-heading">
|
214
|
-
<a href="#M000042" class="method-signature">
|
215
|
-
<span class="method-name">set</span><span class="method-args">( section )</span>
|
216
|
-
</a>
|
217
|
-
</div>
|
218
|
-
|
219
|
-
<div class="method-description">
|
220
|
-
<p><a class="source-toggle" href="#"
|
221
|
-
onclick="toggleCode('M000042-source');return false;">[Source]</a></p>
|
222
|
-
<div class="method-source-code" id="M000042-source">
|
223
|
-
<pre>
|
224
|
-
<span class="ruby-comment cmt"># File lib/reap/tasks/announce-task.rb, line 18</span>
|
225
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set</span>( <span class="ruby-identifier">section</span> )
|
226
|
-
<span class="ruby-ivar">@address</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'to'</span>]
|
227
|
-
<span class="ruby-ivar">@from</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'from'</span>].<span class="ruby-identifier">to_s</span>
|
228
|
-
<span class="ruby-ivar">@server</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'server'</span>].<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">strip</span>
|
229
|
-
<span class="ruby-ivar">@port</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'port'</span>] <span class="ruby-operator">||</span> <span class="ruby-value">25</span>
|
230
|
-
<span class="ruby-ivar">@domain</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'domain'</span>].<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">strip</span>
|
231
|
-
<span class="ruby-ivar">@account</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'account'</span>].<span class="ruby-identifier">to_s</span>
|
232
|
-
<span class="ruby-ivar">@authtype</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'authtype'</span>].<span class="ruby-identifier">to_sym</span>
|
233
|
-
<span class="ruby-ivar">@subject</span> = <span class="ruby-node">"[ANN] #{@config['title']}, v#{@config['version']}"</span>
|
234
|
-
|
235
|
-
<span class="ruby-comment cmt">#raise "DOMAIN is a required field" if @domain.empty?</span>
|
236
|
-
|
237
|
-
<span class="ruby-identifier">announce</span> = <span class="ruby-node">%Q{
|
238
|
-
|
|
239
|
-
|A N N O U N C I N G
|
240
|
-
|
|
241
|
-
|#{@config['title']}, v#{@config['version']}
|
242
|
-
|
|
243
|
-
|#{@config['summary']}
|
244
|
-
|
|
245
|
-
}</span>.<span class="ruby-identifier">margin</span>.<span class="ruby-identifier">center_lines</span>(<span class="ruby-value">66</span>)
|
246
|
-
|
247
|
-
<span class="ruby-comment cmt"># abstract</span>
|
248
|
-
<span class="ruby-identifier">abstract</span> = <span class="ruby-value str">''</span>
|
249
|
-
<span class="ruby-identifier">desc</span> = <span class="ruby-ivar">@config</span>[<span class="ruby-value str">'description'</span>]
|
250
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">desc</span>
|
251
|
-
<span class="ruby-identifier">abstract</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n\n"</span>
|
252
|
-
<span class="ruby-identifier">abstract</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"ABSTRACT: #{desc}"</span>.<span class="ruby-identifier">word_wrap</span>(<span class="ruby-value">72</span>)
|
253
|
-
<span class="ruby-identifier">abstract</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span>
|
254
|
-
<span class="ruby-keyword kw">end</span>
|
255
|
-
|
256
|
-
<span class="ruby-comment cmt"># more info</span>
|
257
|
-
<span class="ruby-identifier">info</span> = <span class="ruby-value str">''</span>
|
258
|
-
<span class="ruby-identifier">info_arr</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'info'</span>]
|
259
|
-
<span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">info_arr</span>.<span class="ruby-identifier">empty?</span>
|
260
|
-
<span class="ruby-identifier">info</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span>
|
261
|
-
<span class="ruby-identifier">info</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"For More Information"</span>.<span class="ruby-identifier">center</span>(<span class="ruby-value">67</span>)
|
262
|
-
<span class="ruby-identifier">info</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span>
|
263
|
-
<span class="ruby-identifier">info_arr</span>.<span class="ruby-identifier">each</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">mi</span><span class="ruby-operator">|</span> <span class="ruby-identifier">info</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{mi}"</span>.<span class="ruby-identifier">center</span>(<span class="ruby-value">67</span>) }
|
264
|
-
<span class="ruby-identifier">info</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n\n"</span>
|
265
|
-
<span class="ruby-keyword kw">end</span>
|
266
|
-
|
267
|
-
<span class="ruby-comment cmt"># slogan</span>
|
268
|
-
<span class="ruby-identifier">slogan</span> = <span class="ruby-value str">''</span>
|
269
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">section</span>[<span class="ruby-value str">'slogan'</span>]
|
270
|
-
<span class="ruby-identifier">slogan</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n\n"</span>
|
271
|
-
<span class="ruby-identifier">slogan</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">section</span>[<span class="ruby-value str">'slogan'</span>].<span class="ruby-identifier">center</span>(<span class="ruby-value">67</span>)
|
272
|
-
<span class="ruby-identifier">slogan</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n\n"</span>
|
273
|
-
<span class="ruby-keyword kw">end</span>
|
274
|
-
|
275
|
-
<span class="ruby-comment cmt"># memo</span>
|
276
|
-
<span class="ruby-identifier">memo</span> = <span class="ruby-value str">''</span>
|
277
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">section</span>[<span class="ruby-value str">'memo'</span>]
|
278
|
-
<span class="ruby-identifier">memo</span> = <span class="ruby-value str">''</span>
|
279
|
-
<span class="ruby-identifier">memo</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span> <span class="ruby-operator"><<</span> (<span class="ruby-value str">'-'</span> <span class="ruby-operator">*</span> <span class="ruby-value">72</span>) <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span>
|
280
|
-
<span class="ruby-identifier">memo</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"(Memo)\n\n"</span>
|
281
|
-
<span class="ruby-identifier">memo</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">section</span>[<span class="ruby-value str">'memo'</span>].<span class="ruby-identifier">clump</span>.<span class="ruby-identifier">word_wrap</span>(<span class="ruby-value">72</span>)
|
282
|
-
<span class="ruby-comment cmt">#memo << "\n"</span>
|
283
|
-
<span class="ruby-keyword kw">end</span>
|
284
|
-
|
285
|
-
<span class="ruby-comment cmt"># msg file</span>
|
286
|
-
<span class="ruby-identifier">msg</span> = <span class="ruby-value str">''</span>
|
287
|
-
<span class="ruby-identifier">msg_file</span> = <span class="ruby-identifier">section</span>[<span class="ruby-value str">'file'</span>]
|
288
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">msg_file</span> <span class="ruby-keyword kw">and</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">file?</span>( <span class="ruby-identifier">msg_file</span> )
|
289
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span> <span class="ruby-operator"><<</span> (<span class="ruby-value str">"-"</span> <span class="ruby-operator">*</span> <span class="ruby-value">72</span>) <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span>
|
290
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"(from #{msg_file})\n\n"</span>
|
291
|
-
<span class="ruby-identifier">mg</span> = <span class="ruby-value str">''</span>
|
292
|
-
<span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>( <span class="ruby-identifier">msg_file</span> ) { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">mg</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">gets</span>(<span class="ruby-keyword kw">nil</span>) }
|
293
|
-
<span class="ruby-identifier">msg</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">mg</span>.<span class="ruby-identifier">clump</span>.<span class="ruby-identifier">word_wrap</span>(<span class="ruby-value">72</span>)
|
294
|
-
<span class="ruby-keyword kw">end</span>
|
295
|
-
|
296
|
-
<span class="ruby-comment cmt"># stamp</span>
|
297
|
-
<span class="ruby-identifier">stamp</span> = <span class="ruby-value str">''</span>
|
298
|
-
<span class="ruby-identifier">stamp</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span> <span class="ruby-operator"><<</span> (<span class="ruby-value str">"-"</span> <span class="ruby-operator">*</span> <span class="ruby-value">72</span>) <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span>
|
299
|
-
<span class="ruby-identifier">stamp</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">%Q{
|
300
|
-
|Generated by Reap, a dedicated Ruby Packaging Assistant.
|
301
|
-
|Do you Ruby? (http://www.ruby-lang.org)
|
302
|
-
}</span>.<span class="ruby-identifier">margin</span>
|
303
|
-
<span class="ruby-identifier">stamp</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n\n"</span>
|
304
|
-
|
305
|
-
<span class="ruby-ivar">@message</span> = <span class="ruby-value str">''</span>
|
306
|
-
<span class="ruby-ivar">@message</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">announce</span>
|
307
|
-
<span class="ruby-ivar">@message</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">abstract</span>
|
308
|
-
<span class="ruby-ivar">@message</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">info</span>
|
309
|
-
<span class="ruby-ivar">@message</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">slogan</span>
|
310
|
-
<span class="ruby-ivar">@message</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">memo</span>
|
311
|
-
<span class="ruby-ivar">@message</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">msg</span>
|
312
|
-
<span class="ruby-ivar">@message</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">stamp</span>
|
313
|
-
<span class="ruby-keyword kw">end</span>
|
314
|
-
</pre>
|
315
|
-
</div>
|
316
|
-
</div>
|
317
|
-
</div>
|
318
|
-
|
319
|
-
|
320
|
-
</div>
|
321
|
-
|
322
|
-
|
323
|
-
</div>
|
324
|
-
|
325
|
-
|
326
|
-
<div id="validator-badges">
|
327
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
328
|
-
</div>
|
329
|
-
|
330
|
-
</body>
|
331
|
-
</html>
|