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: b884b8041cc55b42a59c95dfa9041d778f6e25cd
4
- data.tar.gz: c53386224eb8dabe81edd0294b173a34b8a1c815
3
+ metadata.gz: 04a4d1e943e4adcb5f9d2dfd6eb5f0ceb3a6870b
4
+ data.tar.gz: 8f6be6cde06f8e0348b66fc022cd2887b260b7ec
5
5
  SHA512:
6
- metadata.gz: 02a5aa146e12f89814abdc8ca56c008a3a37c74babbc3d51aa18a5f723d1c0b539f0d2a970b65604b35db4c1bf0c4efff25baa85f515b5a676bdcfa06ab83378
7
- data.tar.gz: aebd333efba3354d5f526b8fbf67fdd278709530101e0ff694c6bb2004104cbc9a67bbfdb50d2502f3dfd704dcc4c5d7c9126d8bc19df5170ebf4fea867742d1
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 name:string age:integer phone_number:string address:string zip:string
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
 
@@ -1,3 +1,3 @@
1
1
  module ActsAsHocUser
2
- VERSION = "1.0.8"
2
+ VERSION = "1.0.9"
3
3
  end
@@ -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.8
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-10 00:00:00.000000000 Z
11
+ date: 2018-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bcrypt