Skip to content
Browse files

Versioning.

  • Loading branch information...
1 parent 812f313 commit b15713afd3e4851f6102003881805ad5a5005ba3 @designium committed Aug 30, 2012
View
11 lib/rails/generators/simple_login/simple_login_generator.rb
@@ -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/"
@@ -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
View
2 lib/simple_login/version.rb
@@ -1,3 +1,3 @@
module SimpleLogin
- VERSION = "0.1.7"
+ VERSION = "0.1.8"
end
View
7 simple_login.gemspec
@@ -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.
Something went wrong with that request. Please try again.