simple_auth 2.0.3 → 2.0.4

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: c7f989033172d408087d921e6b817deb6a797d86
4
- data.tar.gz: 17baff56afe96566e89a03f86c762ca94dc7c273
3
+ metadata.gz: 5a215455bb8f741f52ef5264369f23de3ba08c7d
4
+ data.tar.gz: 1d8f0a5c88ff1984aafc1e15301bb45f35b756fa
5
5
  SHA512:
6
- metadata.gz: bdbbac966ea1a128444781e0e024d61b84116f97eed31e35b1ff34080f025ee67357973f0c6d9177b8783e912dfbe120c747ac576dd6b352cddcc9143029165b
7
- data.tar.gz: 7b466f1714756cb0925786814e6e1c40f59c14e715e02b096476a7e51f4683b7b1ebd6742357aa2ab23e2f35dbc6a1f0cbb622ceaeb081fba621b2e1cfc760d7
6
+ metadata.gz: 2720ed1e46481f2f76fec454b8a987f9e8e5398ab86c796ab4bd503313e1b1116136370b3865cc48fbbde7a1ac7462fa4bf4e89c05cf47dcf8202a14b1577ad7
7
+ data.tar.gz: 2ef4c67cfb8cada8dba397db2a0b032ed474233a5cfa408897d269bac2898f5d80b3a6821a24f8fff0448c0b702d8341bf10565a6260ae9e5df01e19f72d8181
@@ -133,7 +133,9 @@ module SimpleAuth
133
133
  end
134
134
 
135
135
  def record
136
- @record ||= model.authenticate(credential, password)
136
+ @record ||= model
137
+ .find_by_credential(credential)
138
+ .try(:authenticate, password)
137
139
  end
138
140
 
139
141
  def save
@@ -2,7 +2,7 @@ module SimpleAuth
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 0
5
- PATCH = 3
5
+ PATCH = 4
6
6
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-26 00:00:00.000000000 Z
11
+ date: 2014-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails