lockie 0.2.1 → 0.2.2

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
  SHA256:
3
- metadata.gz: 5611c39c34639b730d1e727ac9d19d9606e54a34a289f3dedf863a83d71175c5
4
- data.tar.gz: f25907b964058f449210ace1e8b1d91cc7ea35f7b0972fc2ffb358c004aa7c58
3
+ metadata.gz: f57a835c3e1469c419dbaa9066fe7b20a18081b1bce6f49b61133d66704173c1
4
+ data.tar.gz: 83eb473b69baa93df63c13f1cc33b41c4304c0a6bdb1bd76ba635030d6aa9b4d
5
5
  SHA512:
6
- metadata.gz: '08027dfcd40444551b9a561634dc9f192facea3d496d5a144b6c62840c45e781d56fba32f213d14eb99ffbbba7d1c7aef43ae96529c8032a4faa7360027ab679'
7
- data.tar.gz: 2007a0a5ecb0c78f732db3c9875dd0419c5e18242b2431e265d9cf9e3be8f45cd3f40a9e1c563c5c4be264102f0809bdc771d32ab49b187ea0c025e5e11b2e65
6
+ metadata.gz: 7d247b223ede7d952fbc1beeb085a393a047067fc88fed0c7eb06ef776331de850b26f98135d6d9f8b977c4edcef921dd6220f4dad93f73e82fb6b22cc8d52ce
7
+ data.tar.gz: aad9449bb8bf4769b009b80d88fd15e6ba1f4ab85e954cbe890b09ec4796fc42771df02207010586a8bec9e50fc71cdc576fed756722e93396e6dce39c261cc4
data/README.md CHANGED
@@ -9,7 +9,7 @@ A drop-in, none assuming warden based Password and JWT authentication for Rails
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'lockie'
12
+ gem 'lockie', '~> 0.2.1'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -2,16 +2,15 @@ require 'lockie/model_helper'
2
2
 
3
3
  module Lockie
4
4
  class Engine < ::Rails::Engine
5
- include Lockie::ModelHelper
6
5
 
7
6
  config.app_middleware.use Warden::Manager do |manager|
8
7
  manager.default_strategies Lockie.config.default_strategies
9
8
  manager.failure_app = Lockie::FailureApp
10
9
 
11
- # manager.serialize_into_session(&:id)
12
- # manager.serialize_from_session do |id|
13
- # auth_object.find(id)
14
- # end
10
+ manager.serialize_into_session(&:id)
11
+ manager.serialize_from_session do |id|
12
+ Lockie.config.model_name.classify.constantize.find(id)
13
+ end
15
14
 
16
15
  end
17
16
  end
@@ -1,3 +1,3 @@
1
1
  module Lockie
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lockie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Melvin Sembrano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-26 00:00:00.000000000 Z
11
+ date: 2019-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails