simple_form 4.0.1 → 5.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +61 -8
- data/MIT-LICENSE +2 -1
- data/README.md +43 -52
- data/lib/generators/simple_form/templates/README +2 -3
- data/lib/generators/simple_form/templates/config/initializers/simple_form.rb +1 -7
- data/lib/generators/simple_form/templates/config/initializers/simple_form_bootstrap.rb +26 -25
- data/lib/generators/simple_form/templates/config/initializers/simple_form_foundation.rb +1 -1
- data/lib/simple_form.rb +22 -5
- data/lib/simple_form/components/errors.rb +5 -1
- data/lib/simple_form/form_builder.rb +30 -10
- data/lib/simple_form/inputs.rb +2 -0
- data/lib/simple_form/inputs/base.rb +4 -1
- data/lib/simple_form/inputs/boolean_input.rb +1 -0
- data/lib/simple_form/inputs/collection_check_boxes_input.rb +1 -1
- data/lib/simple_form/inputs/collection_input.rb +1 -1
- data/lib/simple_form/inputs/color_input.rb +14 -0
- data/lib/simple_form/inputs/priority_input.rb +0 -4
- data/lib/simple_form/inputs/rich_text_area_input.rb +12 -0
- data/lib/simple_form/inputs/string_input.rb +1 -1
- data/lib/simple_form/tags.rb +6 -2
- data/lib/simple_form/version.rb +1 -1
- data/lib/simple_form/wrappers/root.rb +8 -3
- data/test/action_view_extensions/builder_test.rb +22 -4
- data/test/form_builder/association_test.rb +6 -0
- data/test/form_builder/error_test.rb +6 -0
- data/test/form_builder/general_test.rb +23 -19
- data/test/form_builder/input_field_test.rb +3 -9
- data/test/form_builder/label_test.rb +1 -1
- data/test/form_builder/wrapper_test.rb +8 -1
- data/test/inputs/boolean_input_test.rb +8 -0
- data/test/inputs/collection_check_boxes_input_test.rb +8 -0
- data/test/inputs/collection_radio_buttons_input_test.rb +8 -0
- data/test/inputs/collection_select_input_test.rb +6 -0
- data/test/inputs/color_input_test.rb +10 -0
- data/test/inputs/datetime_input_test.rb +2 -12
- data/test/inputs/disabled_test.rb +13 -0
- data/test/inputs/discovery_test.rb +21 -0
- data/test/inputs/priority_input_test.rb +6 -14
- data/test/inputs/rich_text_area_input_test.rb +15 -0
- data/test/inputs/string_input_test.rb +8 -15
- data/test/support/discovery_inputs.rb +7 -0
- data/test/support/misc_helpers.rb +8 -2
- data/test/support/models.rb +29 -6
- data/test/test_helper.rb +7 -4
- metadata +40 -35
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_form
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- José Valim
|
8
8
|
- Carlos Antônio
|
9
9
|
- Rafael França
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2020-09-30 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activemodel
|
@@ -41,7 +41,7 @@ dependencies:
|
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: '5.0'
|
43
43
|
description: Forms made easy!
|
44
|
-
email:
|
44
|
+
email: heartcombo@googlegroups.com
|
45
45
|
executables: []
|
46
46
|
extensions: []
|
47
47
|
extra_rdoc_files: []
|
@@ -91,6 +91,7 @@ files:
|
|
91
91
|
- lib/simple_form/inputs/collection_input.rb
|
92
92
|
- lib/simple_form/inputs/collection_radio_buttons_input.rb
|
93
93
|
- lib/simple_form/inputs/collection_select_input.rb
|
94
|
+
- lib/simple_form/inputs/color_input.rb
|
94
95
|
- lib/simple_form/inputs/date_time_input.rb
|
95
96
|
- lib/simple_form/inputs/file_input.rb
|
96
97
|
- lib/simple_form/inputs/grouped_collection_select_input.rb
|
@@ -99,6 +100,7 @@ files:
|
|
99
100
|
- lib/simple_form/inputs/password_input.rb
|
100
101
|
- lib/simple_form/inputs/priority_input.rb
|
101
102
|
- lib/simple_form/inputs/range_input.rb
|
103
|
+
- lib/simple_form/inputs/rich_text_area_input.rb
|
102
104
|
- lib/simple_form/inputs/string_input.rb
|
103
105
|
- lib/simple_form/inputs/text_input.rb
|
104
106
|
- lib/simple_form/map_type.rb
|
@@ -129,6 +131,7 @@ files:
|
|
129
131
|
- test/inputs/collection_check_boxes_input_test.rb
|
130
132
|
- test/inputs/collection_radio_buttons_input_test.rb
|
131
133
|
- test/inputs/collection_select_input_test.rb
|
134
|
+
- test/inputs/color_input_test.rb
|
132
135
|
- test/inputs/datetime_input_test.rb
|
133
136
|
- test/inputs/disabled_test.rb
|
134
137
|
- test/inputs/discovery_test.rb
|
@@ -140,6 +143,7 @@ files:
|
|
140
143
|
- test/inputs/priority_input_test.rb
|
141
144
|
- test/inputs/readonly_test.rb
|
142
145
|
- test/inputs/required_test.rb
|
146
|
+
- test/inputs/rich_text_area_input_test.rb
|
143
147
|
- test/inputs/string_input_test.rb
|
144
148
|
- test/inputs/text_input_test.rb
|
145
149
|
- test/simple_form_test.rb
|
@@ -148,11 +152,11 @@ files:
|
|
148
152
|
- test/support/mock_controller.rb
|
149
153
|
- test/support/models.rb
|
150
154
|
- test/test_helper.rb
|
151
|
-
homepage: https://github.com/
|
155
|
+
homepage: https://github.com/heartcombo/simple_form
|
152
156
|
licenses:
|
153
157
|
- MIT
|
154
158
|
metadata: {}
|
155
|
-
post_install_message:
|
159
|
+
post_install_message:
|
156
160
|
rdoc_options: []
|
157
161
|
require_paths:
|
158
162
|
- lib
|
@@ -160,53 +164,54 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
160
164
|
requirements:
|
161
165
|
- - ">="
|
162
166
|
- !ruby/object:Gem::Version
|
163
|
-
version:
|
167
|
+
version: 2.3.0
|
164
168
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
165
169
|
requirements:
|
166
170
|
- - ">="
|
167
171
|
- !ruby/object:Gem::Version
|
168
172
|
version: '0'
|
169
173
|
requirements: []
|
170
|
-
|
171
|
-
|
172
|
-
signing_key:
|
174
|
+
rubygems_version: 3.1.2
|
175
|
+
signing_key:
|
173
176
|
specification_version: 4
|
174
177
|
summary: Forms made easy!
|
175
178
|
test_files:
|
176
|
-
- test/action_view_extensions/builder_test.rb
|
177
|
-
- test/action_view_extensions/form_helper_test.rb
|
178
|
-
- test/components/custom_components_test.rb
|
179
179
|
- test/components/label_test.rb
|
180
|
-
- test/
|
181
|
-
- test/
|
182
|
-
- test/
|
180
|
+
- test/components/custom_components_test.rb
|
181
|
+
- test/support/discovery_inputs.rb
|
182
|
+
- test/support/misc_helpers.rb
|
183
|
+
- test/support/mock_controller.rb
|
184
|
+
- test/support/models.rb
|
185
|
+
- test/test_helper.rb
|
183
186
|
- test/form_builder/error_test.rb
|
184
|
-
- test/form_builder/general_test.rb
|
185
187
|
- test/form_builder/hint_test.rb
|
188
|
+
- test/form_builder/error_notification_test.rb
|
189
|
+
- test/form_builder/general_test.rb
|
190
|
+
- test/form_builder/button_test.rb
|
186
191
|
- test/form_builder/input_field_test.rb
|
187
192
|
- test/form_builder/label_test.rb
|
188
193
|
- test/form_builder/wrapper_test.rb
|
194
|
+
- test/form_builder/association_test.rb
|
189
195
|
- test/generators/simple_form_generator_test.rb
|
190
|
-
- test/
|
196
|
+
- test/action_view_extensions/builder_test.rb
|
197
|
+
- test/action_view_extensions/form_helper_test.rb
|
198
|
+
- test/simple_form_test.rb
|
199
|
+
- test/inputs/string_input_test.rb
|
200
|
+
- test/inputs/numeric_input_test.rb
|
201
|
+
- test/inputs/rich_text_area_input_test.rb
|
202
|
+
- test/inputs/readonly_test.rb
|
203
|
+
- test/inputs/grouped_collection_select_input_test.rb
|
204
|
+
- test/inputs/text_input_test.rb
|
191
205
|
- test/inputs/collection_check_boxes_input_test.rb
|
192
|
-
- test/inputs/
|
193
|
-
- test/inputs/collection_select_input_test.rb
|
194
|
-
- test/inputs/datetime_input_test.rb
|
206
|
+
- test/inputs/boolean_input_test.rb
|
195
207
|
- test/inputs/disabled_test.rb
|
196
208
|
- test/inputs/discovery_test.rb
|
197
|
-
- test/inputs/
|
209
|
+
- test/inputs/collection_select_input_test.rb
|
198
210
|
- test/inputs/general_test.rb
|
199
|
-
- test/inputs/
|
200
|
-
- test/inputs/hidden_input_test.rb
|
201
|
-
- test/inputs/numeric_input_test.rb
|
202
|
-
- test/inputs/priority_input_test.rb
|
203
|
-
- test/inputs/readonly_test.rb
|
211
|
+
- test/inputs/color_input_test.rb
|
204
212
|
- test/inputs/required_test.rb
|
205
|
-
- test/inputs/
|
206
|
-
- test/inputs/
|
207
|
-
- test/
|
208
|
-
- test/
|
209
|
-
- test/
|
210
|
-
- test/support/mock_controller.rb
|
211
|
-
- test/support/models.rb
|
212
|
-
- test/test_helper.rb
|
213
|
+
- test/inputs/collection_radio_buttons_input_test.rb
|
214
|
+
- test/inputs/priority_input_test.rb
|
215
|
+
- test/inputs/hidden_input_test.rb
|
216
|
+
- test/inputs/file_input_test.rb
|
217
|
+
- test/inputs/datetime_input_test.rb
|