prologue 0.3.10 → 0.3.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- prologue (0.3.10)
4
+ prologue (0.3.11)
5
5
  rails (~> 3.0.0)
6
6
  thor
7
7
 
data/README.md CHANGED
@@ -68,5 +68,5 @@ templates into a gem in the first place.
68
68
 
69
69
  ### Copyright
70
70
 
71
- Copyright (c) 2010 Quick Left. See LICENSE for details.
71
+ Copyright (c) 2010 Collin Schaafsma & Quick Left. See LICENSE for details.
72
72
 
@@ -67,4 +67,4 @@ module Prologue
67
67
  end
68
68
 
69
69
  end
70
- end
70
+ end
@@ -1,3 +1,3 @@
1
1
  module Prologue
2
- VERSION = "0.3.10"
2
+ VERSION = "0.3.11"
3
3
  end
@@ -42,12 +42,16 @@ run 'rm app/models/user.rb'
42
42
  create_file 'app/models/user.rb' do
43
43
  <<-RUBY
44
44
  class User < ActiveRecord::Base
45
- devise :database_authenticatable, :token_authenticatable, :recoverable, :rememberable, :trackable, :validatable, :confirmable
45
+ devise :database_authenticatable, :token_authenticatable, :recoverable, :rememberable, :trackable, :confirmable
46
46
  default_scope :conditions => { :deleted_at => nil }
47
- validates_presence_of :name
48
- validates_uniqueness_of :name, :email, :case_sensitive => false, :scope => :deleted_at
47
+ validates_presence_of :name, :email
48
+ validates_presence_of :password, :on => :create
49
+ validates_confirmation_of :password, :on => :create
50
+ validates_length_of :password, :within => 6..30, :allow_blank => true
51
+ validates_uniqueness_of :email, :case_sensitive => false, :scope => :deleted_at
52
+ validates_format_of :email, :with => Devise::email_regexp
53
+
49
54
  attr_accessible :name, :email, :password, :password_confirmation, :remember_me
50
- has_friendly_id :name, :use_slug => true, :strip_non_ascii => true
51
55
 
52
56
  def destroy
53
57
  self.update_attribute(:deleted_at, Time.now.utc)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 10
9
- version: 0.3.10
8
+ - 11
9
+ version: 0.3.11
10
10
  platform: ruby
11
11
  authors:
12
12
  - Quick Left
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-11-15 00:00:00 -07:00
17
+ date: 2010-12-15 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -184,6 +184,6 @@ rubyforge_project: prologue
184
184
  rubygems_version: 1.3.7
185
185
  signing_key:
186
186
  specification_version: 3
187
- summary: prologue-0.3.10
187
+ summary: prologue-0.3.11
188
188
  test_files: []
189
189