acts_as_hoc_user 1.0.8 → 1.0.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04a4d1e943e4adcb5f9d2dfd6eb5f0ceb3a6870b
|
4
|
+
data.tar.gz: 8f6be6cde06f8e0348b66fc022cd2887b260b7ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb1fbf63d3f453bbe05fc7e1657efe38a43d8442b848d9972437a500a5fd7688dedcf865dbdf2b0ef9079792c3f775baec255c71ece23d954c34719ea5266f92
|
7
|
+
data.tar.gz: be91bf5dc22042cda5034b528021aac32b7a680bf1672ee06e97fd9f1d04a2d07b699ef0a239cf06abce71d3aeb483d8d89a28eb60373d4fd5b1d4e36019d98d
|
data/README.md
CHANGED
@@ -29,7 +29,7 @@ $ rails generate acts_as_hoc_user:hoc_user NAME FIELDS
|
|
29
29
|
|
30
30
|
Eg.
|
31
31
|
```bash
|
32
|
-
$ rails generate acts_as_hoc_user:hoc_user user
|
32
|
+
$ rails generate acts_as_hoc_user:hoc_user user age:integer phone_number:string address:string zip:string
|
33
33
|
```
|
34
34
|
Which will generate the following migration:
|
35
35
|
```ruby
|
@@ -66,11 +66,12 @@ and initializer
|
|
66
66
|
#config/initializers/acts_as_hoc_user.rb
|
67
67
|
ActsAsHocUser.configure do |config|
|
68
68
|
config.min_password_length = 6
|
69
|
+
config.acts_as_hoc_user_secret = 'a very secret string'
|
69
70
|
end
|
70
71
|
```
|
71
72
|
|
72
73
|
### Manual usage
|
73
|
-
If you prefer you can create the model yourself. Just make sure that the model has email:string and password_digest:string fields and add `acts_as_hoc_user` to the model
|
74
|
+
If you prefer you can create the model yourself. Just make sure that the model has email:string, name:string and password_digest:string fields and add `acts_as_hoc_user` to the model
|
74
75
|
|
75
76
|
### Authenticate user
|
76
77
|
|
@@ -3,6 +3,7 @@ class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version
|
|
3
3
|
create_table :<%= table_name %> do |t|
|
4
4
|
t.string :email, index: {unique: true}, null: false
|
5
5
|
t.string :password_digest
|
6
|
+
t.string :name, null: false, default: ''
|
6
7
|
<% migration_colums.each do |column| -%>
|
7
8
|
<%= column %>
|
8
9
|
<% end -%>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_hoc_user
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gert Lavsen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bcrypt
|