devise_active_directory_authenticatable 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{devise_active_directory_authenticatable}
8
- s.version = "0.3.1"
8
+ s.version = "0.3.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Adam Kerr"]
12
- s.date = %q{2011-02-22}
12
+ s.date = %q{2011-02-23}
13
13
  s.description = %q{Active Directory authentication module for Devise, based off of LDAP Authentication}
14
14
  s.email = %q{ajrkerr@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -54,7 +54,7 @@ module Devise
54
54
  def find_in_activedirectory(local_params = {})
55
55
  #Reverse mappings for user
56
56
  ad_params = local_attrs_to_ad local_params
57
-
57
+ Logger.send "Translated #{local_params.inspect} to #{ad_params.inspect}"
58
58
  return find_all_in_activedirectory if ad_params.empty?
59
59
 
60
60
  activedirectory_class.find(:all, ad_params)
@@ -13,7 +13,7 @@ module Devise
13
13
  Logger = DeviseActiveDirectoryAuthenticatable::Logger
14
14
 
15
15
  included do
16
-
16
+ #has_and_belongs_to_many :member, :class_name, :join_table
17
17
  end
18
18
 
19
19
  ## Devise key
@@ -60,7 +60,7 @@ module Devise
60
60
  # return false unless ad_user
61
61
 
62
62
  # Find them in the local database
63
- user = find_or_create_from_activedirectory(@login_with => attributes[@login_with]).first
63
+ user = find_or_create_from_activedirectory(login_with => attributes[login_with]).first
64
64
 
65
65
  # Check to see if we have the same user
66
66
  unless user.nil?
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_active_directory_authenticatable
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 1
10
- version: 0.3.1
9
+ - 2
10
+ version: 0.3.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Adam Kerr
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-22 00:00:00 -05:00
18
+ date: 2011-02-23 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency