Skip to content

Commit f79c5e8

Browse files
committed
Merge pull request #155 from ruby-ldap/remove-hoe
Remove hoe, use rake
2 parents 826e31c + 8359578 commit f79c5e8

File tree

5 files changed

+12
-127
lines changed

5 files changed

+12
-127
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ pkg/
55
doc/
66
publish/
77
Gemfile.lock
8+
.bundle
9+
bin/

Hacking.rdoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ us with a sample LDIF data file for importing into LDAP servers for testing.
5555
Net::LDAP uses several libraries during development, all of which can be
5656
installed using RubyGems.
5757

58-
* *hoe*
59-
* *hoe-git*
6058
* *flexmock*
6159

6260
== Participation

Manifest.txt

Lines changed: 0 additions & 52 deletions
This file was deleted.

Rakefile

Lines changed: 8 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,13 @@
1+
#!/usr/bin/env rake
12
# -*- ruby encoding: utf-8 -*-
3+
# vim: syntax=ruby
24

3-
require "rubygems"
4-
require 'hoe'
5-
6-
Hoe.plugin :doofus
7-
Hoe.plugin :git
8-
Hoe.plugin :gemspec
9-
10-
Hoe.spec 'net-ldap' do |spec|
11-
# spec.rubyforge_name = spec.name
12-
13-
spec.developer("Francis Cianfrocca", "[email protected]")
14-
spec.developer("Emiel van de Laar", "[email protected]")
15-
spec.developer("Rory O'Connell", "[email protected]")
16-
spec.developer("Kaspar Schiess", "[email protected]")
17-
spec.developer("Austin Ziegler", "[email protected]")
18-
spec.developer("Michael Schaarschmidt", "[email protected]")
19-
20-
spec.remote_rdoc_dir = ''
21-
spec.rsync_args << ' --exclude=statsvn/'
22-
23-
spec.urls = %w(http://rubyldap.com/' 'https://github.com/ruby-ldap/ruby-net-ldap)
24-
spec.licenses = ['MIT']
25-
26-
spec.history_file = 'History.rdoc'
27-
spec.readme_file = 'README.rdoc'
28-
29-
spec.extra_rdoc_files = FileList["*.rdoc"].to_a
30-
31-
spec.extra_dev_deps << [ "hoe-git", "~> 1" ]
32-
spec.extra_dev_deps << [ "hoe-gemspec", "~> 1" ]
33-
spec.extra_dev_deps << [ "flexmock", ">= 1.3.0" ]
34-
35-
spec.clean_globs << "coverage"
36-
37-
spec.spec_extras[:required_ruby_version] = ">= 1.8.7"
38-
spec.multiruby_skip << "1.8.6"
39-
spec.multiruby_skip << "1_8_6"
40-
41-
spec.need_tar = true
42-
end
43-
44-
# I'm not quite ready to get rid of this, but I think "rake git:manifest" is
45-
# sufficient.
46-
namespace :old do
47-
desc "Build the manifest file from the current set of files."
48-
task :build_manifest do |t|
49-
require 'find'
50-
51-
paths = []
52-
Find.find(".") do |path|
53-
next if File.directory?(path)
54-
next if path =~ /\.svn/
55-
next if path =~ /\.git/
56-
next if path =~ /\.hoerc/
57-
next if path =~ /\.swp$/
58-
next if path =~ %r{coverage/}
59-
next if path =~ /~$/
60-
paths << path.sub(%r{^\./}, '')
61-
end
62-
63-
File.open("Manifest.txt", "w") do |f|
64-
f.puts paths.sort.join("\n")
65-
end
5+
require 'rake/testtask'
666

67-
puts paths.sort.join("\n")
68-
end
7+
Rake::TestTask.new do |t|
8+
t.libs << "test"
9+
t.test_files = FileList['test/**/test_*.rb']
10+
t.verbose = true
6911
end
7012

71-
desc "Run a full set of integration and unit tests"
72-
task :cruise => [:test, :spec]
73-
74-
# vim: syntax=ruby
13+
task :default => :test

net-ldap.gemspec

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ earlier versions of the IETF LDAP RFCs (2251-2256, 2829-2830, 3377, and 3771).
2121
Our roadmap for Net::LDAP 1.0 is to gain full <em>client</em> compliance with
2222
the most recent LDAP RFCs (4510-4519, plutions of 4520-4532).}
2323
24-
s.extra_rdoc_files = ["Manifest.txt", "Contributors.rdoc", "Hacking.rdoc", "History.rdoc", "License.rdoc", "README.rdoc"]
24+
s.extra_rdoc_files = ["Contributors.rdoc", "Hacking.rdoc", "History.rdoc", "License.rdoc", "README.rdoc"]
2525
s.files = `git ls-files`.split $/
2626
s.test_files = s.files.grep(%r{^test})
2727
s.homepage = %q{http://github.com/ruby-ldap/ruby-net-ldap}
@@ -30,8 +30,6 @@ the most recent LDAP RFCs (4510-4519, plutions of 4520-4532).}
3030
s.required_ruby_version = ">= 1.9.3"
3131
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}
3232

33-
s.add_development_dependency("hoe-git", "~> 1.0")
34-
s.add_development_dependency("hoe-gemspec", "~> 1.0")
3533
s.add_development_dependency("flexmock", "~> 1.3")
36-
s.add_development_dependency("hoe", "~> 2.9")
34+
s.add_development_dependency("rake", "~> 10.0")
3735
end

0 commit comments

Comments
 (0)