nifty-generators 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,9 @@
1
+ 0.1.8 (October 3rd, 2008)
2
+
3
+ * compatibility with RubyGems 1.3
4
+
5
+ * using f.error_messages instead of error_messages_for (thanks Zach Langley)
6
+
1
7
  0.1.7 (August 15th, 2008)
2
8
 
3
9
  * fixing shoulda tests
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('nifty-generators', '0.1.7') do |p|
5
+ Echoe.new('nifty-generators', '0.1.8') do |p|
6
6
  p.project = "niftygenerators"
7
7
  p.summary = "A collection of useful generator scripts for Rails."
8
8
  p.description = "A collection of useful generator scripts for Rails."
@@ -1,18 +1,18 @@
1
1
 
2
- # Gem::Specification for Nifty-generators-0.1.7
2
+ # Gem::Specification for Nifty-generators-0.1.8
3
3
  # Originally generated by Echoe
4
4
 
5
5
  --- !ruby/object:Gem::Specification
6
6
  name: nifty-generators
7
7
  version: !ruby/object:Gem::Version
8
- version: 0.1.7
8
+ version: 0.1.8
9
9
  platform: ruby
10
10
  authors:
11
11
  - Ryan Bates
12
12
  autorequire:
13
13
  bindir: bin
14
14
 
15
- date: 2008-09-11 00:00:00 -07:00
15
+ date: 2008-10-03 00:00:00 -07:00
16
16
  default_executable:
17
17
  dependencies: []
18
18
 
@@ -125,7 +125,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
125
125
  version:
126
126
  required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  requirements:
128
- - - "="
128
+ - - ">="
129
129
  - !ruby/object:Gem::Version
130
130
  version: "1.2"
131
131
  version:
@@ -1,5 +1,6 @@
1
- <%%= error_messages_for :<%= singular_name %> %>
2
1
  <%% form_for @<%= singular_name %> do |f| %>
2
+ <%%= f.error_messages %>
3
+
3
4
  <%- for attribute in attributes -%>
4
5
  <p>
5
6
  <%%= f.label :<%= attribute.name %> %><br />
@@ -1,9 +1,9 @@
1
- = error_messages_for :<%= singular_name %>
2
-
3
1
  - form_for @<%= singular_name %> do |f|
2
+ = f.error_messages
3
+
4
4
  <%- for attribute in attributes -%>
5
5
  %p
6
- =f.label :<%=attribute.name %>
6
+ = f.label :<%= attribute.name %>
7
7
  %br
8
8
  = f.<%= attribute.field_type %> :<%= attribute.name %>
9
9
  <%- end -%>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nifty-generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Bates
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-09-11 00:00:00 -07:00
12
+ date: 2008-10-03 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -122,7 +122,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
122
122
  version:
123
123
  required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  requirements:
125
- - - "="
125
+ - - ">="
126
126
  - !ruby/object:Gem::Version
127
127
  version: "1.2"
128
128
  version: