-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRakefile
More file actions
executable file
·46 lines (41 loc) · 1.22 KB
/
Rakefile
File metadata and controls
executable file
·46 lines (41 loc) · 1.22 KB
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
require 'rubygems'
require 'rake/gempackagetask'
require 'fileutils'
def read_version
File.open('lib/ruined/ruinmain.rb').each_line do |x|
m = /RUINED_VERSION[^']+'(.+?)'/.match(x)
if m
return m[1]
end
end
nil
end
desc "Default Task"
task :default => [ :package ]
spec = Gem::Specification.new do |s|
s.authors = 'arton'
s.email = 'artonx@gmail.com'
s.platform = Gem::Platform::RUBY
s.required_ruby_version = '>= 1.9.1'
s.summary = 'Ruby UI Debugger'
s.name = 'ruined'
s.homepage = 'http://github.com/arton/ruined'
s.version = read_version
s.requirements << 'none'
s.require_path = 'lib'
files = FileList['lib/ruined/*.rb', 'lib/uined*.rb', 'test/*.rb',
'lib/ruined/index.html', 'lib/ruined/html/**/*.html',
'lib/ruined/css/**/*.css', 'lib/ruined/css/**/*.png',
'lib/ruined/js/**/*.js',
'*.txt', 'BSDL', 'ChangeLog']
s.files = files
s.test_file = 'test/test.rb'
s.description = <<EOD
ruined is Ruby Source Level Debugger for educational purpose.
EOD
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
pkg.need_zip = false
pkg.need_tar = false
end