monban-generators 0.0.3 → 0.0.4

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: 76f3a847d710162221fb370c35fdb36056c65336
4
- data.tar.gz: ce7da41c6bc9f7fd4fa8f38c0ec5d813cd12821c
3
+ metadata.gz: 924fb11bdeb71785b7ce57ff8a2cc2256c113775
4
+ data.tar.gz: 5d062e6a0994b1cef26ea33932027b723fe9e38f
5
5
  SHA512:
6
- metadata.gz: 8f7ee20be4d27122bbda45a8019bd4627a885c24134dceea03029fe99edba0842a1bd05c200a2820f533e1809fd452df5b8222ca7795b39fbe283c8fa94d964b
7
- data.tar.gz: eeb9b287b5da826a19a9b2acc6e7cc888816fbe665246f20f95b04418f71ec165d94b00561f65e8ef1b9aea8a5a14115a3ba66f05c166acf4eb8171c5173127c
6
+ metadata.gz: e07e28aa82adfe7218bb214bff9a963e4c9c3e87205d47b6e7352c77b8f4dd922b71f0aaf29c4f3d87c7d4bf85533f74bcfa5cefbe6b61c1ab644053b37850c3
7
+ data.tar.gz: 7b93004d943123a91caa7c959705b1956ffefc3edef2297922c96ea32fbe6e13ecd42600bd6a6cc2a7a21f459c65764f43b3fbfed70a374dd086d02001605cd6
data/NEWS.rdoc CHANGED
@@ -1,4 +1,8 @@
1
- ## HEAD
1
+ ## 0.0.4
2
+ * Added locale file to generator
3
+ * Added display of error messages on users#new
4
+
5
+ ## 0.0.3
2
6
  * Fixed Version Constraint
3
7
  * Made User model have validations by default to disallow NULL values
4
8
  * Added NEWS.md
@@ -34,6 +34,10 @@ module Monban
34
34
  migration_template "db/migrate/create_users.rb", "db/migrate/create_users.rb"
35
35
  end
36
36
 
37
+ def add_translations
38
+ template "config/locales/monban.en.yml"
39
+ end
40
+
37
41
  def display_readme
38
42
  readme 'scaffold_readme'
39
43
  end
@@ -1,4 +1,14 @@
1
1
  <%= form_for @user do |form| %>
2
+
3
+ <% if @user.errors.any? %>
4
+ <%= pluralize(@user.errors.count, "error") %> prevented your account from being created:
5
+ <ul>
6
+ <% @user.errors.full_messages.each do |error_message| %>
7
+ <li><%= error_message %></li>
8
+ <% end %>
9
+ </ul>
10
+ <% end %>
11
+
2
12
  <div>
3
13
  <%= form.label :email %>
4
14
  <%= form.email_field :email %>
@@ -0,0 +1,5 @@
1
+ en:
2
+ activerecord:
3
+ attributes:
4
+ user:
5
+ password_digest: "Password"
@@ -1,5 +1,5 @@
1
1
  module Monban
2
2
  module Generators
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - halogenandtoast
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-10 00:00:00.000000000 Z
11
+ date: 2014-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,6 +80,7 @@ files:
80
80
  - lib/generators/monban/templates/app/views/password_resets/new.html.erb
81
81
  - lib/generators/monban/templates/app/views/sessions/new.html.erb
82
82
  - lib/generators/monban/templates/app/views/users/new.html.erb
83
+ - lib/generators/monban/templates/config/locales/monban.en.yml
83
84
  - lib/generators/monban/templates/db/migrate/create_password_resets.rb
84
85
  - lib/generators/monban/templates/db/migrate/create_users.rb
85
86
  - lib/generators/monban/templates/password_reset_readme