2011-03-18 02:15:25 +01:00
|
|
|
# -*- ruby encoding: utf-8 -*-
|
|
|
|
|
2010-02-12 11:59:46 +01:00
|
|
|
require "rubygems"
|
2010-03-11 03:34:46 +01:00
|
|
|
require 'hoe'
|
|
|
|
|
2011-03-18 02:15:25 +01:00
|
|
|
Hoe.plugin :doofus
|
2010-03-16 01:37:47 +01:00
|
|
|
Hoe.plugin :git
|
2011-03-16 20:13:13 +01:00
|
|
|
Hoe.plugin :gemspec
|
2011-03-22 05:53:43 +01:00
|
|
|
Hoe.plugin :rubyforge
|
2011-03-16 20:13:13 +01:00
|
|
|
|
2011-03-22 04:48:07 +01:00
|
|
|
Hoe.spec 'net-ldap' do |spec|
|
|
|
|
spec.rubyforge_name = spec.name
|
2010-02-12 11:59:46 +01:00
|
|
|
|
2011-03-22 04:48:07 +01:00
|
|
|
spec.developer("Francis Cianfrocca", "blackhedd@rubyforge.org")
|
|
|
|
spec.developer("Emiel van de Laar", "gemiel@gmail.com")
|
|
|
|
spec.developer("Rory O'Connell", "rory.ocon@gmail.com")
|
|
|
|
spec.developer("Kaspar Schiess", "kaspar.schiess@absurd.li")
|
|
|
|
spec.developer("Austin Ziegler", "austin@rubyforge.org")
|
2010-03-11 03:34:46 +01:00
|
|
|
|
2011-03-22 04:48:07 +01:00
|
|
|
spec.remote_rdoc_dir = ''
|
|
|
|
spec.rsync_args << ' --exclude=statsvn/'
|
2010-03-16 01:44:50 +01:00
|
|
|
|
2012-02-15 05:52:08 +01:00
|
|
|
spec.url = %W(http://rubyldap.com/ https://github.com/ruby-ldap/ruby-net-ldap)
|
2010-03-11 03:34:46 +01:00
|
|
|
|
2011-03-22 04:48:07 +01:00
|
|
|
spec.history_file = 'History.rdoc'
|
|
|
|
spec.readme_file = 'README.rdoc'
|
2010-03-11 03:34:46 +01:00
|
|
|
|
2011-03-22 04:48:07 +01:00
|
|
|
spec.extra_rdoc_files = FileList["*.rdoc"].to_a
|
2010-03-25 04:16:58 +01:00
|
|
|
|
2011-03-22 04:48:07 +01:00
|
|
|
spec.extra_dev_deps << [ "hoe-git", "~> 1" ]
|
|
|
|
spec.extra_dev_deps << [ "hoe-gemspec", "~> 1" ]
|
|
|
|
spec.extra_dev_deps << [ "metaid", "~> 1" ]
|
|
|
|
spec.extra_dev_deps << [ "flexmock", "~> 0.9.0" ]
|
|
|
|
spec.extra_dev_deps << [ "rspec", "~> 2.0" ]
|
2010-03-25 04:16:58 +01:00
|
|
|
|
2011-03-22 04:48:07 +01:00
|
|
|
spec.clean_globs << "coverage"
|
2010-03-11 03:34:46 +01:00
|
|
|
|
2011-03-22 04:48:07 +01:00
|
|
|
spec.spec_extras[:required_ruby_version] = ">= 1.8.7"
|
|
|
|
spec.multiruby_skip << "1.8.6"
|
|
|
|
spec.multiruby_skip << "1_8_6"
|
2010-03-14 03:22:04 +01:00
|
|
|
|
2011-03-22 04:48:07 +01:00
|
|
|
spec.need_tar = true
|
2006-04-30 05:34:34 +02:00
|
|
|
end
|
|
|
|
|
2011-03-18 02:15:25 +01:00
|
|
|
# I'm not quite ready to get rid of this, but I think "rake git:manifest" is
|
|
|
|
# sufficient.
|
|
|
|
namespace :old do
|
|
|
|
desc "Build the manifest file from the current set of files."
|
|
|
|
task :build_manifest do |t|
|
|
|
|
require 'find'
|
|
|
|
|
|
|
|
paths = []
|
|
|
|
Find.find(".") do |path|
|
|
|
|
next if File.directory?(path)
|
|
|
|
next if path =~ /\.svn/
|
|
|
|
next if path =~ /\.git/
|
|
|
|
next if path =~ /\.hoerc/
|
|
|
|
next if path =~ /\.swp$/
|
|
|
|
next if path =~ %r{coverage/}
|
|
|
|
next if path =~ /~$/
|
|
|
|
paths << path.sub(%r{^\./}, '')
|
|
|
|
end
|
|
|
|
|
|
|
|
File.open("Manifest.txt", "w") do |f|
|
|
|
|
f.puts paths.sort.join("\n")
|
|
|
|
end
|
|
|
|
|
|
|
|
puts paths.sort.join("\n")
|
2010-03-11 03:34:46 +01:00
|
|
|
end
|
2010-02-12 11:59:46 +01:00
|
|
|
end
|
2010-04-08 13:39:59 +02:00
|
|
|
|
|
|
|
desc "Run a full set of integration and unit tests"
|
2011-03-16 20:13:13 +01:00
|
|
|
task :cruise => [:test, :spec]
|
2011-03-18 02:15:25 +01:00
|
|
|
|
|
|
|
# vim: syntax=ruby
|