-
Notifications
You must be signed in to change notification settings - Fork 8
/
gemspec.rb
39 lines (29 loc) · 1021 Bytes
/
gemspec.rb
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
#! /usr/bin/env gem build
#:stopdoc:
lib, version = File::basename(File::dirname(File::expand_path(__FILE__))).split %r/-/, 2
require 'rubygems'
Gem::Specification::new do |spec|
$VERBOSE = nil
shiteless = lambda do |list|
list.delete_if do |file|
file =~ %r/\.svn/ or
file =~ %r/\.tmp/
end
end
spec.name = lib
spec.version = version
spec.platform = Gem::Platform::RUBY
spec.summary = lib
spec.files = shiteless[Dir::glob("**/**")]
spec.executables = shiteless[Dir::glob("bin/*")].map{|exe| File::basename exe}
spec.require_path = "lib"
spec.has_rdoc = File::exist? "doc"
spec.test_suite_file = "test/#{ lib }.rb" if File::directory? "test"
#spec.add_dependency 'lib', '>= version'
spec.add_dependency 'fattr'
spec.extensions << "extconf.rb" if File::exists? "extconf.rb"
spec.rubyforge_project = 'codeforpeople'
spec.author = "Ara T. Howard"
spec.email = "[email protected]"
spec.homepage = "http://codeforpeople.com/lib/ruby/#{ lib }/"
end