activeldap 5.1.0 → 5.1.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
  SHA1:
3
- metadata.gz: 9c8e12943a7cec9dc82ccb3d0691ef449ac50218
4
- data.tar.gz: 7a5902d6f963ff74d9bb54c8f7f52a0e063c1929
3
+ metadata.gz: 6843a03bb95047e714ba757d90fcc4072508a7cb
4
+ data.tar.gz: e281bb775badcb61da95465dec7c316c51d4bcdf
5
5
  SHA512:
6
- metadata.gz: 7f0106de394d61a8ca1524676c88d00cfbf8cf8839fa6004509685e1c30b0f37ddf3efee78d8a53eb23e7c905daa3fc0322cf4f5c2d9cff65bb9c4b4b4a6c42f
7
- data.tar.gz: 71532cb3525dc88eb99f9dfe19203f2fd294e7e6575b589fe61649bd0fbd13f8d7b78ced72f8d6803b549b1f20a591c3b886b17951b15a8b9a97e31c8e9d906e
6
+ metadata.gz: 5ef2d625d33324a495fec527ba79b6b1483c21b885404220b5849af56345c1b08a8852d9c56a4df66b8cd230d21f3c6549190060c4978dc897da74fca2a12867
7
+ data.tar.gz: ae643d6b8552d95ed4fe089ba0104bb2347b1f0ed80bfeb2a4901a56e381801008836e640f701c356ecbed5f1a033f84754b78e47ca82611f4be56bc80845221
@@ -1,5 +1,19 @@
1
1
  h1. News
2
2
 
3
+ h2(#release-5-1-1). 5.1.1: 2018-01-17
4
+
5
+ h3. Improvements
6
+
7
+ * Added @:include_operational_attributes@ convenient option to
8
+ @ActiveLdap::Base.find@. @ActiveLdap::Base.find(...,
9
+ :include_operational_attributes => true)@ equals to
10
+ @ActiveLdap::Base.find(..., :attributes => ["*", "+"])@.
11
+ [GitHub#150][Reported by jas01]
12
+
13
+ h3. Thanks
14
+
15
+ * jas01
16
+
3
17
  h2(#release-5-1-0). 5.1.0: 2017-05-01
4
18
 
5
19
  h3. Improvements
@@ -291,6 +291,9 @@ module ActiveLdap
291
291
  offset = options.delete(:offset) || offset
292
292
  options[:attributes] = options.delete(:attributes) || ['*']
293
293
  options[:attributes] |= ['objectClass']
294
+ if options.delete(:include_operational_attributes)
295
+ options[:attributes] |= ["+"]
296
+ end
294
297
  results = search(options).collect do |dn, attrs|
295
298
  instantiate([dn, attrs, {:connection => options[:connection]}])
296
299
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveLdap
2
- VERSION = "5.1.0"
2
+ VERSION = "5.1.1"
3
3
  end
data/test/test_find.rb CHANGED
@@ -63,7 +63,8 @@ class TestFind < Test::Unit::TestCase
63
63
 
64
64
  def test_find_operational_attributes
65
65
  make_temporary_user do |user, password|
66
- found_user = @user_class.find(user.uid, :attributes => ["*", "+"])
66
+ found_user = @user_class.find(user.uid,
67
+ :include_operational_attributes => true)
67
68
  assert_equal(Time.now.utc.iso8601,
68
69
  found_user.modify_timestamp.utc.iso8601)
69
70
  end
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: 5.1.0
4
+ version: 5.1.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: 2017-05-01 00:00:00.000000000 Z
12
+ date: 2018-01-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel
@@ -359,7 +359,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
359
359
  version: '0'
360
360
  requirements: []
361
361
  rubyforge_project: ruby-activeldap
362
- rubygems_version: 2.5.2
362
+ rubygems_version: 2.5.2.2
363
363
  signing_key:
364
364
  specification_version: 4
365
365
  summary: ActiveLdap is a object-oriented API to LDAP