Sha256: 7e4a1ce8d9f9e35aa9ae3e90075889c3bb004620270ec37a41107f576849c2ca

Contents?: true

Size: 1.51 KB

Versions: 6

Compression:

Stored size: 1.51 KB

Contents

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

Hoe.plugin :git

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 << ["thoughtbot-shoulda", ">=2.10"]
  extra_dev_deps << ["acts_as_fu", ">=0.0.5"]

  # note: .hoerc should have the following line to omit rails tests and tmp
  #   exclude: !ruby/regexp /\/tmp\/|\/rails_tests\/|CVS|TAGS|\.(svn|git|DS_Store)/
end

if File.exist?("rails_test/Rakefile")
  load "rails_test/Rakefile"
else
  task :test do
    puts "----------"
    puts "-- NOTE: An additional Rails regression test suite is available in source repository"
    puts "----------"
  end
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

6 entries across 6 versions & 1 rubygems

Version Path
loofah-0.4.7 Rakefile
loofah-0.4.6 Rakefile
loofah-0.4.5 Rakefile
loofah-0.4.4 Rakefile
loofah-0.4.3 Rakefile
loofah-0.4.2 Rakefile