2005-03-25 20:32:28 +01:00
|
|
|
$__instiki_source_patterns = ['[A-Z]*', 'instiki', 'app/**/*', 'lib/**/*', 'vendor/**/*']
|
2005-01-15 21:26:54 +01:00
|
|
|
|
|
|
|
spec = Gem::Specification.new do |s|
|
|
|
|
s.platform = Gem::Platform::RUBY
|
|
|
|
s.name = 'instiki'
|
|
|
|
s.version = "0.9.2"
|
|
|
|
s.summary = 'Easy to install WikiClone running on WEBrick and Madeleine'
|
|
|
|
s.description = <<-EOF
|
|
|
|
Instiki is a Wiki Clone written in Ruby that ships with an embedded
|
|
|
|
webserver. You can setup up an Instiki in just a few steps.
|
|
|
|
Possibly the simplest wiki setup ever.
|
|
|
|
EOF
|
|
|
|
s.author = 'David Heinemeier Hansson'
|
|
|
|
s.email = 'david@loudthinking.com'
|
|
|
|
s.rubyforge_project = 'instiki'
|
|
|
|
s.homepage = 'http://www.instiki.org'
|
|
|
|
|
|
|
|
s.bindir = '.'
|
|
|
|
s.executables = ['instiki']
|
|
|
|
s.default_executable = 'instiki'
|
|
|
|
|
|
|
|
s.has_rdoc = true
|
|
|
|
s.rdoc_options << '--title' << 'Instiki -- The Wiki' <<
|
|
|
|
'--line-numbers' << '--inline-source'
|
|
|
|
# TODO: specify README as main RDoc file
|
|
|
|
|
|
|
|
s.add_dependency('madeleine', '= 0.7.1')
|
|
|
|
s.add_dependency('BlueCloth', '= 1.0.0')
|
|
|
|
s.add_dependency('RedCloth', '= 2.0.11')
|
|
|
|
s.add_dependency('rubyzip', '= 0.5.5')
|
|
|
|
s.requirements << 'none'
|
2005-03-25 20:32:28 +01:00
|
|
|
s.require_path = 'lib'
|
2005-01-15 21:26:54 +01:00
|
|
|
|
|
|
|
s.files = $__instiki_source_patterns.inject([]) { |list, glob|
|
|
|
|
list << Dir[glob].delete_if { |path|
|
|
|
|
File.directory?(path) or
|
2005-03-25 20:32:28 +01:00
|
|
|
path.include?('.svn/') or
|
2005-01-15 21:26:54 +01:00
|
|
|
path.include?('vendor/') or
|
|
|
|
path.include?('test/') or
|
|
|
|
path.include?('_test.rb')
|
|
|
|
}
|
|
|
|
}.flatten
|
|
|
|
|
|
|
|
end
|