activeldap 6.0.0 → 6.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ddf65edda308e8db6ca8c35e3ef87c3299f048c0088b2f0836bab3f194709d11
4
- data.tar.gz: fb21442b49251ff549b0f8c9189443b29830230eb77b71fd9cd44da14a04afd0
3
+ metadata.gz: 3a46a7f1f206eab425b0a3ec483c44c66622a65958fc34fe658313e152563e9b
4
+ data.tar.gz: e7fafc57db50aaaf81dc7f087328b87b8d5a78ed96b552c91bb7bd4234876eb5
5
5
  SHA512:
6
- metadata.gz: ee133139964a025b4b55e294c3601ee7b686016718cf347a70f8beb1832a1b8a8f7867171dca577366bdf09a3e2777e4d61daf371570e7718eb0ef89c1423c9a
7
- data.tar.gz: 6fa4404370ecfcbb9509db4628165f9a41a0dc58ef420bc6809ba2ddb7d57c03761d6330bffbb1fc05d9a3ab5dbc2f336f1f7449d6d0df9fcea042792a840a15
6
+ metadata.gz: d89e9298c051c069236b7949d7597d61c57da5e69bee171bf51cbe24607edc2a319ed65604d34bd5928da4674a3558a0e75e9fe3e874a1f812a8a40bf97877db
7
+ data.tar.gz: 0ea20f5c3f37691493ee5a05324d94645de90520cf15a44ba35e7f9692b8f26b113639a4d34df6679a76a84a6a44a7a86b87faa62d59c3c9176ec678750a9d8d
@@ -1,5 +1,18 @@
1
1
  # News
2
2
 
3
+ ## 6.0.1: 2020-04-21 {#release-6-0-1}
4
+
5
+ ### Improvements
6
+
7
+ * Dropped support for Ruby 2.4.
8
+
9
+ * Stopped using paged results when we need only one entry.
10
+ [GitHub#173][Patch by Kevin McCormack]
11
+
12
+ ### Thanks
13
+
14
+ * Kevin McCormack
15
+
3
16
  ## 6.0.0: 2020-04-16 {#release-6-0-0}
4
17
 
5
18
  ### Improvements
@@ -641,7 +641,6 @@ base = File.expand_path(File.join(File.dirname(__FILE__), ".."))
641
641
  $LOAD_PATH << File.join(base, "lib")
642
642
  $LOAD_PATH << File.join(base, "examples")
643
643
 
644
- require 'rubygems'
645
644
  require 'active_ldap'
646
645
  require 'objects/user'
647
646
  require 'objects/group'
@@ -694,7 +693,6 @@ base = File.expand_path(File.join(File.dirname(__FILE__), ".."))
694
693
  $LOAD_PATH << File.join(base, "lib")
695
694
  $LOAD_PATH << File.join(base, "examples")
696
695
 
697
- require 'rubygems'
698
696
  require 'active_ldap'
699
697
  require 'objects/user'
700
698
  require 'objects/group'
@@ -744,7 +742,6 @@ base = File.expand_path(File.join(File.dirname(__FILE__), ".."))
744
742
  $LOAD_PATH << File.join(base, "lib")
745
743
  $LOAD_PATH << File.join(base, "examples")
746
744
 
747
- require 'rubygems'
748
745
  require 'active_ldap'
749
746
  require 'objects/user'
750
747
  require 'objects/group'
@@ -1,4 +1,3 @@
1
- require "rubygems"
2
1
  require "active_model"
3
2
  require "active_support/core_ext"
4
3
 
@@ -181,7 +181,7 @@ module ActiveLdap
181
181
  limit = nil if limit <= 0
182
182
  use_paged_results = options[:use_paged_results]
183
183
  if use_paged_results or use_paged_results.nil?
184
- use_paged_results = supported_control.paged_results?
184
+ use_paged_results = limit != 1 && supported_control.paged_results?
185
185
  end
186
186
  search_options = {
187
187
  base: base,
@@ -682,8 +682,7 @@ module ActiveLdap
682
682
  :scope => :base,
683
683
  :attributes => attrs,
684
684
  :limit => 1,
685
- :try_reconnect => try_reconnect,
686
- :use_paged_results => false) do |dn, attributes|
685
+ :try_reconnect => try_reconnect) do |dn, attributes|
687
686
  found_attributes = attributes
688
687
  end
689
688
  found_attributes
@@ -1,3 +1,3 @@
1
1
  module ActiveLdap
2
- VERSION = "6.0.0"
2
+ VERSION = "6.0.1"
3
3
  end
@@ -468,7 +468,7 @@ module AlTestUtils
468
468
  end
469
469
 
470
470
  def omit_if_ldap(message=nil)
471
- return unless current_configuration[:adapter] == "ldap"
471
+ return if current_configuration[:adapter] == "ldap"
472
472
  omit(message || "This test is not for ruby-ldap")
473
473
  end
474
474
  end
@@ -2,8 +2,6 @@
2
2
 
3
3
  $VERBOSE = true
4
4
 
5
- $KCODE = 'u' if RUBY_VERSION < "1.9"
6
-
7
5
  base_dir = File.expand_path(File.dirname(__FILE__))
8
6
  top_dir = File.expand_path(File.join(base_dir, ".."))
9
7
  lib_dir = File.join(top_dir, "lib")
@@ -11,11 +9,9 @@ test_dir = File.join(top_dir, "test")
11
9
  $LOAD_PATH.unshift(lib_dir)
12
10
  $LOAD_PATH.unshift(test_dir)
13
11
 
14
- require "rubygems"
15
12
  require "bundler/setup"
16
13
 
17
14
  require "test/unit"
18
- require "test/unit/notify"
19
15
  Test::Unit::Priority.enable
20
16
 
21
17
  Dir.glob(File.join(test_dir, "**", "test_*.rb")) do |test_file|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeldap
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 6.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Drewry
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-04-15 00:00:00.000000000 Z
12
+ date: 2020-04-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '4.2'
20
+ version: '5.2'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: '4.2'
27
+ version: '5.2'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: locale
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -151,20 +151,6 @@ dependencies:
151
151
  - - ">="
152
152
  - !ruby/object:Gem::Version
153
153
  version: '0'
154
- - !ruby/object:Gem::Dependency
155
- name: test-unit-notify
156
- requirement: !ruby/object:Gem::Requirement
157
- requirements:
158
- - - ">="
159
- - !ruby/object:Gem::Version
160
- version: '0'
161
- type: :development
162
- prerelease: false
163
- version_requirements: !ruby/object:Gem::Requirement
164
- requirements:
165
- - - ">="
166
- - !ruby/object:Gem::Version
167
- version: '0'
168
154
  - !ruby/object:Gem::Dependency
169
155
  name: yard
170
156
  requirement: !ruby/object:Gem::Requirement