Sha256: cc50898c63c29ae59feb6b6ed5e1dc3647b63f7999a173ee18d7902ff7ade826

Contents?: true

Size: 1.8 KB

Versions: 1

Compression:

Stored size: 1.8 KB

Contents

require 'rake'
require 'rake/testtask'
require 'rake/clean'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'fileutils'
include FileUtils

version="0.1.0"
name="mongrel_output_compression"

spec = Gem::Specification.new do |s|
   s.name = name
   s.version = version
   s.description = s.summary = "A mongrel plugin to gzip or deflate compress all output if the client supports it."
   s.author = "Brian Landau"
   s.homepage = "http://rubyforge.org/projects/mongrel-compres/"
   s.rubyforge_project = "mongrel-compres"
   s.add_dependency('gem_plugin', '>= 0.2.3')
   s.add_dependency('mongrel', '>= 1.1.1')


   s.platform = Gem::Platform::RUBY
   s.has_rdoc = true
   s.extra_rdoc_files = ["README"]

   s.files = %w(COPYING LICENSE README Rakefile) +
    Dir.glob("{bin,doc/rdoc,test,lib}/**/*") + 
    Dir.glob("resources/**/*")

   s.require_path = "lib"
   s.bindir = "bin"
   s.test_files = Dir.glob('test/*.rb')
   
   s.signing_key = '/Users/brianlandau/private/gem-private_key.pem'
   s.cert_chain = ['/Users/brianlandau/.gem/gem-public_cert.pem']
end

Rake::GemPackageTask.new(spec) do |p|
   p.need_tar = true if RUBY_PLATFORM !~ /mswin/
end

task :install => [:test, :package] do
   sh %{sudo gem install pkg/#{name}-#{version}.gem}
end

task :uninstall => [:clean] do
   sh %{sudo gem uninstall #{name}}
end

Rake::TestTask.new do |t|
   t.libs << "test"
   t.test_files = FileList['test/test*.rb']
   t.verbose = true
end

Rake::RDocTask.new do |rdoc|
   rdoc.rdoc_dir = 'doc/rdoc'
   rdoc.options << '--line-numbers'
   rdoc.rdoc_files.add ['README', 'LICENSE', 'COPYING', 'lib/**/*.rb', 'doc/**/*.rdoc']
   rdoc.options << '--main' << 'README'
end

task :default => [:test, :package]

CLEAN.include ['build/*', '**/*.o', '**/*.so', '**/*.a', 'lib/*-*', '**/*.log', 'pkg', 'lib/*.bundle', '*.gem', '.config']

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongrel_output_compression-0.1.0 Rakefile