Sha256: 9917df7c79e5c66ac3a41bb4d31f7968dff1603b09261b7c6d85ffc02cb64e21

Contents?: true

Size: 1.23 KB

Versions: 5

Compression:

Stored size: 1.23 KB

Contents

require 'rubygems'
require 'hoe'

$LOAD_PATH.unshift File.join(File.dirname(__FILE__), "lib")
require 'mechanize'

HOE = Hoe.new('mechanize', WWW::Mechanize::VERSION) do |p|
  p.rubyforge_name  = 'mechanize'
  p.author          = 'Aaron Patterson'
  p.email           = 'aaronp@rubyforge.org'
  p.summary         = "Mechanize provides automated web-browsing"
  p.extra_deps      = [['hpricot', '>= 0.5.0']]
end

desc "Update SSL Certificate"
task('ssl_cert') do |p|
  sh "openssl genrsa -des3 -out server.key 1024"
  sh "openssl req -new -key server.key -out server.csr"
  sh "cp server.key server.key.org"
  sh "openssl rsa -in server.key.org -out server.key"
  sh "openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt"
  sh "cp server.key server.pem"
  sh "mv server.key server.csr server.crt server.pem test/data/"
  sh "rm server.key.org"
end

namespace :gem do
  desc 'Generate a gem spec'
  task :spec do
    File.open("#{HOE.name}.gemspec", 'w') do |f|
      HOE.spec.version = "#{HOE.version}.#{Time.now.strftime("%Y%m%d%H%M%S")}"
      f.write(HOE.spec.to_ruby)
    end
  end
end

desc "Run code-coverage analysis"
task :coverage do
  rm_rf "coverage"
  sh "rcov -x Library -I lib:test #{Dir[*HOE.test_globs].join(' ')}"
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mechanize-0.8.0 Rakefile
mechanize-0.8.3 Rakefile
mechanize-0.8.4 Rakefile
mechanize-0.8.2 Rakefile
mechanize-0.8.1 Rakefile