tkar 0.63 → 0.64
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/COPYING +22 -0
- data/README.md +142 -0
- data/Rakefile +64 -0
- data/{FAQ.rdoc → doc/faq.md} +9 -9
- data/{History.txt → doc/old-history.txt} +4 -0
- data/{protocol.rdoc → doc/protocol.md} +213 -210
- data/lib/tkar/version.rb +1 -2
- metadata +44 -78
- data/.gitignore +0 -5
- data/README.rdoc +0 -153
- data/TODO +0 -67
- data/bin/tkar +0 -104
- data/examples/s +0 -3
- data/install.rb +0 -1015
- data/rakefile +0 -56
- data/tasks/ann.rake +0 -80
- data/tasks/bones.rake +0 -20
- data/tasks/gem.rake +0 -201
- data/tasks/git.rake +0 -40
- data/tasks/notes.rake +0 -27
- data/tasks/post_load.rake +0 -34
- data/tasks/rdoc.rake +0 -51
- data/tasks/rubyforge.rake +0 -55
- data/tasks/setup.rb +0 -292
- data/tasks/spec.rake +0 -54
- data/tasks/svn.rake +0 -47
- data/tasks/test.rake +0 -40
- data/tasks/zentest.rake +0 -36
data/tasks/svn.rake
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
|
2
|
-
if HAVE_SVN
|
3
|
-
|
4
|
-
unless PROJ.svn.root
|
5
|
-
info = %x/svn info ./
|
6
|
-
m = %r/^Repository Root:\s+(.*)$/.match(info)
|
7
|
-
PROJ.svn.root = (m.nil? ? '' : m[1])
|
8
|
-
end
|
9
|
-
PROJ.svn.root = File.join(PROJ.svn.root, PROJ.svn.path) unless PROJ.svn.path.empty?
|
10
|
-
|
11
|
-
namespace :svn do
|
12
|
-
|
13
|
-
# A prerequisites task that all other tasks depend upon
|
14
|
-
task :prereqs
|
15
|
-
|
16
|
-
desc 'Show tags from the SVN repository'
|
17
|
-
task :show_tags => 'svn:prereqs' do |t|
|
18
|
-
tags = %x/svn list #{File.join(PROJ.svn.root, PROJ.svn.tags)}/
|
19
|
-
tags.gsub!(%r/\/$/, '')
|
20
|
-
tags = tags.split("\n").sort {|a,b| b <=> a}
|
21
|
-
puts tags
|
22
|
-
end
|
23
|
-
|
24
|
-
desc 'Create a new tag in the SVN repository'
|
25
|
-
task :create_tag => 'svn:prereqs' do |t|
|
26
|
-
v = ENV['VERSION'] or abort 'Must supply VERSION=x.y.z'
|
27
|
-
abort "Versions don't match #{v} vs #{PROJ.version}" if v != PROJ.version
|
28
|
-
|
29
|
-
svn = PROJ.svn
|
30
|
-
trunk = File.join(svn.root, svn.trunk)
|
31
|
-
tag = "%s-%s" % [PROJ.name, PROJ.version]
|
32
|
-
tag = File.join(svn.root, svn.tags, tag)
|
33
|
-
msg = "Creating tag for #{PROJ.name} version #{PROJ.version}"
|
34
|
-
|
35
|
-
puts "Creating SVN tag '#{tag}'"
|
36
|
-
unless system "svn cp -m '#{msg}' #{trunk} #{tag}"
|
37
|
-
abort "Tag creation failed"
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
end # namespace :svn
|
42
|
-
|
43
|
-
task 'gem:release' => 'svn:create_tag'
|
44
|
-
|
45
|
-
end # if PROJ.svn.path
|
46
|
-
|
47
|
-
# EOF
|
data/tasks/test.rake
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
|
2
|
-
if test(?e, PROJ.test.file) or not PROJ.test.files.to_a.empty?
|
3
|
-
require 'rake/testtask'
|
4
|
-
|
5
|
-
namespace :test do
|
6
|
-
|
7
|
-
Rake::TestTask.new(:run) do |t|
|
8
|
-
t.libs = PROJ.libs
|
9
|
-
t.test_files = if test(?f, PROJ.test.file) then [PROJ.test.file]
|
10
|
-
else PROJ.test.files end
|
11
|
-
t.ruby_opts += PROJ.ruby_opts
|
12
|
-
t.ruby_opts += PROJ.test.opts
|
13
|
-
end
|
14
|
-
|
15
|
-
if HAVE_RCOV
|
16
|
-
desc 'Run rcov on the unit tests'
|
17
|
-
task :rcov => :clobber_rcov do
|
18
|
-
opts = PROJ.rcov.opts.dup << '-o' << PROJ.rcov.dir
|
19
|
-
opts = opts.join(' ')
|
20
|
-
files = if test(?f, PROJ.test.file) then [PROJ.test.file]
|
21
|
-
else PROJ.test.files end
|
22
|
-
files = files.join(' ')
|
23
|
-
sh "#{RCOV} #{files} #{opts}"
|
24
|
-
end
|
25
|
-
|
26
|
-
task :clobber_rcov do
|
27
|
-
rm_r 'coverage' rescue nil
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
end # namespace :test
|
32
|
-
|
33
|
-
desc 'Alias to test:run'
|
34
|
-
task :test => 'test:run'
|
35
|
-
|
36
|
-
task :clobber => 'test:clobber_rcov' if HAVE_RCOV
|
37
|
-
|
38
|
-
end
|
39
|
-
|
40
|
-
# EOF
|
data/tasks/zentest.rake
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
if HAVE_ZENTEST
|
2
|
-
|
3
|
-
# --------------------------------------------------------------------------
|
4
|
-
if test(?e, PROJ.test.file) or not PROJ.test.files.to_a.empty?
|
5
|
-
require 'autotest'
|
6
|
-
|
7
|
-
namespace :test do
|
8
|
-
task :autotest do
|
9
|
-
Autotest.run
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
desc "Run the autotest loop"
|
14
|
-
task :autotest => 'test:autotest'
|
15
|
-
|
16
|
-
end # if test
|
17
|
-
|
18
|
-
# --------------------------------------------------------------------------
|
19
|
-
if HAVE_SPEC_RAKE_SPECTASK and not PROJ.spec.files.to_a.empty?
|
20
|
-
require 'autotest/rspec'
|
21
|
-
|
22
|
-
namespace :spec do
|
23
|
-
task :autotest do
|
24
|
-
load '.autotest' if test(?f, '.autotest')
|
25
|
-
Autotest::Rspec.run
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
desc "Run the autotest loop"
|
30
|
-
task :autotest => 'spec:autotest'
|
31
|
-
|
32
|
-
end # if rspec
|
33
|
-
|
34
|
-
end # if HAVE_ZENTEST
|
35
|
-
|
36
|
-
# EOF
|