Skip to content

Remove hoe, use rake #155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 31, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ pkg/
doc/
publish/
Gemfile.lock
.bundle
bin/
2 changes: 0 additions & 2 deletions Hacking.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ us with a sample LDIF data file for importing into LDAP servers for testing.
Net::LDAP uses several libraries during development, all of which can be
installed using RubyGems.

* *hoe*
* *hoe-git*
* *flexmock*

== Participation
Expand Down
52 changes: 0 additions & 52 deletions Manifest.txt

This file was deleted.

77 changes: 8 additions & 69 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,74 +1,13 @@
#!/usr/bin/env rake
# -*- ruby encoding: utf-8 -*-
# vim: syntax=ruby

require "rubygems"
require 'hoe'

Hoe.plugin :doofus
Hoe.plugin :git
Hoe.plugin :gemspec

Hoe.spec 'net-ldap' do |spec|
# spec.rubyforge_name = spec.name

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")
spec.developer("Michael Schaarschmidt", "michael@schaaryworks.com")

spec.remote_rdoc_dir = ''
spec.rsync_args << ' --exclude=statsvn/'

spec.urls = %w(http://rubyldap.com/' 'https://github.com/ruby-ldap/ruby-net-ldap)
spec.licenses = ['MIT']

spec.history_file = 'History.rdoc'
spec.readme_file = 'README.rdoc'

spec.extra_rdoc_files = FileList["*.rdoc"].to_a

spec.extra_dev_deps << [ "hoe-git", "~> 1" ]
spec.extra_dev_deps << [ "hoe-gemspec", "~> 1" ]
spec.extra_dev_deps << [ "flexmock", ">= 1.3.0" ]

spec.clean_globs << "coverage"

spec.spec_extras[:required_ruby_version] = ">= 1.8.7"
spec.multiruby_skip << "1.8.6"
spec.multiruby_skip << "1_8_6"

spec.need_tar = true
end

# 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
require 'rake/testtask'

puts paths.sort.join("\n")
end
Rake::TestTask.new do |t|
t.libs << "test"
t.test_files = FileList['test/**/test_*.rb']
t.verbose = true
end

desc "Run a full set of integration and unit tests"
task :cruise => [:test, :spec]

# vim: syntax=ruby
task :default => :test
6 changes: 2 additions & 4 deletions net-ldap.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ earlier versions of the IETF LDAP RFCs (2251-2256, 2829-2830, 3377, and 3771).
Our roadmap for Net::LDAP 1.0 is to gain full <em>client</em> compliance with
the most recent LDAP RFCs (4510-4519, plutions of 4520-4532).}
s.email = ["blackhedd@rubyforge.org", "gemiel@gmail.com", "rory.ocon@gmail.com", "kaspar.schiess@absurd.li", "austin@rubyforge.org"]
s.extra_rdoc_files = ["Manifest.txt", "Contributors.rdoc", "Hacking.rdoc", "History.rdoc", "License.rdoc", "README.rdoc"]
s.extra_rdoc_files = ["Contributors.rdoc", "Hacking.rdoc", "History.rdoc", "License.rdoc", "README.rdoc"]
s.files = `git ls-files`.split $/
s.test_files = s.files.grep(%r{^test})
s.homepage = %q{http://github.com/ruby-ldap/ruby-net-ldap}
Expand All @@ -30,8 +30,6 @@ the most recent LDAP RFCs (4510-4519, plutions of 4520-4532).}
s.required_ruby_version = ">= 1.9.3"
s.summary = %q{Net::LDAP for Ruby (also called net-ldap) implements client access for the Lightweight Directory Access Protocol (LDAP), an IETF standard protocol for accessing distributed directory services}

s.add_development_dependency("hoe-git", "~> 1.0")
s.add_development_dependency("hoe-gemspec", "~> 1.0")
s.add_development_dependency("flexmock", "~> 1.3")
s.add_development_dependency("hoe", "~> 2.9")
s.add_development_dependency("rake", "~> 10.0")
end