pruby-net-ldap 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/net/ldif.rb ADDED
@@ -0,0 +1,39 @@
1
+ # $Id: ldif.rb 78 2006-04-26 02:57:34Z blackhedd $
2
+ #
3
+ # Net::LDIF for Ruby
4
+ #
5
+ #
6
+ #
7
+ # Copyright (C) 2006 by Francis Cianfrocca. All Rights Reserved.
8
+ #
9
+ # Gmail: garbagecat10
10
+ #
11
+ # This program is free software; you can redistribute it and/or modify
12
+ # it under the terms of the GNU General Public License as published by
13
+ # the Free Software Foundation; either version 2 of the License, or
14
+ # (at your option) any later version.
15
+ #
16
+ # This program is distributed in the hope that it will be useful,
17
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ # GNU General Public License for more details.
20
+ #
21
+ # You should have received a copy of the GNU General Public License
22
+ # along with this program; if not, write to the Free Software
23
+ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24
+ #
25
+ #
26
+
27
+ # THIS FILE IS A STUB.
28
+
29
+ module Net
30
+
31
+ class LDIF
32
+
33
+
34
+ end # class LDIF
35
+
36
+
37
+ end # module Net
38
+
39
+
@@ -0,0 +1 @@
1
+ require 'net/ldap'
data/pre-setup.rb ADDED
@@ -0,0 +1,46 @@
1
+ require 'rdoc/rdoc'
2
+ ##
3
+ # Build the rdoc documentation. Also, try to build the RI documentation.
4
+ #
5
+ def build_rdoc(options)
6
+ RDoc::RDoc.new.document(options)
7
+ rescue RDoc::RDocError => e
8
+ $stderr.puts e.message
9
+ rescue Exception => e
10
+ $stderr.puts "Couldn't build RDoc documentation\n#{e.message}"
11
+ end
12
+
13
+ def build_ri(files)
14
+ RDoc::RDoc.new.document(["--ri-site", "--merge"] + files)
15
+ rescue RDoc::RDocError => e
16
+ $stderr.puts e.message
17
+ rescue Exception => e
18
+ $stderr.puts "Couldn't build Ri documentation\n#{e.message}"
19
+ end
20
+
21
+ def run_tests(test_list)
22
+ return if test_list.empty?
23
+
24
+ require 'test/unit/ui/console/testrunner'
25
+ $:.unshift "lib"
26
+ test_list.each do |test|
27
+ next if File.directory?(test)
28
+ require test
29
+ end
30
+
31
+ tests = []
32
+ ObjectSpace.each_object { |o| tests << o if o.kind_of?(Class) }
33
+ tests.delete_if { |o| !o.ancestors.include?(Test::Unit::TestCase) }
34
+ tests.delete_if { |o| o == Test::Unit::TestCase }
35
+
36
+ tests.each { |test| Test::Unit::UI::Console::TestRunner.run(test) }
37
+ $:.shift
38
+ end
39
+
40
+ rdoc = %w(--main README --line-numbers
41
+ --title MIME::Types)
42
+ ri = %w(--ri-site --merge)
43
+ dox = %w(README ChangeLog lib)
44
+ build_rdoc rdoc + dox
45
+ build_ri ri + dox
46
+ # run_tests Dir["tests/**/*"]
@@ -0,0 +1,74 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{pruby-net-ldap}
8
+ s.version = "0.1.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Siva Kilaru"]
12
+ s.date = %q{2011-04-08}
13
+ s.description = %q{Pure Ruby LDAP library.}
14
+ s.email = %q{siva.kilaru@rackspace.com}
15
+ s.extra_rdoc_files = [
16
+ "ChangeLog",
17
+ "LICENSE.txt",
18
+ "README",
19
+ "README.rdoc"
20
+ ]
21
+ s.files = [
22
+ ".document",
23
+ "COPYING",
24
+ "ChangeLog",
25
+ "Gemfile",
26
+ "Gemfile.lock",
27
+ "LICENCE",
28
+ "LICENSE.txt",
29
+ "README",
30
+ "README.rdoc",
31
+ "Rakefile",
32
+ "VERSION",
33
+ "lib/net/ber.rb",
34
+ "lib/net/ldap.rb",
35
+ "lib/net/ldap/dataset.rb",
36
+ "lib/net/ldap/entry.rb",
37
+ "lib/net/ldap/filter.rb",
38
+ "lib/net/ldap/pdu.rb",
39
+ "lib/net/ldap/psw.rb",
40
+ "lib/net/ldif.rb",
41
+ "lib/pruby-net-ldap.rb",
42
+ "pre-setup.rb",
43
+ "pruby-net-ldap.gemspec",
44
+ "setup.rb",
45
+ "tests/testber.rb",
46
+ "tests/testdata.ldif",
47
+ "tests/testem.rb",
48
+ "tests/testfilter.rb",
49
+ "tests/testldap.rb",
50
+ "tests/testldif.rb",
51
+ "tests/testpsw.rb"
52
+ ]
53
+ s.homepage = %q{http://github.com/kilaru/pruby-net-ldap}
54
+ s.licenses = ["MIT"]
55
+ s.require_paths = ["lib"]
56
+ s.rubygems_version = %q{1.5.2}
57
+ s.summary = %q{See Net::LDAP for documentation and usage samples.}
58
+
59
+ if s.respond_to? :specification_version then
60
+ s.specification_version = 3
61
+
62
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
63
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
64
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
65
+ else
66
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
67
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
68
+ end
69
+ else
70
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
71
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
72
+ end
73
+ end
74
+