! Fixes tests for everything BUT the number conversion
This commit removes read_ber! since no one seems to be using it. YAGNI.
This commit is contained in:
parent
4c24cf239a
commit
75f37c58b9
10 changed files with 186 additions and 270 deletions
85
Rakefile
85
Rakefile
|
@ -1,24 +1,69 @@
|
|||
# -*- ruby -*-
|
||||
require "rubygems"
|
||||
require "rake/gempackagetask"
|
||||
require "rake/rdoctask"
|
||||
|
||||
require 'rubygems'
|
||||
require 'hoe'
|
||||
|
||||
# Add 'lib' to load path.
|
||||
$LOAD_PATH.unshift( "#{File.dirname(__FILE__)}/lib" )
|
||||
|
||||
# Pull in local 'net/ldap' as opposed to an installed version.
|
||||
require 'net'
|
||||
|
||||
Hoe.spec "net-ldap" do
|
||||
developer 'Francis Cianfrocca', 'garbagecat10@gmail.com'
|
||||
developer 'Emiel van de Laar', 'gemiel@gmail.com'
|
||||
developer "Rory O'Connell", 'rory.ocon@gmail.com'
|
||||
require "rake/testtask"
|
||||
Rake::TestTask.new do |t|
|
||||
t.libs << "test"
|
||||
t.test_files = FileList["test/test_*.rb"]
|
||||
t.verbose = true
|
||||
end
|
||||
|
||||
# Hoe.new('net-ldap', Net::LDAP::VERSION) do |p|
|
||||
# p.rubyforge_name = 'net-ldap'
|
||||
# p.developer('Francis Cianfrocca', 'garbagecat10@gmail.com')
|
||||
# p.developer('Emiel van de Laar', 'gemiel@gmail.com')
|
||||
# end
|
||||
require 'spec/rake/spectask'
|
||||
Spec::Rake::SpecTask.new
|
||||
|
||||
# vim: syntax=Ruby
|
||||
task :default => ["test", 'spec']
|
||||
|
||||
# This builds the actual gem. For details of what all these options
|
||||
# mean, and other ones you can add, check the documentation here:
|
||||
#
|
||||
# http://rubygems.org/read/chapter/20
|
||||
#
|
||||
spec = Gem::Specification.new do |s|
|
||||
|
||||
# Change these as appropriate
|
||||
s.name = "net-ldap"
|
||||
s.version = "0.1.0"
|
||||
s.summary = "What this thing does"
|
||||
s.author = "Francis Cianfrocca", 'garbagecat10@gmail.com'
|
||||
s.author = 'Emiel van de Laar', 'gemiel@gmail.com'
|
||||
s.author = "Rory O'Connell", 'rory.ocon@gmail.com'
|
||||
s.author = "Kaspar Schiess", 'kaspar.schiess@absurd.li'
|
||||
|
||||
s.description = "Pure Ruby LDAP library"
|
||||
|
||||
# s.has_rdoc = true
|
||||
# s.extra_rdoc_files = %w(README.txt)
|
||||
# s.rdoc_options = %w(--main README.txt)
|
||||
|
||||
# Add any extra files to include in the gem
|
||||
s.files = %w(COPYING History.txt LICENSE Manifest.txt pre-setup.rb Rakefile README.txt Release-Announcement setup.rb) + Dir.glob("{test,lib/**/*}")
|
||||
s.require_paths = ["lib"]
|
||||
end
|
||||
|
||||
# This task actually builds the gem. We also regenerate a static
|
||||
# .gemspec file, which is useful if something (i.e. GitHub) will
|
||||
# be automatically building a gem for this project. If you're not
|
||||
# using GitHub, edit as appropriate.
|
||||
#
|
||||
# To publish your gem online, install the 'gemcutter' gem; Read more
|
||||
# about that here: http://gemcutter.org/pages/gem_docs
|
||||
Rake::GemPackageTask.new(spec) do |pkg|
|
||||
pkg.gem_spec = spec
|
||||
|
||||
# Generate the gemspec file for github.
|
||||
file = File.dirname(__FILE__) + "/#{spec.name}.gemspec"
|
||||
File.open(file, "w") {|f| f << spec.to_ruby }
|
||||
end
|
||||
|
||||
# Generate documentation
|
||||
Rake::RDocTask.new do |rd|
|
||||
rd.main = "README.txt"
|
||||
rd.rdoc_files.include("README.txt", "lib/**/*.rb")
|
||||
rd.rdoc_dir = "rdoc"
|
||||
end
|
||||
|
||||
desc 'Clear out RDoc and generated packages'
|
||||
task :clean => [:clobber_rdoc, :clobber_package] do
|
||||
rm "#{spec.name}.gemspec"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue