Eliminate rakes FileList
... | ... | @@ -6,23 +6,21 @@ require 'rubygems' unless |
LPSOLVE_VERSION = open("VERSION").read.chomp | ||
PKG_NAME = 'lpsolve' | ||
FILES = FileList[ | ||
'Rakefile', | ||
'VERSION', | ||
'doc/*', | ||
'example/*', | ||
'ext/*.c', | ||
'ext/Makefile', | ||
'ext/extconf.rb', | ||
'test/*.rb', | ||
'test/*.right', | ||
'test/Rakefile', | ||
] | ||
FILES = ['Rakefile', 'VERSION'] \ | ||
+ Dir['doc/*'] \ | ||
+ Dir['example/*'] \ | ||
+ Dir['ext/*.c'] \ | ||
+ Dir['ext/Makefile'] \ | ||
+ Dir['ext/extconf.rb'] \ | ||
+ Dir['test/*.rb'] \ | ||
+ Dir['test/*.right'] \ | ||
+ ['test/Rakefile'] | ||
#desc "Create GEM spec file" | ||
Gem::Specification.new do |spec| | ||
spec.name = PKG_NAME | ||
spec.homepage = "http://github.org/rocky/rb-lpsolve/" | ||
spec.summary = "Ruby interface to lpsolve version 5.5.0.10" | ||
spec.description = <<-EOF | ||
... | ... | @@ -39,8 +37,8 @@ EOF |
spec.bindir = "bin" | ||
spec.executables = [] | ||
spec.extensions = ["ext/extconf.rb"] | ||
spec.files = FILES.to_a | ||
spec.test_files = FileList['test/*.rb', 'test/*.right', 'test/Rakefile'] | ||
spec.files = FILES | ||
spec.test_files = Dir['test/*.rb'] + Dir['test/*.right'] + ['test/Rakefile'] | ||
spec.required_ruby_version = '>= 1.8.4' | ||
spec.date = Time.now | ||
... | ... |
Please register or sign in to comment