public
Fork of Pistos/better-benchmark
Description: Statistically correct benchmarking for Ruby.
Homepage:
Clone URL: git://github.com/jtrupiano/better-benchmark.git
better-benchmark / Rakefile
100644 34 lines (29 sloc) 1.049 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# -*- ruby -*-
 
require 'rubygems'
require 'hoe'
require './lib/better-benchmark.rb'
require './lib/better-benchmark/version'
 
PKG_NAME = "better-benchmark"
PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
version = BetterBenchmark::Version::STRING.dup
if ENV['SNAPSHOT'].to_i == 1
  version << "." << Time.now.utc.strftime("%Y%m%d%H%M%S")
end
PKG_VERSION = version
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
 
Hoe.new(PKG_NAME, PKG_VERSION) do |p|
  p.rubyforge_name = 'johntrupiano' # if different than lowercase project name
  p.developer('John Trupiano', 'jtrupiano@gmail.com')
  p.name = PKG_NAME
  p.version = PKG_VERSION
  p.author = "John Trupiano"
  p.email = "jtrupiano@gmail.com"
  p.description = %q(Statistically correct benchmarking for Ruby.)
  p.summary = p.description # More details later??
  p.remote_rdoc_dir = PKG_NAME # Release to /PKG_NAME
  # p.changes = p.paragraphs_of('CHANGELOG', 0..1).join("\n\n")
  p.extra_deps << ["rsruby", ">= 0.5"]
  p.need_zip = true
  p.need_tar = false
end
 
# vim: syntax=Ruby