simple_form 1.5.2 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. data/CHANGELOG.md +234 -0
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +816 -0
  4. data/lib/generators/simple_form/install_generator.rb +15 -1
  5. data/lib/generators/simple_form/templates/README +12 -0
  6. data/lib/generators/simple_form/templates/_form.html.erb +2 -2
  7. data/lib/generators/simple_form/templates/_form.html.haml +2 -2
  8. data/lib/generators/simple_form/templates/_form.html.slim +4 -4
  9. data/lib/generators/simple_form/templates/config/initializers/simple_form.rb.tt +176 -0
  10. data/lib/simple_form/action_view_extensions/builder.rb +206 -59
  11. data/lib/simple_form/action_view_extensions/form_helper.rb +30 -23
  12. data/lib/simple_form/components/errors.rb +6 -24
  13. data/lib/simple_form/components/hints.rb +7 -21
  14. data/lib/simple_form/components/html5.rb +26 -0
  15. data/lib/simple_form/components/labels.rb +22 -14
  16. data/lib/simple_form/components/maxlength.rb +41 -0
  17. data/lib/simple_form/components/min_max.rb +49 -0
  18. data/lib/simple_form/components/pattern.rb +34 -0
  19. data/lib/simple_form/components/placeholders.rb +5 -17
  20. data/lib/simple_form/components/readonly.rb +22 -0
  21. data/lib/simple_form/components.rb +11 -1
  22. data/lib/simple_form/core_ext/hash.rb +16 -0
  23. data/lib/simple_form/error_notification.rb +9 -3
  24. data/lib/simple_form/form_builder.rb +105 -28
  25. data/lib/simple_form/helpers/autofocus.rb +11 -0
  26. data/lib/simple_form/helpers/disabled.rb +15 -0
  27. data/lib/simple_form/helpers/readonly.rb +15 -0
  28. data/lib/simple_form/helpers/required.rb +10 -11
  29. data/lib/simple_form/helpers/validators.rb +4 -4
  30. data/lib/simple_form/helpers.rb +7 -4
  31. data/lib/simple_form/inputs/base.rb +53 -81
  32. data/lib/simple_form/inputs/boolean_input.rb +46 -4
  33. data/lib/simple_form/inputs/collection_check_boxes_input.rb +21 -0
  34. data/lib/simple_form/inputs/collection_input.rb +27 -13
  35. data/lib/simple_form/inputs/collection_radio_buttons_input.rb +67 -0
  36. data/lib/simple_form/inputs/collection_select_input.rb +14 -0
  37. data/lib/simple_form/inputs/date_time_input.rb +10 -6
  38. data/lib/simple_form/inputs/grouped_collection_select_input.rb +41 -0
  39. data/lib/simple_form/inputs/hidden_input.rb +3 -6
  40. data/lib/simple_form/inputs/numeric_input.rb +3 -51
  41. data/lib/simple_form/inputs/password_input.rb +1 -2
  42. data/lib/simple_form/inputs/priority_input.rb +2 -2
  43. data/lib/simple_form/inputs/range_input.rb +1 -3
  44. data/lib/simple_form/inputs/string_input.rb +6 -8
  45. data/lib/simple_form/inputs/text_input.rb +1 -2
  46. data/lib/simple_form/inputs.rb +17 -13
  47. data/lib/simple_form/version.rb +1 -1
  48. data/lib/simple_form/wrappers/builder.rb +103 -0
  49. data/lib/simple_form/wrappers/many.rb +69 -0
  50. data/lib/simple_form/wrappers/root.rb +34 -0
  51. data/lib/simple_form/wrappers/single.rb +18 -0
  52. data/lib/simple_form/wrappers.rb +8 -0
  53. data/lib/simple_form.rb +118 -48
  54. data/test/action_view_extensions/builder_test.rb +285 -102
  55. data/test/action_view_extensions/form_helper_test.rb +32 -10
  56. data/test/components/label_test.rb +44 -5
  57. data/test/form_builder/association_test.rb +177 -0
  58. data/test/form_builder/button_test.rb +47 -0
  59. data/test/{error_notification_test.rb → form_builder/error_notification_test.rb} +18 -1
  60. data/test/form_builder/error_test.rb +121 -0
  61. data/test/form_builder/general_test.rb +356 -0
  62. data/test/form_builder/hint_test.rb +123 -0
  63. data/test/form_builder/input_field_test.rb +63 -0
  64. data/test/form_builder/label_test.rb +65 -0
  65. data/test/form_builder/wrapper_test.rb +149 -0
  66. data/test/generators/simple_form_generator_test.rb +32 -0
  67. data/test/inputs/boolean_input_test.rb +101 -0
  68. data/test/inputs/collection_check_boxes_input_test.rb +224 -0
  69. data/test/inputs/collection_radio_buttons_input_test.rb +326 -0
  70. data/test/inputs/collection_select_input_test.rb +241 -0
  71. data/test/inputs/datetime_input_test.rb +99 -0
  72. data/test/inputs/disabled_test.rb +38 -0
  73. data/test/inputs/discovery_test.rb +61 -0
  74. data/test/inputs/file_input_test.rb +16 -0
  75. data/test/inputs/general_test.rb +69 -0
  76. data/test/inputs/grouped_collection_select_input_test.rb +118 -0
  77. data/test/inputs/hidden_input_test.rb +30 -0
  78. data/test/inputs/numeric_input_test.rb +167 -0
  79. data/test/inputs/priority_input_test.rb +43 -0
  80. data/test/inputs/readonly_test.rb +61 -0
  81. data/test/inputs/required_test.rb +113 -0
  82. data/test/inputs/string_input_test.rb +140 -0
  83. data/test/inputs/text_input_test.rb +24 -0
  84. data/test/support/misc_helpers.rb +53 -12
  85. data/test/support/mock_controller.rb +2 -2
  86. data/test/support/models.rb +20 -5
  87. data/test/test_helper.rb +11 -12
  88. metadata +124 -96
  89. data/.gitignore +0 -3
  90. data/.gitmodules +0 -3
  91. data/.travis.yml +0 -15
  92. data/CHANGELOG.rdoc +0 -159
  93. data/Gemfile +0 -9
  94. data/README.rdoc +0 -466
  95. data/Rakefile +0 -27
  96. data/lib/generators/simple_form/templates/config/initializers/simple_form.rb +0 -93
  97. data/lib/simple_form/components/wrapper.rb +0 -38
  98. data/lib/simple_form/helpers/has_errors.rb +0 -15
  99. data/lib/simple_form/helpers/maxlength.rb +0 -24
  100. data/lib/simple_form/helpers/pattern.rb +0 -28
  101. data/simple_form.gemspec +0 -25
  102. data/test/components/error_test.rb +0 -56
  103. data/test/components/hint_test.rb +0 -74
  104. data/test/components/wrapper_test.rb +0 -63
  105. data/test/custom_components.rb +0 -7
  106. data/test/form_builder_test.rb +0 -930
  107. data/test/inputs_test.rb +0 -995
  108. /data/test/{discovery_inputs.rb → support/discovery_inputs.rb} +0 -0
metadata CHANGED
@@ -1,104 +1,90 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: simple_form
3
- version: !ruby/object:Gem::Version
4
- hash: 7
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 5
9
- - 2
10
- version: 1.5.2
11
6
  platform: ruby
12
- authors:
13
- - "Jos\xC3\xA9 Valim"
14
- - "Carlos Ant\xC3\xB4nio"
7
+ authors:
8
+ - José Valim
9
+ - Carlos Antônio
10
+ - Rafael França
15
11
  autorequire:
16
12
  bindir: bin
17
13
  cert_chain: []
18
-
19
- date: 2011-09-23 00:00:00 -03:00
20
- default_executable:
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
14
+ date: 2012-02-23 00:00:00.000000000 Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
23
17
  name: activemodel
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirement: &70196111502700 !ruby/object:Gem::Requirement
26
19
  none: false
27
- requirements:
20
+ requirements:
28
21
  - - ~>
29
- - !ruby/object:Gem::Version
30
- hash: 7
31
- segments:
32
- - 3
33
- - 0
34
- version: "3.0"
22
+ - !ruby/object:Gem::Version
23
+ version: '3.0'
35
24
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: actionpack
39
25
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
26
+ version_requirements: *70196111502700
27
+ - !ruby/object:Gem::Dependency
28
+ name: actionpack
29
+ requirement: &70196111500600 !ruby/object:Gem::Requirement
41
30
  none: false
42
- requirements:
31
+ requirements:
43
32
  - - ~>
44
- - !ruby/object:Gem::Version
45
- hash: 7
46
- segments:
47
- - 3
48
- - 0
49
- version: "3.0"
33
+ - !ruby/object:Gem::Version
34
+ version: '3.0'
50
35
  type: :runtime
51
- version_requirements: *id002
36
+ prerelease: false
37
+ version_requirements: *70196111500600
52
38
  description: Forms made easy!
53
39
  email: contact@plataformatec.com.br
54
40
  executables: []
55
-
56
41
  extensions: []
57
-
58
42
  extra_rdoc_files: []
59
-
60
- files:
61
- - .gitignore
62
- - .gitmodules
63
- - .travis.yml
64
- - CHANGELOG.rdoc
65
- - Gemfile
43
+ files:
44
+ - CHANGELOG.md
66
45
  - MIT-LICENSE
67
- - README.rdoc
68
- - Rakefile
69
- - lib/generators/simple_form/USAGE
46
+ - README.md
70
47
  - lib/generators/simple_form/install_generator.rb
71
48
  - lib/generators/simple_form/templates/_form.html.erb
72
49
  - lib/generators/simple_form/templates/_form.html.haml
73
50
  - lib/generators/simple_form/templates/_form.html.slim
74
- - lib/generators/simple_form/templates/config/initializers/simple_form.rb
51
+ - lib/generators/simple_form/templates/config/initializers/simple_form.rb.tt
75
52
  - lib/generators/simple_form/templates/config/locales/simple_form.en.yml
76
- - lib/simple_form.rb
53
+ - lib/generators/simple_form/templates/README
54
+ - lib/generators/simple_form/USAGE
77
55
  - lib/simple_form/action_view_extensions/builder.rb
78
56
  - lib/simple_form/action_view_extensions/form_helper.rb
79
- - lib/simple_form/components.rb
80
57
  - lib/simple_form/components/errors.rb
81
58
  - lib/simple_form/components/hints.rb
59
+ - lib/simple_form/components/html5.rb
82
60
  - lib/simple_form/components/label_input.rb
83
61
  - lib/simple_form/components/labels.rb
62
+ - lib/simple_form/components/maxlength.rb
63
+ - lib/simple_form/components/min_max.rb
64
+ - lib/simple_form/components/pattern.rb
84
65
  - lib/simple_form/components/placeholders.rb
85
- - lib/simple_form/components/wrapper.rb
66
+ - lib/simple_form/components/readonly.rb
67
+ - lib/simple_form/components.rb
68
+ - lib/simple_form/core_ext/hash.rb
86
69
  - lib/simple_form/error_notification.rb
87
70
  - lib/simple_form/form_builder.rb
88
- - lib/simple_form/helpers.rb
89
- - lib/simple_form/helpers/has_errors.rb
90
- - lib/simple_form/helpers/maxlength.rb
91
- - lib/simple_form/helpers/pattern.rb
71
+ - lib/simple_form/helpers/autofocus.rb
72
+ - lib/simple_form/helpers/disabled.rb
73
+ - lib/simple_form/helpers/readonly.rb
92
74
  - lib/simple_form/helpers/required.rb
93
75
  - lib/simple_form/helpers/validators.rb
76
+ - lib/simple_form/helpers.rb
94
77
  - lib/simple_form/i18n_cache.rb
95
- - lib/simple_form/inputs.rb
96
78
  - lib/simple_form/inputs/base.rb
97
79
  - lib/simple_form/inputs/block_input.rb
98
80
  - lib/simple_form/inputs/boolean_input.rb
81
+ - lib/simple_form/inputs/collection_check_boxes_input.rb
99
82
  - lib/simple_form/inputs/collection_input.rb
83
+ - lib/simple_form/inputs/collection_radio_buttons_input.rb
84
+ - lib/simple_form/inputs/collection_select_input.rb
100
85
  - lib/simple_form/inputs/date_time_input.rb
101
86
  - lib/simple_form/inputs/file_input.rb
87
+ - lib/simple_form/inputs/grouped_collection_select_input.rb
102
88
  - lib/simple_form/inputs/hidden_input.rb
103
89
  - lib/simple_form/inputs/numeric_input.rb
104
90
  - lib/simple_form/inputs/password_input.rb
@@ -106,73 +92,115 @@ files:
106
92
  - lib/simple_form/inputs/range_input.rb
107
93
  - lib/simple_form/inputs/string_input.rb
108
94
  - lib/simple_form/inputs/text_input.rb
95
+ - lib/simple_form/inputs.rb
109
96
  - lib/simple_form/map_type.rb
110
97
  - lib/simple_form/version.rb
111
- - simple_form.gemspec
98
+ - lib/simple_form/wrappers/builder.rb
99
+ - lib/simple_form/wrappers/many.rb
100
+ - lib/simple_form/wrappers/root.rb
101
+ - lib/simple_form/wrappers/single.rb
102
+ - lib/simple_form/wrappers.rb
103
+ - lib/simple_form.rb
112
104
  - test/action_view_extensions/builder_test.rb
113
105
  - test/action_view_extensions/form_helper_test.rb
114
- - test/components/error_test.rb
115
- - test/components/hint_test.rb
116
106
  - test/components/label_test.rb
117
- - test/components/wrapper_test.rb
118
- - test/custom_components.rb
119
- - test/discovery_inputs.rb
120
- - test/error_notification_test.rb
121
- - test/form_builder_test.rb
122
- - test/inputs_test.rb
107
+ - test/form_builder/association_test.rb
108
+ - test/form_builder/button_test.rb
109
+ - test/form_builder/error_notification_test.rb
110
+ - test/form_builder/error_test.rb
111
+ - test/form_builder/general_test.rb
112
+ - test/form_builder/hint_test.rb
113
+ - test/form_builder/input_field_test.rb
114
+ - test/form_builder/label_test.rb
115
+ - test/form_builder/wrapper_test.rb
116
+ - test/generators/simple_form_generator_test.rb
117
+ - test/inputs/boolean_input_test.rb
118
+ - test/inputs/collection_check_boxes_input_test.rb
119
+ - test/inputs/collection_radio_buttons_input_test.rb
120
+ - test/inputs/collection_select_input_test.rb
121
+ - test/inputs/datetime_input_test.rb
122
+ - test/inputs/disabled_test.rb
123
+ - test/inputs/discovery_test.rb
124
+ - test/inputs/file_input_test.rb
125
+ - test/inputs/general_test.rb
126
+ - test/inputs/grouped_collection_select_input_test.rb
127
+ - test/inputs/hidden_input_test.rb
128
+ - test/inputs/numeric_input_test.rb
129
+ - test/inputs/priority_input_test.rb
130
+ - test/inputs/readonly_test.rb
131
+ - test/inputs/required_test.rb
132
+ - test/inputs/string_input_test.rb
133
+ - test/inputs/text_input_test.rb
123
134
  - test/simple_form_test.rb
135
+ - test/support/discovery_inputs.rb
124
136
  - test/support/misc_helpers.rb
125
137
  - test/support/mock_controller.rb
126
138
  - test/support/mock_response.rb
127
139
  - test/support/models.rb
128
140
  - test/test_helper.rb
129
- has_rdoc: true
130
141
  homepage: http://github.com/plataformatec/simple_form
131
142
  licenses: []
132
-
133
143
  post_install_message:
134
144
  rdoc_options: []
135
-
136
- require_paths:
145
+ require_paths:
137
146
  - lib
138
- required_ruby_version: !ruby/object:Gem::Requirement
147
+ required_ruby_version: !ruby/object:Gem::Requirement
139
148
  none: false
140
- requirements:
141
- - - ">="
142
- - !ruby/object:Gem::Version
143
- hash: 3
144
- segments:
149
+ requirements:
150
+ - - ! '>='
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ segments:
145
154
  - 0
146
- version: "0"
147
- required_rubygems_version: !ruby/object:Gem::Requirement
155
+ hash: 284620577294605378
156
+ required_rubygems_version: !ruby/object:Gem::Requirement
148
157
  none: false
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- hash: 3
153
- segments:
158
+ requirements:
159
+ - - ! '>='
160
+ - !ruby/object:Gem::Version
161
+ version: '0'
162
+ segments:
154
163
  - 0
155
- version: "0"
164
+ hash: 284620577294605378
156
165
  requirements: []
157
-
158
166
  rubyforge_project: simple_form
159
- rubygems_version: 1.6.2
167
+ rubygems_version: 1.8.11
160
168
  signing_key:
161
169
  specification_version: 3
162
170
  summary: Forms made easy!
163
- test_files:
171
+ test_files:
164
172
  - test/action_view_extensions/builder_test.rb
165
173
  - test/action_view_extensions/form_helper_test.rb
166
- - test/components/error_test.rb
167
- - test/components/hint_test.rb
168
174
  - test/components/label_test.rb
169
- - test/components/wrapper_test.rb
170
- - test/custom_components.rb
171
- - test/discovery_inputs.rb
172
- - test/error_notification_test.rb
173
- - test/form_builder_test.rb
174
- - test/inputs_test.rb
175
+ - test/form_builder/association_test.rb
176
+ - test/form_builder/button_test.rb
177
+ - test/form_builder/error_notification_test.rb
178
+ - test/form_builder/error_test.rb
179
+ - test/form_builder/general_test.rb
180
+ - test/form_builder/hint_test.rb
181
+ - test/form_builder/input_field_test.rb
182
+ - test/form_builder/label_test.rb
183
+ - test/form_builder/wrapper_test.rb
184
+ - test/generators/simple_form_generator_test.rb
185
+ - test/inputs/boolean_input_test.rb
186
+ - test/inputs/collection_check_boxes_input_test.rb
187
+ - test/inputs/collection_radio_buttons_input_test.rb
188
+ - test/inputs/collection_select_input_test.rb
189
+ - test/inputs/datetime_input_test.rb
190
+ - test/inputs/disabled_test.rb
191
+ - test/inputs/discovery_test.rb
192
+ - test/inputs/file_input_test.rb
193
+ - test/inputs/general_test.rb
194
+ - test/inputs/grouped_collection_select_input_test.rb
195
+ - test/inputs/hidden_input_test.rb
196
+ - test/inputs/numeric_input_test.rb
197
+ - test/inputs/priority_input_test.rb
198
+ - test/inputs/readonly_test.rb
199
+ - test/inputs/required_test.rb
200
+ - test/inputs/string_input_test.rb
201
+ - test/inputs/text_input_test.rb
175
202
  - test/simple_form_test.rb
203
+ - test/support/discovery_inputs.rb
176
204
  - test/support/misc_helpers.rb
177
205
  - test/support/mock_controller.rb
178
206
  - test/support/mock_response.rb
data/.gitignore DELETED
@@ -1,3 +0,0 @@
1
- .bundle/
2
- pkg/
3
- Gemfile.lock
data/.gitmodules DELETED
@@ -1,3 +0,0 @@
1
- [submodule "test/support/country_select"]
2
- path = test/support/country_select
3
- url = git://github.com/rails/country_select
data/.travis.yml DELETED
@@ -1,15 +0,0 @@
1
- script: "git submodule update --init && bundle exec rake test"
2
- rvm:
3
- - 1.8.7
4
- - 1.9.2
5
- - 1.9.3
6
- - ruby-head
7
- - ree
8
- - jruby
9
- - rbx
10
- - rbx-2.0
11
- notifications:
12
- recipients:
13
- - jose.valim@plataformatec.com.br
14
- - carlos@plataformatec.com.br
15
- - rafael.franca@plataformatec.com.br
data/CHANGELOG.rdoc DELETED
@@ -1,159 +0,0 @@
1
- == 1.5.2
2
-
3
- * bug fix
4
- * Remove the internal usage of deprecated `:components`
5
-
6
- == 1.5.1
7
-
8
- * enhancements
9
- * `:components` options is now deprecated
10
-
11
- * bug fix
12
- * Fallback to default label when block is provided (github.com/pivotal-casebook)
13
- * Do not override default selection through attribute value in collection select when label/value methods are lambdas
14
-
15
- == 1.5.0
16
-
17
- * enhancements
18
- * Simplified generator by using directory action (by github.com/rupert654)
19
- * Support for `maxlength` on string inputs inferred from validation (by github.com/srbartlett)
20
- * Change form css class handling to only add the dom class when one is not given to the form call (by github.com/patrick99e99)
21
- * Support for required attributes when action validations are present (by github.com/csegura)
22
- * Don't generate `size` attribute for numeric input (by github.com/jasonmp85)
23
- * Support for `maxlength` on text area inputs inferred from validation
24
- * Support for `pattern` on text field inferred from validation when :pattern is true
25
- * Break Text, Password and File into their own inputs
26
- * Support easy enabling and disabling of components for specific inputs
27
- * Add HTML5 range input
28
-
29
- * bug fix
30
- * Fix bug when simple_fields_for is used with a hash like models and Rails 3.1
31
- * Fix bug that doesn't remove the item_wrapper_tag or the collection_wrapper_tag on collection inputs when nil or false value is passed to these options (by gitbub.com/dw2)
32
- * Fix bug that disable the entire select and wrapper when `disabled` option is a string or array
33
- * Fix bug when using label/value methods as procs together with disabled/selected options as procs for select inputs
34
-
35
- == 1.4.2
36
-
37
- * enhancements
38
- * Rails 3.1 support
39
-
40
- == 1.4.1
41
-
42
- * enhancements
43
- * ignore required attribute when conditional validations are present
44
-
45
- * bug fix
46
- * Do not use required='required' when browser validations are turned off
47
- * Sanitize HMTL attributes in error and hint helpers when options are present
48
- * Improve i18n lookup by ignoring explicit child index given to form builder (tests by github.com/rywall)
49
- * Fixes the form specific validation option if specified on the form itself (by github.com/medihack)
50
-
51
- == 1.4.0
52
-
53
- * enhancements
54
- * Add label class configuration option (by github.com/reu)
55
- * Improve i18n lookup (labels/hints/placeholders) for nested models
56
- * Use the given custom builder with simple_fields_for (by github.com/giniedp)
57
- * Add slim form generator (by github.com/fagiani)
58
- * Add form_class configuration option (by github.com/fagiani)
59
- * Default step of "any" for number input with non integer attributes (by github.com/fedesoria)
60
- * Add option to disable HTML5 browser validations on all forms (by github.com/coryschires)
61
- * Add option to disable all HTML5 extensions (by github.com/wolframarnold)
62
- * Add input_field helper to form builder (by github.com/jeroenhouben)
63
- * Allow inputs to be discovered on demand by placing them at app/inputs (a la formtastic)
64
- * Add full_error on that shows the error with the attribute name
65
-
66
- * bug fix
67
- * Fix for file attributes automatic detection, to work with virtual attributes
68
- * Fix for numeric fields validation options using symbols and procs
69
- * Fix password attributes to add size and maxlength options the same way as string (by github.com/fedesoria)
70
- * Fix bug with custom form builders and new mappings being added to the superclass builder (by github.com/rdvdijk)
71
- * Fix HTML validation issue with collection_check_boxes
72
-
73
- == 1.3.1
74
-
75
- * enhancements
76
- * Add :autofocus HTML5 attribute support (by github.com/jpzwarte)
77
- * Add possibility to specify custom builder and inherit mappings (by github.com/rejeep)
78
- * Make custom mappings work with all attributes types (by github.com/rafaelfranca)
79
- * Add support for procs/lambdas in text/value methods for collection_select
80
-
81
- * deprecation
82
- * removed the deprecated :remote_form_for
83
-
84
- * bug fix
85
- * Only add the "required" HTML 5 attribute for valid inputs, disable in selects (not allowed)
86
- * Fix error when using hints without an attribute (by github.com/butsjoh and github.com/rafaelfranca)
87
- * Fix messy html output for hint, error and label components (by github.com/butsjoh and github.com/rafaelfranca)
88
- * Allow direct setting of for attribute on label (by github.com/Bertg)
89
-
90
- == 1.3.0
91
-
92
- * enhancements
93
- * Allow collection input to accept a collection of symbols
94
- * Add default css class to button
95
- * Allow forms for objects that don't respond to the "errors" method
96
- * collection_check_boxes and collection_radio now wrap the input in the label
97
- * Automatic add min/max values for numeric attributes based on validations and step for integers - HTML5 (by github.com/dasch)
98
- * Add :placeholder option for string inputs, allowing customization through I18n - HTML5 (by github.com/jonathan)
99
- * Add :search and :tel input types, with :tel mapping automatically from attributes matching "phone" - HTML5
100
- * Add :required html attribute for required inputs - HTML5
101
- * Add optional :components option to input to control component rendering (by github.com/khoan)
102
- * Add SimpleForm.translate as an easy way to turn off SimpleForm internal translations
103
- * Add :disabled option for all inputs (by github.com/fabiob)
104
- * Add collection wrapper tag and item wrapper tag to wrap elements in collection helpers - radio / check boxes
105
- * Add SimpleForm.input_mappings to allow configuring custom mappings for inputs (by github.com/TMaYaD)
106
-
107
- * bug fix
108
- * Search for validations on both association and attribute
109
- * Use controller.action_name to lookup action only when available, to fix issue with Rspec views tests (by github.com/rafaelfranca)
110
-
111
- == 1.2.2
112
-
113
- * enhancements
114
- * Compatibility with Rails 3 RC
115
-
116
- == 1.2.1
117
-
118
- * enhancements
119
- * Added haml generator support (by github.com/grimen)
120
- * Added error_notification message to form builder
121
- * Added required by default as configuration option
122
- * Added label_input as component, allowing boolean to change its order (input appearing first than label)
123
- * Added error_method to tidy up how errors are exhibited
124
- * Added error class on wrappers (by github.com/jduff)
125
- * Changed numeric types to have type=number for HTML5
126
-
127
- == 1.2.0
128
-
129
- * deprecation
130
- * Changed simple_form_install generator to simple_form:install
131
-
132
- * enhancements
133
- * Added support to presence validation to check if attribute is required or not (by github.com/gcirne)
134
- * Added .input as class to wrapper tag
135
- * Added config options for hint and error tags (by github.com/tjogin)
136
-
137
- == 1.1.3
138
-
139
- * deprecation
140
- * removed :conditions, :order, :joins and :include support in f.association
141
-
142
- == 1.1.2
143
-
144
- * bug fix
145
- * Ensure type is set to "text" and not "string"
146
-
147
- == 1.1.1
148
-
149
- * bug fix
150
- * Fix some escaping issues
151
-
152
- == 1.1.0
153
-
154
- * enhancements
155
- * Rails 3 support with generators, templates and HTML 5
156
-
157
- == 1.0
158
-
159
- * First release
data/Gemfile DELETED
@@ -1,9 +0,0 @@
1
- source "http://rubygems.org"
2
-
3
- gemspec
4
-
5
- gem "rake", '0.9.3.beta1'
6
- gem "rdoc"
7
- gem "mocha"
8
- gem "tzinfo"
9
- gem "ruby-debug", :platform => :mri_18