Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Versioning.
  • Loading branch information
designium committed Aug 31, 2012
1 parent 812f313 commit b15713a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
11 changes: 6 additions & 5 deletions lib/rails/generators/simple_login/simple_login_generator.rb
Expand Up @@ -4,6 +4,12 @@ class SimpleLoginGenerator < Rails::Generators::Base
source_root File.expand_path('../templates', __FILE__)


def create_user
generate("model", "user email:string password_digest:string auth_token:string password_reset_token:string password_reset_sent_at:datetime")
rake("db:migrate")
remove_file "user.rb", "app/models/user.rb"
end

def generate_user
# Copy the controllers for user, sessions and password_reset
directory "controllers", "app/controllers/"
Expand Down Expand Up @@ -34,11 +40,6 @@ def insert_routes
route("resources :password_resets")
end

def create_user
generate("model", "user email:string password_digest:string auth_token:string password_reset_token:string password_reset_sent_at:datetime")
rake("db:migrate")
end

def add_gems
gem("bcrypt-ruby")
end
Expand Down
2 changes: 1 addition & 1 deletion lib/simple_login/version.rb
@@ -1,3 +1,3 @@
module SimpleLogin
VERSION = "0.1.7"
VERSION = "0.1.8"
end
7 changes: 1 addition & 6 deletions simple_login.gemspec
Expand Up @@ -18,11 +18,6 @@ Gem::Specification.new do |gem|

gem.files = Dir["{lib}/**/*", "[A-Z]*"]

gem.post_install_message = "***************************************"
gem.post_install_message = " Thanks for using simple-login "
gem.post_install_message = " "
gem.post_install_message = "Any problem? Suggestion? Send an email:"
gem.post_install_message = " email: designium+simple@gmail.com "
gem.post_install_message = "***************************************"
gem.post_install_message = "***************************************\n Thanks for using simple-login \n \nAny problem? Suggestion? Send an email:\n email: designium+simple@gmail.com \n***************************************\n"

end

0 comments on commit b15713a

Please sign in to comment.