Skip to content
Snippets Groups Projects
Commit 2b357fc8 authored by Simon Schuster's avatar Simon Schuster
Browse files

Eliminate rakes FileList

parent fb78f19b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment