This repository was archived by the owner on Jul 8, 2021. It is now read-only.
forked from ruby-marc/ruby-marc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
47 lines (41 loc) · 1.21 KB
/
Rakefile
File metadata and controls
47 lines (41 loc) · 1.21 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
47
RUBY_MARC_VERSION = '0.4.1'
require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/packagetask'
require 'rake/gempackagetask'
task :default => [:test]
Rake::TestTask.new('test') do |t|
t.libs << 'lib'
t.pattern = 'test/tc_*.rb'
t.verbose = true
t.ruby_opts = ['-r marc', '-r test/unit']
end
spec = Gem::Specification.new do |s|
s.name = 'marc'
s.version = RUBY_MARC_VERSION
s.author = 'Ed Summers'
s.email = 'ehs@pobox.com'
s.homepage = 'http://marc.rubyforge.org/'
s.platform = Gem::Platform::RUBY
s.summary = 'A ruby library for working with Machine Readable Cataloging'
s.files = Dir.glob("{lib,test}/**/*") + ["Rakefile", "README", "Changes",
"LICENSE"]
s.require_path = 'lib'
s.autorequire = 'marc'
s.has_rdoc = true
s.required_ruby_version = '>= 1.8.6'
s.authors = ["Kevin Clarke", "Bill Dueber", "William Groppe", "Ross Singer", "Ed Summers"]
s.test_file = 'test/ts_marc.rb'
s.bindir = 'bin'
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_zip = true
pkg.need_tar = true
end
Rake::RDocTask.new('doc') do |rd|
rd.rdoc_files.include("README", "Changes", "LICENSE", "lib/**/*.rb")
rd.main = 'MARC::Record'
rd.rdoc_dir = 'doc'
end