-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
60 lines (51 loc) · 1.31 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
require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
$LOAD_PATH.unshift 'lib'
require 'osxtrash/version'
$KCODE = "UTF-8"
task :default => [:test_units]
desc "Run basic tests"
Rake::TestTask.new("test_units") do |t|
t.pattern = 'test/*_test.rb'
t.verbose = false
t.warning = true
end
PKG_NAME = 'osx-trash'
PKG_VERSION = OSXTrash::VERSION
PKG_FILES = FileList[
'[A-Z]*',
'bin/**/*',
'lib/**/*.rb',
]
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "#{PKG_NAME} -- Mac OS X Trash Manipulation"
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('bin/*')
end
spec = Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.summary = "Mac OS X Trash Manipulation"
s.name = PKG_NAME
s.version = PKG_VERSION
s.requirements << 'Mac OS X 10.5'
s.requirements << 'RubyCocoa'
s.require_path = 'lib'
s.files = PKG_FILES
s.has_rdoc = true
s.bindir = 'bin'
s.executables = ['trash']
s.description = <<-EOF
Manipulate the Mac OS X Finder's Trash using Scripting Bridge and RubyCocoa.
EOF
s.author = "Dave Dribin"
s.homepage = "http://www.dribin.org/dave/osx-trash/"
s.rubyforge_project = 'osx-trash'
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_zip = true
pkg.need_tar = true
end