$__instiki_source_patterns = ['[A-Z]*', 'instiki', 'app/**/*', 'lib/**/*', 'vendor/**/*'] 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' s.require_path = 'lib' s.files = $__instiki_source_patterns.inject([]) { |list, glob| list << Dir[glob].delete_if { |path| File.directory?(path) or path.include?('.svn/') or path.include?('vendor/') or path.include?('test/') or path.include?('_test.rb') } }.flatten end