/
Rakefile
42 lines (35 loc) · 1.17 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
require 'rubygems'
require 'rake/testtask'
require 'rubygems/package_task'
require 'fileutils'
require 'rspec/core/rake_task'
Dir['tasks/**/*.rake'].each { |t| load t }
task :default => [ 'test', 'spec' ]
Rake::TestTask.new('test') do |t|
t.libs << 'lib'
t.libs << 'test'
t.pattern = 'test/**/*_test.rb'
t.warning = true
t.verbose = true
end
spec = Gem::Specification.new do |s|
s.name = "ragol"
s.version = "1.0.1"
s.author = "Jeff Pace"
s.email = "jeugenepace@gmail.com"
s.homepage = "http://github.com/jpace/ragol"
s.platform = Gem::Platform::RUBY
s.summary = "Ragol: Another GetOpt Library."
s.description = "Another implementation of an option processor."
s.files = FileList["lib/**/*"].to_a
s.require_path = "lib"
s.test_files = FileList["{test}/**/*test.rb"].to_a
s.has_rdoc = false
s.license = 'MIT'
s.add_dependency("logue", ">= 1.0.0")
end
Gem::PackageTask.new(spec) do |pkg|
pkg.need_zip = true
pkg.need_tar_gz = true
end
RSpec::Core::RakeTask.new(:spec)