debian/0000755000000000000000000000000012233456066007175 5ustar debian/rules0000755000000000000000000000100412233456035010244 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 # # Uncomment to ignore all test failures (but the tests will run anyway) #export DH_RUBY_IGNORE_TESTS=all # # Uncomment to ignore some test failures (but the tests will run anyway). # Valid values: #export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems # # If you need to specify the .gemspec (eg there is more than one) #export DH_RUBY_GEMSPEC=gem.gemspec %: dh $@ --buildsystem=ruby --with ruby override_dh_installchangelogs: dh_installchangelogs History.rdoc debian/watch0000644000000000000000000000014511755275466010241 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/net-ldap .*/net-ldap-(.*).tar.gz debian/source/0000755000000000000000000000000011645554001010467 5ustar debian/source/format0000644000000000000000000000001411645554001011675 0ustar 3.0 (quilt) debian/lintian-overrides0000644000000000000000000000015511755275466012572 0ustar # See Comment field in debian/copyright ruby-net-ldap: copyright-should-refer-to-common-license-file-for-gpl debian/ruby-net-ldap.docs0000644000000000000000000000001411755275466012540 0ustar README.rdoc debian/ruby-test-files.yaml0000644000000000000000000000024511755275466013133 0ustar --- - test/test_entry.rb - test/test_filter.rb - test/test_ldap_connection.rb - test/test_ldif.rb - test/test_password.rb - test/test_rename.rb - test/test_snmp.rb debian/require-rubygems.overrides0000644000000000000000000000007211645554001014421 0ustar debian/ruby-net-ldap/usr/lib/ruby/vendor_ruby/net/ldap.rb debian/ruby-net-ldap.lintian-overrides0000644000000000000000000000010512233413245015224 0ustar ruby-net-ldap: copyright-should-refer-to-common-license-file-for-gpl debian/copyright0000644000000000000000000000316411755275466011147 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: net-ldap Upstream-Contact: Ruby LDAP Source: http://rubyldap.com Files: * Copyright: 2006–2011 Francis Cianfrocca and other contributors. License: Expat Comment: Notice of License Change Versions prior to 0.2 were under Ruby's dual license with the GNU GPL. With this release (0.2), Net::LDAP is now under the MIT license. Files: debian/* Copyright: 2011 Ondřej Surý 2012 Jérémy Lal License: Expat License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/control0000644000000000000000000000145712233414200010567 0ustar Source: ruby-net-ldap Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Jérémy Lal Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~) Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-net-ldap.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-net-ldap.git Homepage: http://rubyldap.com/ XS-Ruby-Versions: all Package: ruby-net-ldap Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Description: LDAP client library for Ruby Net::LDAP is an LDAP support library written in pure Ruby. It supports all LDAP client features, and a subset of server features as well. debian/patches/0000755000000000000000000000000012233413245010614 5ustar debian/patches/series0000644000000000000000000000006012233413245012025 0ustar 0003-fix_require_in_tests.patch fix-ruby2-tests debian/patches/0003-fix_require_in_tests.patch0000644000000000000000000000312411755275466016472 0ustar Description: Fix require in test/test*.rb Those tests cannot be invoked from CURDIR Forwarded: not-needed Author: Jérémy Lal Last-Update: 2012-05-14 --- a/test/test_entry.rb +++ b/test/test_entry.rb @@ -1,4 +1,4 @@ -require 'common' +require 'test/common' =begin class TestEntry < Test::Unit::TestCase --- a/test/test_filter.rb +++ b/test/test_filter.rb @@ -1,4 +1,4 @@ -require 'common' +require 'test/common' class TestFilter < Test::Unit::TestCase Filter = Net::LDAP::Filter --- a/test/test_ldap_connection.rb +++ b/test/test_ldap_connection.rb @@ -1,4 +1,4 @@ -require 'common' +require 'test/common' class TestLDAP < Test::Unit::TestCase def test_modify_ops_delete --- a/test/test_ldif.rb +++ b/test/test_ldif.rb @@ -1,6 +1,6 @@ # $Id: testldif.rb 61 2006-04-18 20:55:55Z blackhedd $ -require 'common' +require 'test/common' require 'digest/sha1' require 'base64' --- a/test/test_password.rb +++ b/test/test_password.rb @@ -1,6 +1,6 @@ # $Id: testpsw.rb 72 2006-04-24 21:58:14Z blackhedd $ -require 'common' +require 'test/common' class TestPassword < Test::Unit::TestCase --- a/test/test_rename.rb +++ b/test/test_rename.rb @@ -1,4 +1,4 @@ -require 'common' +require 'test/common' # Commented out since it assumes you have a live LDAP server somewhere. This # will be migrated to the integration specs, as soon as they are ready. --- a/test/test_snmp.rb +++ b/test/test_snmp.rb @@ -1,6 +1,6 @@ # $Id: testsnmp.rb 231 2006-12-21 15:09:29Z blackhedd $ -require 'common' +require 'test/common' require 'net/snmp' class TestSnmp < Test::Unit::TestCase debian/patches/0002-lt_and_gt_removed_from_filter.patch0000644000000000000000000000173711645554001020272 0ustar --- a/lib/net/ldap/filter.rb +++ b/lib/net/ldap/filter.rb @@ -365,12 +365,8 @@ class FilterParser #:nodoc: Filter.eq( token, value ) when "!=" Filter.ne( token, value ) - when "<" - Filter.lt( token, value ) when "<=" Filter.le( token, value ) - when ">" - Filter.gt( token, value ) when ">=" Filter.ge( token, value ) end --- a/tests/testfilter.rb +++ b/tests/testfilter.rb @@ -21,9 +21,7 @@ class TestFilter < Test::Unit::TestCase def test_rfc_2254 p Net::LDAP::Filter.from_rfc2254( " ( uid=george* ) " ) p Net::LDAP::Filter.from_rfc2254( "uid!=george*" ) - p Net::LDAP::Filter.from_rfc2254( "uidgeorge*" ) p Net::LDAP::Filter.from_rfc2254( "uid>=george*" ) p Net::LDAP::Filter.from_rfc2254( "uid!=george*" ) debian/patches/fix-ruby2-tests0000644000000000000000000000227012233413245013527 0ustar Description: Fix ruby 2.0 failing tests Fix some tests failing in ruby2.0 due to encoding issues Bug-Debian: http://bugs.debian.org/720252 Author: David Suárez Last-Update: 2013-10-26 --- ruby-net-ldap-0.3.1.orig/test/test_snmp.rb +++ ruby-net-ldap-0.3.1/test/test_snmp.rb @@ -4,8 +4,8 @@ require 'test/common' require 'net/snmp' class TestSnmp < Test::Unit::TestCase - SnmpGetRequest = "0'\002\001\000\004\006public\240\032\002\002?*\002\001\000\002\001\0000\0160\f\006\b+\006\001\002\001\001\001\000\005\000" - SnmpGetResponse = "0+\002\001\000\004\006public\242\036\002\002'\017\002\001\000\002\001\0000\0220\020\006\b+\006\001\002\001\001\001\000\004\004test" + SnmpGetRequest = "0'\002\001\000\004\006public\240\032\002\002?*\002\001\000\002\001\0000\0160\f\006\b+\006\001\002\001\001\001\000\005\000".force_encoding("ASCII-8BIT") + SnmpGetResponse = "0+\002\001\000\004\006public\242\036\002\002'\017\002\001\000\002\001\0000\0220\020\006\b+\006\001\002\001\001\001\000\004\004test".force_encoding("ASCII-8BIT") SnmpGetRequestXXX = "0'\002\001\000\004\006xxxxxx\240\032\002\002?*\002\001\000\002\001\0000\0160\f\006\b+\006\001\002\001\001\001\000\005\000" debian/patches/0001-disable_online_tests.patch0000644000000000000000000000032511645554001016406 0ustar --- a/tests/testem.rb +++ b/tests/testem.rb @@ -5,7 +5,6 @@ require 'test/unit' require 'tests/testber' require 'tests/testldif' -require 'tests/testldap' require 'tests/testpsw' require 'tests/testfilter' debian/compat0000644000000000000000000000000211645554001010365 0ustar 7 debian/changelog0000644000000000000000000000364712233456066011061 0ustar ruby-net-ldap (0.3.1-3) unstable; urgency=low * Team upload [ David Suárez ] * Fix failing tests on ruby2 (Closes: #720252) * Bump standards version to 3.9.4; no changes needed * Add 'copyright-should-refer-to-common-license-file-for-gpl' lintian override [ Cédric Boutillier ] * debian/control: + remove obsolete DM-Upload-Allowed flag + use canonical URL for Vcs-Git field * debian/rules: install History.rdoc as upstream changelog [ Ondřej Surý ] * Remove myself from Uploaders -- David Suárez Sat, 26 Oct 2013 16:15:05 +0200 ruby-net-ldap (0.3.1-2) unstable; urgency=low * Team upload. * Bump build dependency on gem2deb to >= 0.3.0~. -- Paul van Tilburg Wed, 27 Jun 2012 21:24:24 +0200 ruby-net-ldap (0.3.1-1) unstable; urgency=low * Upstream update. * debian/watch: refer to latest net-ldap project. * debian/copyright: + license changed to Expat, with permission from Ondřej Surý for the debian/* part. + format 1.0 + add a lintian-override because Comment mentions old GPL license. * debian/control: + Standards-Version 3.9.3 (no changes required) + Use anonscm.d.o in Vcs-* fields. + Update Homepage url. + XS-Ruby-Versions: all, this module is fine with ruby 1.8 and 1.9. * debian/patches: + Unapply unneeded patches + 0003-fix_require_in_tests.patch: tests are called from CURDIR. * Update debian/ruby-test-files.yaml -- Jérémy Lal Mon, 14 May 2012 17:25:45 +0200 ruby-net-ldap (0.0.4-1) unstable; urgency=low * Initial release (Closes: #628700) * Fix tests failures + Remove tests for removed filter operators + Remove tests which needed running LDAP server + Remove incomplete ldif test * Disable ruby1.9.1 build altogher, the module is not prepared for ruby1.9.1 -- Ondřej Surý Tue, 31 May 2011 16:52:09 +0200