simple-login 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# SimpleLogin
|
2
2
|
|
3
|
+
[![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/designium/simple-login)
|
4
|
+
|
3
5
|
simple_login creates a basic and simple login system for Rails 3 apps. It is based on Railscasts Authentication from Scratch videos.
|
4
6
|
|
5
7
|
# Demo
|
@@ -4,6 +4,12 @@ module SimpleLogin
|
|
4
4
|
source_root File.expand_path('../templates', __FILE__)
|
5
5
|
|
6
6
|
|
7
|
+
def create_user
|
8
|
+
generate("model", "user email:string password_digest:string auth_token:string password_reset_token:string password_reset_sent_at:datetime")
|
9
|
+
rake("db:migrate")
|
10
|
+
remove_file "user.rb", "app/models/user.rb"
|
11
|
+
end
|
12
|
+
|
7
13
|
def generate_user
|
8
14
|
# Copy the controllers for user, sessions and password_reset
|
9
15
|
directory "controllers", "app/controllers/"
|
@@ -34,11 +40,6 @@ module SimpleLogin
|
|
34
40
|
route("resources :password_resets")
|
35
41
|
end
|
36
42
|
|
37
|
-
def create_user
|
38
|
-
generate("model", "users email:string password_digest:string auth_token:string password_reset_token:string password_reset_sent_at:datetime")
|
39
|
-
rake("db:migrate")
|
40
|
-
end
|
41
|
-
|
42
43
|
def add_gems
|
43
44
|
gem("bcrypt-ruby")
|
44
45
|
end
|
@@ -46,4 +47,4 @@ module SimpleLogin
|
|
46
47
|
|
47
48
|
end
|
48
49
|
end
|
49
|
-
end
|
50
|
+
end
|
data/lib/simple_login/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-login
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-31 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: ! 'simple-login creates a basic and simple login system for Rails 3 apps.
|
15
15
|
It is based on Railscasts Authentication from Scratch videos. Usage: create your
|
@@ -45,7 +45,9 @@ files:
|
|
45
45
|
- README.md
|
46
46
|
homepage: https://github.com/designium/simple-login
|
47
47
|
licenses: []
|
48
|
-
post_install_message: !
|
48
|
+
post_install_message: ! "***************************************\n Thanks for
|
49
|
+
using simple-login \n \nAny problem? Suggestion?
|
50
|
+
Send an email:\n email: designium+simple@gmail.com \n***************************************\n"
|
49
51
|
rdoc_options: []
|
50
52
|
require_paths:
|
51
53
|
- lib
|