tiny_auth 0.1.0 → 0.1.1

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: 067c6cf62a8fe40b8fa2da418605dbc53cd790bc
4
- data.tar.gz: 91a2dc9cbceecf73688c9204445d7d6026a2080a
3
+ metadata.gz: ce2aaf5f006569620b52ab1de117c4aa5d5d3d31
4
+ data.tar.gz: d458f358c87410b997a213875dfce64f128dbe08
5
5
  SHA512:
6
- metadata.gz: 97074ce70bc487d7219b36f55d8c5c3512c2a2c94206c3b12d2045f47a90c46cc516d09abcaa36db00f93cfbc72e349eed75323f7bd12ccc24aa9909ef1a1923
7
- data.tar.gz: 2ea66468d7fad3f816153b402a423742312d3b8447fd80c1c9be305043dc8114e2232b847cf3d461cb86acbb8b54856c77d18314badc899e5707e34776acb73c
6
+ metadata.gz: ea724d058e16ea66db6fe5bb6f9b570bba1ceade53df751357b192ed493b5b33be168a9f8f72731fa57fbca413c81708d899b970f24658bc418e2b7f77f5cb39
7
+ data.tar.gz: f8330414be12225fbf6c1c5e817c1db7decf604dc15d8e9f12285b0af35c5bd1a026738dba46e4d2b2e70e3e65750d1da5adf879406958d2b5574eef91555067
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tiny_auth (0.1.0)
4
+ tiny_auth (0.1.1)
5
5
  activerecord (~> 6.0)
6
6
  activesupport (~> 6.0)
7
7
  globalid (~> 0.4)
@@ -1,3 +1,3 @@
1
1
  class TinyAuth
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/tiny_auth.rb CHANGED
@@ -22,7 +22,7 @@ class TinyAuth
22
22
  end
23
23
 
24
24
  def generate_token(resource, purpose: :access, expires_in: 24.hours)
25
- resource.to_sgid(expires_in: expires_in, for: purpose)
25
+ resource.to_sgid(expires_in: expires_in, for: purpose).to_s
26
26
  end
27
27
 
28
28
  def find_by_token(token, purpose: :access)
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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ray Zane