Skip to content
Newer
Older
100644 37 lines (28 sloc) 990 Bytes
2d77a2a Initial import
macournoyer authored Nov 12, 2007
1 require 'rake'
348931b Add rake task to create gem
macournoyer authored Nov 15, 2007
2 require 'rake/clean'
2d77a2a Initial import
macournoyer authored Nov 12, 2007
3 require 'rake/testtask'
348931b Add rake task to create gem
macournoyer authored Nov 15, 2007
4 require 'rake/gempackagetask'
5
6 require File.dirname(__FILE__) + '/lib/thin'
7
8 CLEAN.include %w(doc/rdoc pkg)
2d77a2a Initial import
macournoyer authored Nov 12, 2007
9
10 Rake::TestTask.new do |t|
11 t.pattern = 'test/*_test.rb'
12 end
348931b Add rake task to create gem
macournoyer authored Nov 15, 2007
13 task :default => :test
14
15 spec = Gem::Specification.new do |s|
16 s.name = Thin::NAME
17 s.version = Thin::VERSION
18 s.platform = Gem::Platform::RUBY
19 s.summary = "Thin and fast web server"
20 s.description = s.summary
21 s.author = "Marc-Andre Cournoyer"
22 s.email = 'macournoyer@gmail.com'
23 s.homepage = 'http://code.macournoyer.com/thin/'
24 s.executables = %w(thin)
25
26 s.required_ruby_version = '>= 1.8.2'
2d77a2a Initial import
macournoyer authored Nov 12, 2007
27
348931b Add rake task to create gem
macournoyer authored Nov 15, 2007
28 s.files = %w(COPYING README Rakefile) + Dir.glob("{bin,doc,test,lib}/**/*")
29
30 s.require_path = "lib"
31 s.bindir = "bin"
32 end
33
34 Rake::GemPackageTask.new(spec) do |p|
35 p.gem_spec = spec
36 end
Something went wrong with that request. Please try again.