reap 9.2.1 → 9.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +4 -0
- data/COPYING +675 -674
- data/MANIFEST +37 -44
- data/NOTES +4 -4
- data/Rakefile +1486 -0
- data/data/reap/base/COPYING +674 -674
- data/data/reap/base/README +23 -2
- data/data/reap/base/Rakefile +1486 -0
- data/data/reap/base/test/template.rb +16 -0
- data/data/reap/init/meta/project.yaml +19 -14
- data/lib/reap/default.yaml +57 -45
- data/lib/reap/extensions/file.rb +8 -0
- data/lib/reap/extensions/net/smtp_tls.rb +108 -0
- data/lib/reap/extensions.rb +2 -0
- data/lib/reap/metadata.rb +3 -2
- data/lib/reap/{manager → project}/announce.rb +3 -3
- data/lib/reap/{manager → project}/check.rb +1 -1
- data/lib/reap/{manager → project}/clean.rb +1 -1
- data/lib/reap/{manager → project}/gem.rb +5 -5
- data/lib/reap/{manager → project}/html.rb +25 -24
- data/lib/reap/{manager → project}/log.rb +19 -9
- data/lib/reap/{manager → project}/make.rb +29 -36
- data/lib/reap/{manager → project}/package.rb +4 -8
- data/lib/reap/{manager → project}/publish.rb +3 -3
- data/lib/reap/{manager → project}/rdoc.rb +13 -30
- data/lib/reap/{manager → project}/release.rb +5 -5
- data/lib/reap/{manager → project}/rubyforge.rb +7 -6
- data/lib/reap/{manager → project}/scaffold.rb +7 -2
- data/lib/reap/{manager → project}/scm.rb +3 -3
- data/lib/reap/{manager → project}/site.rb +1 -1
- data/lib/reap/{manager → project}/spec.rb +1 -1
- data/lib/reap/{manager → project}/stamp.rb +14 -11
- data/lib/reap/{manager → project}/stats.rb +1 -1
- data/lib/reap/{manager → project}/svn.rb +1 -1
- data/lib/reap/{manager → project}/test.rb +2 -20
- data/lib/reap/project.rb +34 -2
- data/lib/reap/systems/rubyforge.rb +5 -12
- data/lib/reap/systems/subversion.rb +4 -6
- data/lib/reap/{utilities/fileutils.rb → utilities.rb} +148 -60
- data/log/Changelog.txt +118 -0
- data/log/Fixme.txt +26 -0
- data/log/Todo.txt +94 -0
- data/meta/VERSION +1 -1
- data/meta/project.yaml +1 -1
- data/meta/unixname +1 -0
- data/test/unit/lib/reap/extensions/test_array.rb +12 -0
- metadata +44 -46
- data/data/reap/build/rake/Rakefile +0 -130
- data/data/reap/build/rake/setup.rb +0 -1616
- data/data/reap/build/rake-lite/install.rb +0 -79
- data/data/reap/build/tasks/task/rdoc +0 -211
- data/data/reap/build/tasks/task/setup +0 -1616
- data/data/reap/build/tasks/task/test +0 -38
- data/lib/reap/manager.rb +0 -75
- data/lib/reap/utilities/netutils.rb +0 -221
- data/lib/reap/utilities/setuputils.rb +0 -124
- data/lib/reap/utilities/shellutils.rb +0 -175
- data/log/FIXME.txt +0 -25
- data/log/TODO.txt +0 -72
- data/task/man +0 -14
- data/task/rdoc +0 -20
- data/task/setup +0 -1616
@@ -1,130 +0,0 @@
|
|
1
|
-
#/usr/bin/env ruby
|
2
|
-
|
3
|
-
##########################
|
4
|
-
# FILL-IN THESE SETTINGS #
|
5
|
-
########################################################################
|
6
|
-
|
7
|
-
PROJECT_NAME = "my_project"
|
8
|
-
|
9
|
-
RDOC_DIR = 'doc/rdoc'
|
10
|
-
RDOC_TITLE = "#{PROJECT_NAME.capitalize} API"
|
11
|
-
RDOC_MAIN = "README"
|
12
|
-
RDOC_FILES = ['A-Z*', 'lib', 'ext']
|
13
|
-
|
14
|
-
########################################################################
|
15
|
-
|
16
|
-
# Requirements ---------------------------------------------------------
|
17
|
-
require 'rake/clean'
|
18
|
-
require 'rake/testtask'
|
19
|
-
require 'rake/rdoctask'
|
20
|
-
|
21
|
-
# Default Tasks ---------------------------------------------------------
|
22
|
-
desc "Default task (compile and test)"
|
23
|
-
task :default => [:compile, :test]
|
24
|
-
|
25
|
-
# Clean Tasks ---------------------------------------------------------
|
26
|
-
CLEAN.include '**/*.o'
|
27
|
-
CLEAN.include '**/*.so'
|
28
|
-
|
29
|
-
# Clobber Tasks ---------------------------------------------------------
|
30
|
-
CLOBBER.include 'doc/rdoc'
|
31
|
-
CLOBBER.include '**/*.log'
|
32
|
-
CLOBBER.include '**/Makefile'
|
33
|
-
CLOBBER.include '**/extconf.h'
|
34
|
-
|
35
|
-
# RDoc Tasks ---------------------------------------------------------
|
36
|
-
desc "Create the RDOC documentation"
|
37
|
-
rd = Rake::RDocTask.new(:doc) do |rdoc|
|
38
|
-
rdoc.rdoc_dir = RDOC_DIR
|
39
|
-
rdoc.title = RDOC_TITLE
|
40
|
-
rdoc.options << '--main' << RDOC_MAIN
|
41
|
-
rdoc.rdoc_files.include(*RDOC_FILES)
|
42
|
-
end
|
43
|
-
|
44
|
-
# Test Tasks ---------------------------------------------------------
|
45
|
-
Rake::TestTask.new(:test) do |t|
|
46
|
-
t.test_files = FileList[
|
47
|
-
'tests/**/test_*.rb',
|
48
|
-
'tests/**/tc_*.rb',
|
49
|
-
]
|
50
|
-
t.warning = false
|
51
|
-
t.verbose = true
|
52
|
-
end
|
53
|
-
|
54
|
-
task :test => :compile
|
55
|
-
|
56
|
-
# Install Tasks ------------------------------------------------------
|
57
|
-
desc "Install to local site directory."
|
58
|
-
task :install do
|
59
|
-
cmd = File.glob('{setup.rb,install.rb,task/setup,task/install}').first
|
60
|
-
if cmd
|
61
|
-
system cmd
|
62
|
-
else
|
63
|
-
abort "No install/setup script found."
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
|
-
# Make tasks -----------------------------------------------------
|
68
|
-
MAKECMD = ENV['MAKE_CMD'] || 'make'
|
69
|
-
MAKEOPTS = ENV['MAKE_OPTS'] || ''
|
70
|
-
|
71
|
-
exts = File.glob('ext/*/extconf.rb')
|
72
|
-
dirs = exts.collect{ |e| File.dirname(e) }
|
73
|
-
maks = dirs.collect{ |d| File.join(d, 'Makefile' }
|
74
|
-
|
75
|
-
unless exts.empty?
|
76
|
-
dirs.each do |dir|
|
77
|
-
file File.join(dir,'Makefile') => File.join(dir,'extconf.rb') do
|
78
|
-
Dir.chdir(dir) do
|
79
|
-
ruby 'extconf.rb'
|
80
|
-
end
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
desc "Compile the shared object"
|
85
|
-
task :compile => maks do
|
86
|
-
dirs.each do |dir|
|
87
|
-
m = make(dir)
|
88
|
-
fail "Make failed (status #{m})" unless m == 0
|
89
|
-
end
|
90
|
-
end
|
91
|
-
|
92
|
-
#desc "Install to your site_ruby directory"
|
93
|
-
#task :install => :compile do
|
94
|
-
# m = make 'install'
|
95
|
-
# fail "Make install failed (status #{m})" unless m == 0
|
96
|
-
#end
|
97
|
-
end
|
98
|
-
|
99
|
-
def make(dir, target = '')
|
100
|
-
Dir.chdir(dir) do
|
101
|
-
pid = fork { exec "#{MAKECMD} #{MAKEOPTS} #{target}" }
|
102
|
-
Process.waitpid pid
|
103
|
-
end
|
104
|
-
$?.exitstatus
|
105
|
-
end
|
106
|
-
|
107
|
-
|
108
|
-
=begin
|
109
|
-
# Packaging / Version number tasks -----------------------------------
|
110
|
-
# Used during release packaging if a REL is supplied
|
111
|
-
task :update_version do
|
112
|
-
unless PKG_VERSION == CURRENT_VERSION
|
113
|
-
pkg_vernum = PKG_VERSION.tr('.','').sub(/^0*/,'')
|
114
|
-
pkg_vernum << '0' until pkg_vernum.length > 2
|
115
|
-
|
116
|
-
File.open('ext/xml/libxml.h.new','w+') do |f|
|
117
|
-
maj, min, mic, patch = /(\d+)\.(\d+)(?:\.(\d+))?(?:\.(\d+))?/.match(PKG_VERSION).captures
|
118
|
-
f << File.read('ext/xml/libxml.h').
|
119
|
-
gsub(/RUBY_LIBXML_VERSION\s+"(\d.+)"/) { "RUBY_LIBXML_VERSION \"#{PKG_VERSION}\"" }.
|
120
|
-
gsub(/RUBY_LIBXML_VERNUM\s+\d+/) { "RUBY_LIBXML_VERNUM #{pkg_vernum}" }.
|
121
|
-
gsub(/RUBY_LIBXML_VER_MAJ\s+\d+/) { "RUBY_LIBXML_VER_MAJ #{maj}" }.
|
122
|
-
gsub(/RUBY_LIBXML_VER_MIN\s+\d+/) { "RUBY_LIBXML_VER_MIN #{min}" }.
|
123
|
-
gsub(/RUBY_LIBXML_VER_MIC\s+\d+/) { "RUBY_LIBXML_VER_MIC #{mic || 0}" }.
|
124
|
-
gsub(/RUBY_LIBXML_VER_PATCH\s+\d+/) { "RUBY_LIBXML_VER_PATCH #{patch || 0}" }
|
125
|
-
end
|
126
|
-
mv('ext/xml/libxml.h.new', 'ext/xml/libxml.h')
|
127
|
-
end
|
128
|
-
end
|
129
|
-
=end
|
130
|
-
|