clogger.git  about / heads / tags
configurable request logging for Rack
blob d1dcf852b87aa0cf0d598671eb267f49691009ac 841 bytes (raw)
$ git show v0.0.4:Rakefile	# shows this blob on the CLI

 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
 
require 'hoe'
$LOAD_PATH << 'lib'
require 'clogger'
begin
  require 'rake/extensiontask'
  Rake::ExtensionTask.new('clogger_ext')
rescue LoadError
  warn "rake-compiler not available, cross compiling disabled"
end

common = lambda do |hoe|
  title = hoe.paragraphs_of("README.txt", 0).first.sub(/^= /, '')
  hoe.version = Clogger::VERSION
  hoe.summary = title.split(/\s*-\s*/, 2).last
  hoe.description = hoe.paragraphs_of("README.txt", 3)
  hoe.rubyforge_name = 'clogger'
  hoe.author = 'Eric Wong'
  hoe.email = 'clogger@librelist.com'
  hoe.spec_extras.merge!('rdoc_options' => [ "--title", title ])
  hoe.remote_rdoc_dir = ''
end

if ENV['CLOGGER_EXT']
  Hoe.spec('clogger_ext') do
    common.call(self)
    self.spec_extras.merge!(:extensions => Dir.glob('ext/*/extconf.rb'))
  end
else
  Hoe.spec('clogger') { common.call(self) }
end

git clone https://yhbt.net/clogger.git