tiny_auth 0.1.1 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce2aaf5f006569620b52ab1de117c4aa5d5d3d31
4
- data.tar.gz: d458f358c87410b997a213875dfce64f128dbe08
3
+ metadata.gz: a857ca2f5a5570a3c6eeeb44c38f181b6e65cd5a
4
+ data.tar.gz: ce6eda4d395ec74c98837fe4ebb92fb03be5e6aa
5
5
  SHA512:
6
- metadata.gz: ea724d058e16ea66db6fe5bb6f9b570bba1ceade53df751357b192ed493b5b33be168a9f8f72731fa57fbca413c81708d899b970f24658bc418e2b7f77f5cb39
7
- data.tar.gz: f8330414be12225fbf6c1c5e817c1db7decf604dc15d8e9f12285b0af35c5bd1a026738dba46e4d2b2e70e3e65750d1da5adf879406958d2b5574eef91555067
6
+ metadata.gz: 421a42289951a95406cb3b06e29339e5e9d35bb08d09a2933f112b110df28647c0cc6b139b6f934f62a7173cb56f545bb0e063ae92efbd19c6814ea43ff59472
7
+ data.tar.gz: 72e2a5ab7f10ef4ab1db43ca70b3ae56e0bf6ed4515277362f644ab538935937ea8d37ca22ffc62e0fe676f1170956e2340d860d47e2406297cadab0149f68b9
data/lib/tiny_auth.rb CHANGED
@@ -27,6 +27,7 @@ class TinyAuth
27
27
 
28
28
  def find_by_token(token, purpose: :access)
29
29
  GlobalID::Locator.locate_signed(token, for: purpose)
30
+ rescue ActiveRecord::RecordNotFound
30
31
  end
31
32
 
32
33
  def generate_reset_token(resource, expires_in: 2.hours)
@@ -1,3 +1,3 @@
1
1
  class TinyAuth
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiny_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ray Zane