devision 0.0.4.1 → 0.0.4.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
  SHA1:
3
- metadata.gz: 0fee8bc76c3ab45450d749eb1321f723d7acf769
4
- data.tar.gz: 47579579dafe3a3531af7fdab72b66793079a97e
3
+ metadata.gz: 0fb76e472a642ae2fecdaaebebe191f5dcd65d33
4
+ data.tar.gz: a3300c4445a66872d6c319895ca06945842f7100
5
5
  SHA512:
6
- metadata.gz: db4b8fb38ede0cb2265f0777519477e2357f7b73df90adcd29725e90f33c36e3739362d13b56fe3847af7cb95a90f7c9f1fbdef18d5949ce9a08f8077cb5433d
7
- data.tar.gz: 09388813a9002bcf770a7247bbfefd56f60d9842495c950932cea1bed010934286e0525d6cf95599ce4c59d905e4c0ba84bc49833dd07a9270835aa28f997fdd
6
+ metadata.gz: ef54b08c3dfe1f936f0c9f611c39bea4b6d93d82986dd766f96413ce95b7b8de5da01f6145886faf996fe6bbccf864bd4e98aea342e0651ebcf7bc9f6429be12
7
+ data.tar.gz: db941f0a7e9ef77f2c7d1710e8ebcca58e789800e9c7c7a2f16d8a45fd2a0067d5892cdee0e501405aa647d157948e4bcfc54bee57dd1223051b14fba1574a4d
@@ -9,24 +9,22 @@ module Devision
9
9
  end
10
10
 
11
11
  included do
12
-
13
12
  attr_reader :raw_token
13
+ end
14
14
 
15
- def generate_tokens
16
- raw, enc = Devision.token_generator.generate(self.class, :token)
17
- @raw_token = raw
18
- self.token = enc
19
- end
20
-
21
- def generate_tokens!
22
- generate_tokens && save(validate: false)
23
- end
15
+ def generate_tokens
16
+ raw, enc = Devision.token_generator.generate(self.class, :token)
17
+ @raw_token = raw
18
+ self.token = enc
19
+ end
24
20
 
25
- def clear_token
26
- @raw_token = nil
27
- self.token = nil
28
- end
21
+ def generate_tokens!
22
+ generate_tokens && save(validate: false)
23
+ end
29
24
 
25
+ def clear_token
26
+ @raw_token = nil
27
+ self.token = nil
30
28
  end
31
29
 
32
30
  module ClassMethods
@@ -8,7 +8,7 @@ module Devision
8
8
  MAJOR = 0
9
9
  MINOR = 0
10
10
  PATCH = 4
11
- PRE = 1
11
+ PRE = 2
12
12
 
13
13
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.').freeze
14
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devision
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4.1
4
+ version: 0.0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Faucett