casino_core-authenticator-activerecord 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- casino_core-authenticator-activerecord (0.0.1)
4
+ casino_core-authenticator-activerecord (1.1.1)
5
5
  activerecord (~> 3.2.12)
6
6
  bcrypt-ruby (~> 3.0.1)
7
7
  unix-crypt (~> 1.0.2)
@@ -34,7 +34,7 @@ GEM
34
34
  rspec-core (2.12.2)
35
35
  rspec-expectations (2.12.1)
36
36
  diff-lcs (~> 1.1.3)
37
- rspec-mocks (2.12.1)
37
+ rspec-mocks (2.12.2)
38
38
  simplecov (0.7.1)
39
39
  multi_json (~> 1.0)
40
40
  simplecov-html (~> 0.7.1)
data/README.md CHANGED
@@ -11,7 +11,7 @@ To use the ActiveRecord authenticator, configure it in your cas.yml:
11
11
  authenticator: "ActiveRecord"
12
12
  options:
13
13
  connection:
14
- adapter: "mysql"
14
+ adapter: "mysql2"
15
15
  host: "localhost"
16
16
  username: "casino"
17
17
  password: "secret"
@@ -26,7 +26,7 @@ class CASinoCore::Authenticator::ActiveRecord
26
26
  password_from_database = user.send(@options[:password_column])
27
27
 
28
28
  if valid_password?(password, password_from_database)
29
- { username: user.send(@options[:username_column]) }.merge(extra_attributes(user))
29
+ { username: user.send(@options[:username_column]), extra_attributes: extra_attributes(user) }
30
30
  else
31
31
  false
32
32
  end
@@ -1,7 +1,7 @@
1
1
  module CASinoCore
2
2
  class Authenticator
3
3
  class ActiveRecord
4
- VERSION = '1.1.0'
4
+ VERSION = '1.1.1'
5
5
  end
6
6
  end
7
7
  end
@@ -56,7 +56,7 @@ describe CASinoCore::Authenticator::ActiveRecord do
56
56
  end
57
57
 
58
58
  it 'returns the extra attributes' do
59
- @authenticator.validate('test', 'testpassword')[:email].should eq('mail@example.org')
59
+ @authenticator.validate('test', 'testpassword')[:extra_attributes][:email].should eq('mail@example.org')
60
60
  end
61
61
  end
62
62
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: casino_core-authenticator-activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: