Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 38 lines (32 sloc) 0.994 kB
2f57225 Committing
Joe Ferris authored
1 require 'rake'
2 require 'rake/testtask'
3 require 'rake/gempackagetask'
4 require 'date'
5
6 test_files_pattern = 'test/**/*_test.rb'
7 Rake::TestTask.new do |t|
8 t.libs << 'lib'
9 t.pattern = test_files_pattern
10 t.verbose = false
11 end
12
13 desc "Run the test suite"
14 task :default => :test
15
16 spec = Gem::Specification.new do |s|
17 s.name = "assert_performs"
18 s.summary = "Easily add performance sanity checks using Test::Unit and a staging server"
19 s.email = %w(jferris@thoughtbot.com dcroak@thoughtbot.com)
20 s.homepage = "http://github.com/thoughtbot/assert_performs"
21 s.description = "Easily add performance sanity checks using Test::Unit and a staging server"
22 s.authors = ["Dan Croak", "Joe Ferris"]
23 s.files = FileList["[A-Z]*", "{lib,test}/**/*"]
24 s.version = '1.0.0'
25 end
26
27 Rake::GemPackageTask.new spec do |pkg|
28 pkg.need_tar = true
29 pkg.need_zip = true
30 end
31
32 desc "Generate a gemspec file"
33 task :gemspec do
34 File.open("#{spec.name}.gemspec", 'w') do |f|
35 f.write spec.to_ruby
36 end
37 end
Something went wrong with that request. Please try again.