monban-generators 0.0.2 → 0.0.3

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: 18ea7759a934c47781177058a09fd2f94ef0d828
4
- data.tar.gz: 54e367c49e208a26c1e91dec6510834487787731
3
+ metadata.gz: 76f3a847d710162221fb370c35fdb36056c65336
4
+ data.tar.gz: ce7da41c6bc9f7fd4fa8f38c0ec5d813cd12821c
5
5
  SHA512:
6
- metadata.gz: 65719134f8469381c54fcb741545e740e284ede1ffce572daa1ea3cd60eb581288af71cbc33bec210722ad8a35b076252196147a5767e3d5a673ccea64da72d0
7
- data.tar.gz: 34291e146892cc25b5854bc116eec7dafff2bee577fa113de87f79711c61543354a5970fca8b84090c2de0e4956cf093d3710634f99e03662fcd65f635f8bb7a
6
+ metadata.gz: 8f7ee20be4d27122bbda45a8019bd4627a885c24134dceea03029fe99edba0842a1bd05c200a2820f533e1809fd452df5b8222ca7795b39fbe283c8fa94d964b
7
+ data.tar.gz: eeb9b287b5da826a19a9b2acc6e7cc888816fbe665246f20f95b04418f71ec165d94b00561f65e8ef1b9aea8a5a14115a3ba66f05c166acf4eb8171c5173127c
data/NEWS.rdoc ADDED
@@ -0,0 +1,4 @@
1
+ ## HEAD
2
+ * Fixed Version Constraint
3
+ * Made User model have validations by default to disallow NULL values
4
+ * Added NEWS.md
@@ -30,7 +30,8 @@ module Monban
30
30
  end
31
31
 
32
32
  def add_model
33
- generate 'model', 'user email password_digest'
33
+ template 'app/models/user.rb', 'app/models/user.rb'
34
+ migration_template "db/migrate/create_users.rb", "db/migrate/create_users.rb"
34
35
  end
35
36
 
36
37
  def display_readme
@@ -0,0 +1,4 @@
1
+ class User < ActiveRecord::Base
2
+ validates :email, presence: true, uniqueness: true
3
+ validates :password_digest, presence: true
4
+ end
@@ -0,0 +1,12 @@
1
+ class CreateUsers < ActiveRecord::Migration
2
+ def change
3
+ create_table :users do |t|
4
+ t.string :email, null: false
5
+ t.string :password_digest, null: false
6
+
7
+ t.timestamps null: false
8
+ end
9
+
10
+ add_index :users, :email, unique: true
11
+ end
12
+ end
@@ -1,5 +1,5 @@
1
1
  module Monban
2
2
  module Generators
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -20,5 +20,5 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.5"
22
22
  spec.add_development_dependency "rake"
23
- spec.add_dependency "monban", "~> 0.0.12"
23
+ spec.add_dependency "monban", ">= 0.0.12"
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monban-generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - halogenandtoast
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-08 00:00:00.000000000 Z
11
+ date: 2014-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -42,14 +42,14 @@ dependencies:
42
42
  name: monban
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.0.12
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.0.12
55
55
  description: Generators to add in different forms of user authentication to a rails
@@ -63,6 +63,7 @@ files:
63
63
  - ".gitignore"
64
64
  - Gemfile
65
65
  - LICENSE.txt
66
+ - NEWS.rdoc
66
67
  - README.md
67
68
  - Rakefile
68
69
  - lib/generators/monban/password_reset/password_reset_generator.rb
@@ -72,6 +73,7 @@ files:
72
73
  - lib/generators/monban/templates/app/controllers/users_controller.rb
73
74
  - lib/generators/monban/templates/app/mailers/password_reset_mailer.rb
74
75
  - lib/generators/monban/templates/app/models/password_reset.rb
76
+ - lib/generators/monban/templates/app/models/user.rb
75
77
  - lib/generators/monban/templates/app/views/password_reset_mailer/change_password.html.erb
76
78
  - lib/generators/monban/templates/app/views/password_resets/create.html.erb
77
79
  - lib/generators/monban/templates/app/views/password_resets/edit.html.erb
@@ -79,6 +81,7 @@ files:
79
81
  - lib/generators/monban/templates/app/views/sessions/new.html.erb
80
82
  - lib/generators/monban/templates/app/views/users/new.html.erb
81
83
  - lib/generators/monban/templates/db/migrate/create_password_resets.rb
84
+ - lib/generators/monban/templates/db/migrate/create_users.rb
82
85
  - lib/generators/monban/templates/password_reset_readme
83
86
  - lib/generators/monban/templates/scaffold_readme
84
87
  - lib/monban/generators.rb
@@ -104,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
107
  version: '0'
105
108
  requirements: []
106
109
  rubyforge_project:
107
- rubygems_version: 2.2.2
110
+ rubygems_version: 2.3.0
108
111
  signing_key:
109
112
  specification_version: 4
110
113
  summary: Rails generators for the monban authentication library