Sha256: 8d454911113df1bdf0b1e85bd410bca0ef6e44faf5012504732d2326a306ded5

Contents?: true

Size: 1.21 KB

Versions: 1

Compression:

Stored size: 1.21 KB

Contents

require 'rubygems'
gem 'hoe', '>= 2.3.0'
require 'hoe'

Hoe.plugin :git
Hoe.plugin :gemspec

Hoe.spec "loofah" do
  developer "Mike Dalessio", "mike.dalessio@gmail.com"
  developer "Bryan Helmkamp", "bryan@brynary.com"

  self.extra_rdoc_files = FileList["*.rdoc"]
  self.history_file     = "CHANGELOG.rdoc"
  self.readme_file      = "README.rdoc"

  extra_deps     << ["nokogiri", ">=1.3.3"]
  extra_dev_deps << ["mocha", ">=0.9"]
  extra_dev_deps << ["shoulda", ">=2.10"]
  extra_dev_deps << ["rake", ">=0.8"]
end

task :gemspec do
  system %q(rake debug_gem | grep -v "^\(in " > loofah.gemspec)
end

task :redocs => :fix_css
task :docs => :fix_css
task :fix_css do
  better_css = <<-EOT
    .method-description pre {
      margin                    : 1em 0 ;
    }

    .method-description ul {
      padding                   : .5em 0 .5em 2em ;
    }

    .method-description p {
      margin-top                : .5em ;
    }

    #main ul, div#documentation ul {
      list-style-type           : disc ! IMPORTANT ;
      list-style-position       : inside ! IMPORTANT ;
    }

    h2 + ul {
      margin-top                : 1em;
    }
  EOT
  puts "* fixing css"
  File.open("doc/rdoc.css", "a") { |f| f.write better_css }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
loofah-1.0.0 Rakefile