ldap_fluff 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of ldap_fluff might be problematic. Click here for more details.

Files changed (2) hide show
  1. data/lib/ldap_fluff/config.rb +2 -2
  2. metadata +1 -1
@@ -7,8 +7,8 @@ class LdapFluff
7
7
  ATTRIBUTES.each { |attr| attr_reader attr }
8
8
 
9
9
  def initialize(options)
10
- raise ArgumentError unless options.kind_of? Hash
11
- options = options.inject({}) { |hash, (k, v)| hash.update k.to_s => v }
10
+ raise ArgumentError unless options.respond_to?(:to_hash)
11
+ options = options.to_hash.inject({}) { |hash, (k, v)| hash.update k.to_s => v }
12
12
  ATTRIBUTES.each { |attr| instance_variable_set :"@#{attr}", options[attr.to_s] }
13
13
  @encryption = @encryption.to_sym if @encryption
14
14
  @server_type = @server_type.to_sym if @server_type
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ldap_fluff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: