-
Notifications
You must be signed in to change notification settings - Fork 4
/
Rakefile
108 lines (93 loc) · 2.66 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
require 'rubygems'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'rake/testtask'
require 'date'
desc 'Default: run unit tests.'
task :default => [:test]
# ------- Default Package ----------
RUBY_DEBUG_IDE_VERSION = "0.4.13"
FILES = FileList[
# 'CHANGES',
# 'ChangeLog',
# 'ChangeLog.archive',
'MIT-LICENSE',
'Rakefile',
'bin/*',
'lib/**/*'
# 'test/**/*'
]
ide_spec = Gem::Specification.new do |spec|
spec.name = "ruby-debug-ide19"
spec.homepage = "http://rubyforge.org/projects/ruby-debug19"
spec.summary = "IDE interface for ruby-debug."
spec.description = <<-EOF
An interface which glues ruby-debug to IDEs like Eclipse (RDT) and NetBeans.
EOF
spec.version = RUBY_DEBUG_IDE_VERSION
spec.author = "Markus Barchfeld, Martin Krauskopf, Mark Moseley"
spec.email = "[email protected]"
spec.platform = Gem::Platform::RUBY
spec.require_path = "lib"
spec.bindir = "bin"
spec.executables = ["rdebug-ide"]
spec.files = FILES.to_a
spec.add_dependency("ruby-debug-base19", "~> 0.12.0")
spec.required_ruby_version = '>= 1.8.2'
spec.date = DateTime.now
spec.rubyforge_project = 'debug-commons'
# rdoc
spec.has_rdoc = false
end
# Rake task to build the default package
Rake::GemPackageTask.new(ide_spec) do |pkg|
pkg.need_tar = true
end
# Unit tests
Rake::TestTask.new do |t|
t.libs << "test"
t.libs << "test-base"
t.pattern = 'test/*_test.rb'
t.verbose = true
t.warning = false
end
desc "Create a GNU-style ChangeLog via svn2cl"
task :ChangeLog do
system("svn2cl --authors=svn2cl_usermap svn://rubyforge.org/var/svn/debug-commons/ruby-debug-ide/trunk -o ChangeLog")
end
#desc "Publish ruby-debug to RubyForge."
#task :publish do
# require 'rake/contrib/sshpublisher'
#
# # Get ruby-debug path
# ruby_debug_path = File.expand_path(File.dirname(__FILE__))
#
# publisher = Rake::SshDirPublisher.new("[email protected]",
# "/var/www/gforge-projects/ruby-debug", ruby_debug_path)
#end
#
#desc "Clear temp files"
#task :clean do
# cd "ext" do
# if File.exists?("Makefile")
# sh "make clean"
# rm "Makefile"
# end
# end
#end
#
## --------- RDoc Documentation ------
#desc "Generate rdoc documentation"
#Rake::RDocTask.new("rdoc") do |rdoc|
# rdoc.rdoc_dir = 'doc'
# rdoc.title = "ruby-debug"
# # Show source inline with line numbers
# rdoc.options << "--inline-source" << "--line-numbers"
# # Make the readme file the start page for the generated html
# rdoc.options << '--main' << 'README'
# rdoc.rdoc_files.include('bin/**/*',
# 'lib/**/*.rb',
# 'ext/**/ruby_debug.c',
# 'README',
# 'LICENSE')
#end