Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 37 lines (29 sloc) 1.239 kb
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 31 32 33 34 35 36
require 'rubygems'
require 'hoe'

Hoe.plugin :git
Hoe.plugin :minitest

Hoe.spec 'mechanize' do
  developer 'Eric Hodel', 'drbrain@segment7.net'
  developer 'Aaron Patterson', 'aaronp@rubyforge.org'
  developer 'Mike Dalessio', 'mike.dalessio@gmail.com'

  self.readme_file = 'README.rdoc'
  self.history_file = 'CHANGELOG.rdoc'
  self.extra_rdoc_files += Dir['*.rdoc']

  rdoc_locations << 'drbrain@rubyforge.org:/var/www/gforge-projects/mechanize/'

  self.extra_deps << ['nokogiri', '~> 1.4']
  self.extra_deps << ['net-http-persistent', '~> 1.8']
  self.extra_deps << ['net-http-digest_auth', '~> 1.1', '>= 1.1.1']
  self.extra_deps << ['webrobots', '~> 0.0', '>= 0.0.9']

  self.spec_extras[:required_ruby_version] = '>= 1.8.7'
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
Something went wrong with that request. Please try again.