Skip to content

Commit 67336c8

Browse files
author
Peter Vandenberk
committed
Merge branch 'master' into fix_sort_control_warning
2 parents 2f82c34 + e25b881 commit 67336c8

30 files changed

+513
-1067
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ publish/
77
Gemfile.lock
88
.bundle
99
bin/
10+
.idea

.travis.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,42 @@ rvm:
33
- 2.0.0
44
- 2.1
55
- 2.2
6+
- 2.3
7+
- 2.4
8+
- 2.5
9+
- 2.6
610
# optional
711
- ruby-head
812
- jruby-19mode
913
- jruby-head
1014
- rbx-2
1115

16+
addons:
17+
hosts:
18+
- ldap.example.org # needed for TLS verification
19+
20+
services:
21+
- docker
22+
1223
env:
1324
- INTEGRATION=openldap
1425

1526
before_install:
1627
- gem update bundler
1728

1829
install:
19-
- if [ "$INTEGRATION" = "openldap" ]; then sudo script/install-openldap; fi
30+
- >
31+
docker run \
32+
--hostname ldap.example.org \
33+
--env LDAP_TLS_VERIFY_CLIENT=try \
34+
-p 389:389 \
35+
-p 636:636 \
36+
-v "$(pwd)"/test/fixtures/ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom \
37+
--name openldap \
38+
--detach \
39+
osixia/openldap:1.3.0 \
40+
--copy-service \
41+
--loglevel debug \
2042
- bundle install
2143

2244
script: bundle exec rake ci

History.rdoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
=== Net::LDAP 0.16.2
2+
3+
* Net::LDAP#open does not cache bind result {#334}[https://github.com/ruby-ldap/ruby-net-ldap/pull/334]
4+
* Fix CI build {#333}[https://github.com/ruby-ldap/ruby-net-ldap/pull/333]
5+
* Fix to "undefined method 'result_code'" {#308}[https://github.com/ruby-ldap/ruby-net-ldap/pull/308]
6+
* Fixed Exception: incompatible character encodings: ASCII-8BIT and UTF-8 in filter.rb {#285}[https://github.com/ruby-ldap/ruby-net-ldap/pull/285]
7+
18
=== Net::LDAP 0.16.1
29

310
* Send DN and newPassword with password_modify request {#271}[https://github.com/ruby-ldap/ruby-net-ldap/pull/271]

README.rdoc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,14 @@ This task will run the test suite and the
5353
rake rubotest
5454

5555
CI takes too long? If your local box supports
56-
{Vagrant}[https://www.vagrantup.com/], you can run most of the tests
57-
in a VM on your local box. For more details and setup instructions, see
58-
{test/support/vm/openldap/README.md}[https://github.com/ruby-ldap/ruby-net-ldap/tree/master/test/support/vm/openldap/README.md]
56+
{Docker}[https://www.docker.com/], you can also run integration tests locally.
57+
Simply run:
58+
59+
script/ldap-docker
60+
INTEGRATION=openldap rake test
61+
62+
CAVEAT: you need to add the following line to /etc/hosts
63+
127.0.0.1 ldap.example.org
5964

6065
== Release
6166

lib/net/ldap.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ def open
712712
begin
713713
@open_connection = new_connection
714714
payload[:connection] = @open_connection
715-
payload[:bind] = @open_connection.bind(@auth)
715+
payload[:bind] = @result = @open_connection.bind(@auth)
716716
yield self
717717
ensure
718718
@open_connection.close if @open_connection

lib/net/ldap/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Net
22
class LDAP
3-
VERSION = "0.16.1"
3+
VERSION = "0.16.2"
44
end
55
end

net-ldap.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ the most recent LDAP RFCs (4510-4519, plutions of 4520-4532).}
3131

3232
s.add_development_dependency("flexmock", "~> 1.3")
3333
s.add_development_dependency("rake", "~> 10.0")
34-
s.add_development_dependency("rubocop", "~> 0.42.0")
34+
s.add_development_dependency("rubocop", "~> 0.49.0")
3535
s.add_development_dependency("test-unit")
3636
s.add_development_dependency("byebug")
3737
end

script/generate-fixture-ca

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

script/install-openldap

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

script/ldap-docker

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
# Usage: script/ldap-docker
3+
#
4+
# Starts a openldap docker container ready for integration tests
5+
6+
docker run --rm -ti \
7+
--hostname ldap.example.org \
8+
--env LDAP_TLS_VERIFY_CLIENT=try \
9+
-p 389:389 -p 636:636 \
10+
-v "$(pwd)"/test/fixtures/ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom \
11+
--name my-openldap-container \
12+
osixia/openldap:1.3.0 --copy-service --loglevel debug

test/fixtures/ca/ca.info

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

test/fixtures/ca/cacert.pem

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

0 commit comments

Comments
 (0)