Skip to content

Commit 4b914b9

Browse files
committed
fixBrokenUTFbullshit
1 parent d4a7355 commit 4b914b9

File tree

2 files changed

+13
-25
lines changed

2 files changed

+13
-25
lines changed

lib/net/ber.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ class Net::BER::BerIdentifiedString < String
298298
def initialize args
299299
super args
300300
# LDAP uses UTF-8 encoded strings
301-
self.encode('UTF-8') if self.respond_to?(:encoding) rescue self
301+
self.force_encoding('UTF-8')
302302
end
303303
end
304304

net-ldap.gemspec

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,25 @@
11
# -*- encoding: utf-8 -*-
2-
lib = File.expand_path('../lib', __FILE__)
3-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4-
require 'net/ldap/version'
2+
# stub: net-ldap 0.6.1 ruby lib
53

64
Gem::Specification.new do |s|
7-
s.name = %q{net-ldap}
8-
s.version = Net::LDAP::VERSION
9-
s.license = "MIT"
5+
s.name = "net-ldap"
6+
s.version = "0.6.1"
107

118
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9+
s.require_paths = ["lib"]
1210
s.authors = ["Francis Cianfrocca", "Emiel van de Laar", "Rory O'Connell", "Kaspar Schiess", "Austin Ziegler", "Michael Schaarschmidt"]
13-
s.date = %q{2012-02-28}
14-
s.description = %q{Net::LDAP for Ruby (also called net-ldap) implements client access for the
15-
Lightweight Directory Access Protocol (LDAP), an IETF standard protocol for
16-
accessing distributed directory services. Net::LDAP is written completely in
17-
Ruby with no external dependencies. It supports most LDAP client features and a
18-
subset of server features as well.
19-
20-
Net::LDAP has been tested against modern popular LDAP servers including
21-
OpenLDAP and Active Directory. The current release is mostly compliant with
22-
earlier versions of the IETF LDAP RFCs (2251-2256, 2829-2830, 3377, and 3771).
23-
Our roadmap for Net::LDAP 1.0 is to gain full <em>client</em> compliance with
24-
the most recent LDAP RFCs (4510-4519, plutions of 4520-4532).}
11+
s.date = "2012-02-28"
12+
s.description = "Net::LDAP for Ruby (also called net-ldap) implements client access for the\nLightweight Directory Access Protocol (LDAP), an IETF standard protocol for\naccessing distributed directory services. Net::LDAP is written completely in\nRuby with no external dependencies. It supports most LDAP client features and a\nsubset of server features as well.\n\nNet::LDAP has been tested against modern popular LDAP servers including\nOpenLDAP and Active Directory. The current release is mostly compliant with\nearlier versions of the IETF LDAP RFCs (2251-2256, 2829-2830, 3377, and 3771).\nOur roadmap for Net::LDAP 1.0 is to gain full <em>client</em> compliance with\nthe most recent LDAP RFCs (4510-4519, plutions of 4520-4532)."
2513
2614
s.extra_rdoc_files = ["Manifest.txt", "Contributors.rdoc", "Hacking.rdoc", "History.rdoc", "License.rdoc", "README.rdoc"]
27-
s.files = [".autotest", ".rspec", "Contributors.rdoc", "Hacking.rdoc", "History.rdoc", "License.rdoc", "Manifest.txt", "README.rdoc", "Rakefile", "autotest/discover.rb", "lib/net-ldap.rb", "lib/net/ber.rb", "lib/net/ber/ber_parser.rb", "lib/net/ber/core_ext.rb", "lib/net/ber/core_ext/array.rb", "lib/net/ber/core_ext/bignum.rb", "lib/net/ber/core_ext/false_class.rb", "lib/net/ber/core_ext/fixnum.rb", "lib/net/ber/core_ext/string.rb", "lib/net/ber/core_ext/true_class.rb", "lib/net/ldap.rb", "lib/net/ldap/dataset.rb", "lib/net/ldap/dn.rb", "lib/net/ldap/entry.rb", "lib/net/ldap/filter.rb", "lib/net/ldap/password.rb", "lib/net/ldap/pdu.rb", "lib/net/snmp.rb", "net-ldap.gemspec", "spec/integration/ssl_ber_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "spec/unit/ber/ber_spec.rb", "spec/unit/ber/core_ext/string_spec.rb", "spec/unit/ldap/dn_spec.rb", "spec/unit/ldap/entry_spec.rb", "spec/unit/ldap/filter_spec.rb", "spec/unit/ldap_spec.rb", "test/common.rb", "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", "test/testdata.ldif", "testserver/ldapserver.rb", "testserver/testdata.ldif", "lib/net/ldap/version.rb"]
28-
s.homepage = %q{http://github.com/ruby-ldap/ruby-net-ldap}
15+
s.files = [".autotest", ".rspec", "Contributors.rdoc", "Hacking.rdoc", "History.rdoc", "License.rdoc", "Manifest.txt", "README.rdoc", "Rakefile", "autotest/discover.rb", "lib/net-ldap.rb", "lib/net/ber.rb", "lib/net/ber/ber_parser.rb", "lib/net/ber/core_ext.rb", "lib/net/ber/core_ext/array.rb", "lib/net/ber/core_ext/bignum.rb", "lib/net/ber/core_ext/false_class.rb", "lib/net/ber/core_ext/fixnum.rb", "lib/net/ber/core_ext/string.rb", "lib/net/ber/core_ext/true_class.rb", "lib/net/ldap.rb", "lib/net/ldap/dataset.rb", "lib/net/ldap/dn.rb", "lib/net/ldap/entry.rb", "lib/net/ldap/filter.rb", "lib/net/ldap/password.rb", "lib/net/ldap/pdu.rb", "lib/net/ldap/version.rb", "lib/net/snmp.rb", "net-ldap.gemspec", "spec/integration/ssl_ber_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "spec/unit/ber/ber_spec.rb", "spec/unit/ber/core_ext/string_spec.rb", "spec/unit/ldap/dn_spec.rb", "spec/unit/ldap/entry_spec.rb", "spec/unit/ldap/filter_spec.rb", "spec/unit/ldap_spec.rb", "test/common.rb", "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", "test/testdata.ldif", "testserver/ldapserver.rb", "testserver/testdata.ldif"]
16+
s.homepage = "http://github.com/ruby-ldap/ruby-net-ldap"
17+
s.licenses = ["MIT"]
2918
s.rdoc_options = ["--main", "README.rdoc"]
30-
s.require_paths = ["lib"]
3119
s.required_ruby_version = Gem::Requirement.new(">= 1.8.7")
32-
s.rubyforge_project = %q{net-ldap}
33-
s.rubygems_version = %q{1.5.2}
34-
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}
20+
s.rubyforge_project = "net-ldap"
21+
s.rubygems_version = "2.2.2"
22+
s.summary = "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"
3523
s.test_files = ["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"]
3624

3725
if s.respond_to? :specification_version then

0 commit comments

Comments
 (0)