simple_form_awesome 2.2.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.
- data/CHANGELOG.md +327 -0
- data/MIT-LICENSE +20 -0
- data/README.md +25 -0
- data/lib/generators/simple_form/USAGE +3 -0
- data/lib/generators/simple_form/install_generator.rb +48 -0
- data/lib/generators/simple_form/templates/AUI_README +19 -0
- data/lib/generators/simple_form/templates/README +12 -0
- data/lib/generators/simple_form/templates/_form.html.erb +13 -0
- data/lib/generators/simple_form/templates/_form.html.haml +10 -0
- data/lib/generators/simple_form/templates/_form.html.slim +10 -0
- data/lib/generators/simple_form/templates/config/initializers/simple_form.rb +142 -0
- data/lib/generators/simple_form/templates/config/initializers/simple_form_aui.rb +21 -0
- data/lib/generators/simple_form/templates/config/initializers/simple_form_bootstrap.rb +45 -0
- data/lib/generators/simple_form/templates/config/initializers/simple_form_foundation.rb +26 -0
- data/lib/generators/simple_form/templates/config/locales/simple_form.en.yml +26 -0
- data/lib/simple_form/action_view_extensions/builder.rb +340 -0
- data/lib/simple_form/action_view_extensions/form_helper.rb +72 -0
- data/lib/simple_form/components/errors.rb +35 -0
- data/lib/simple_form/components/hints.rb +18 -0
- data/lib/simple_form/components/html5.rb +26 -0
- data/lib/simple_form/components/label_input.rb +15 -0
- data/lib/simple_form/components/labels.rb +79 -0
- data/lib/simple_form/components/maxlength.rb +41 -0
- data/lib/simple_form/components/min_max.rb +50 -0
- data/lib/simple_form/components/pattern.rb +34 -0
- data/lib/simple_form/components/placeholders.rb +16 -0
- data/lib/simple_form/components/readonly.rb +22 -0
- data/lib/simple_form/components.rb +20 -0
- data/lib/simple_form/core_ext/hash.rb +16 -0
- data/lib/simple_form/error_notification.rb +48 -0
- data/lib/simple_form/form_builder.rb +482 -0
- data/lib/simple_form/helpers/autofocus.rb +11 -0
- data/lib/simple_form/helpers/disabled.rb +15 -0
- data/lib/simple_form/helpers/readonly.rb +15 -0
- data/lib/simple_form/helpers/required.rb +35 -0
- data/lib/simple_form/helpers/validators.rb +44 -0
- data/lib/simple_form/helpers.rb +12 -0
- data/lib/simple_form/i18n_cache.rb +22 -0
- data/lib/simple_form/inputs/aui_string_input.rb +10 -0
- data/lib/simple_form/inputs/base.rb +184 -0
- data/lib/simple_form/inputs/block_input.rb +14 -0
- data/lib/simple_form/inputs/boolean_input.rb +78 -0
- data/lib/simple_form/inputs/collection_check_boxes_input.rb +21 -0
- data/lib/simple_form/inputs/collection_input.rb +101 -0
- data/lib/simple_form/inputs/collection_radio_buttons_input.rb +63 -0
- data/lib/simple_form/inputs/collection_select_input.rb +14 -0
- data/lib/simple_form/inputs/date_time_input.rb +28 -0
- data/lib/simple_form/inputs/file_input.rb +9 -0
- data/lib/simple_form/inputs/grouped_collection_select_input.rb +41 -0
- data/lib/simple_form/inputs/hidden_input.rb +17 -0
- data/lib/simple_form/inputs/numeric_input.rb +24 -0
- data/lib/simple_form/inputs/password_input.rb +12 -0
- data/lib/simple_form/inputs/priority_input.rb +24 -0
- data/lib/simple_form/inputs/range_input.rb +14 -0
- data/lib/simple_form/inputs/string_input.rb +23 -0
- data/lib/simple_form/inputs/text_area_input.rb +12 -0
- data/lib/simple_form/inputs/text_input.rb +11 -0
- data/lib/simple_form/inputs.rb +23 -0
- data/lib/simple_form/map_type.rb +16 -0
- data/lib/simple_form/version.rb +3 -0
- data/lib/simple_form/wrappers/builder.rb +103 -0
- data/lib/simple_form/wrappers/many.rb +73 -0
- data/lib/simple_form/wrappers/root.rb +36 -0
- data/lib/simple_form/wrappers/single.rb +24 -0
- data/lib/simple_form/wrappers.rb +8 -0
- data/lib/simple_form.rb +221 -0
- data/test/action_view_extensions/builder_test.rb +583 -0
- data/test/action_view_extensions/form_helper_test.rb +143 -0
- data/test/components/label_test.rb +327 -0
- data/test/form_builder/association_test.rb +186 -0
- data/test/form_builder/button_test.rb +47 -0
- data/test/form_builder/error_notification_test.rb +79 -0
- data/test/form_builder/error_test.rb +121 -0
- data/test/form_builder/general_test.rb +402 -0
- data/test/form_builder/hint_test.rb +138 -0
- data/test/form_builder/input_field_test.rb +63 -0
- data/test/form_builder/label_test.rb +71 -0
- data/test/form_builder/wrapper_test.rb +203 -0
- data/test/generators/simple_form_generator_test.rb +42 -0
- data/test/inputs/boolean_input_test.rb +140 -0
- data/test/inputs/collection_check_boxes_input_test.rb +224 -0
- data/test/inputs/collection_radio_buttons_input_test.rb +326 -0
- data/test/inputs/collection_select_input_test.rb +241 -0
- data/test/inputs/datetime_input_test.rb +99 -0
- data/test/inputs/disabled_test.rb +78 -0
- data/test/inputs/discovery_test.rb +69 -0
- data/test/inputs/file_input_test.rb +16 -0
- data/test/inputs/general_test.rb +116 -0
- data/test/inputs/grouped_collection_select_input_test.rb +118 -0
- data/test/inputs/hidden_input_test.rb +30 -0
- data/test/inputs/numeric_input_test.rb +173 -0
- data/test/inputs/priority_input_test.rb +43 -0
- data/test/inputs/readonly_test.rb +101 -0
- data/test/inputs/required_test.rb +113 -0
- data/test/inputs/string_input_test.rb +146 -0
- data/test/inputs/text_input_test.rb +24 -0
- data/test/simple_form_test.rb +9 -0
- data/test/support/discovery_inputs.rb +27 -0
- data/test/support/misc_helpers.rb +138 -0
- data/test/support/mock_controller.rb +24 -0
- data/test/support/models.rb +216 -0
- data/test/test_helper.rb +95 -0
- metadata +217 -0
metadata
ADDED
@@ -0,0 +1,217 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: simple_form_awesome
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.2.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- José Valim
|
9
|
+
- Carlos Antônio
|
10
|
+
- Rafael França
|
11
|
+
- Jun wang
|
12
|
+
autorequire:
|
13
|
+
bindir: bin
|
14
|
+
cert_chain: []
|
15
|
+
date: 2013-05-31 00:00:00.000000000 Z
|
16
|
+
dependencies:
|
17
|
+
- !ruby/object:Gem::Dependency
|
18
|
+
name: activemodel
|
19
|
+
requirement: !ruby/object:Gem::Requirement
|
20
|
+
none: false
|
21
|
+
requirements:
|
22
|
+
- - ~>
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: '3.0'
|
25
|
+
type: :runtime
|
26
|
+
prerelease: false
|
27
|
+
version_requirements: !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '3.0'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: actionpack
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
none: false
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.0'
|
41
|
+
type: :runtime
|
42
|
+
prerelease: false
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
|
+
none: false
|
45
|
+
requirements:
|
46
|
+
- - ~>
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '3.0'
|
49
|
+
description: Forms made easy!
|
50
|
+
email: elexjun@gmail.com
|
51
|
+
executables: []
|
52
|
+
extensions: []
|
53
|
+
extra_rdoc_files: []
|
54
|
+
files:
|
55
|
+
- CHANGELOG.md
|
56
|
+
- MIT-LICENSE
|
57
|
+
- README.md
|
58
|
+
- lib/generators/simple_form/USAGE
|
59
|
+
- lib/generators/simple_form/templates/_form.html.haml
|
60
|
+
- lib/generators/simple_form/templates/_form.html.slim
|
61
|
+
- lib/generators/simple_form/templates/config/locales/simple_form.en.yml
|
62
|
+
- lib/generators/simple_form/templates/config/initializers/simple_form_foundation.rb
|
63
|
+
- lib/generators/simple_form/templates/config/initializers/simple_form_bootstrap.rb
|
64
|
+
- lib/generators/simple_form/templates/config/initializers/simple_form.rb
|
65
|
+
- lib/generators/simple_form/templates/config/initializers/simple_form_aui.rb
|
66
|
+
- lib/generators/simple_form/templates/AUI_README
|
67
|
+
- lib/generators/simple_form/templates/_form.html.erb
|
68
|
+
- lib/generators/simple_form/templates/README
|
69
|
+
- lib/generators/simple_form/install_generator.rb
|
70
|
+
- lib/simple_form/inputs/hidden_input.rb
|
71
|
+
- lib/simple_form/inputs/file_input.rb
|
72
|
+
- lib/simple_form/inputs/collection_select_input.rb
|
73
|
+
- lib/simple_form/inputs/priority_input.rb
|
74
|
+
- lib/simple_form/inputs/date_time_input.rb
|
75
|
+
- lib/simple_form/inputs/string_input.rb
|
76
|
+
- lib/simple_form/inputs/block_input.rb
|
77
|
+
- lib/simple_form/inputs/collection_check_boxes_input.rb
|
78
|
+
- lib/simple_form/inputs/text_area_input.rb
|
79
|
+
- lib/simple_form/inputs/password_input.rb
|
80
|
+
- lib/simple_form/inputs/aui_string_input.rb
|
81
|
+
- lib/simple_form/inputs/text_input.rb
|
82
|
+
- lib/simple_form/inputs/numeric_input.rb
|
83
|
+
- lib/simple_form/inputs/range_input.rb
|
84
|
+
- lib/simple_form/inputs/grouped_collection_select_input.rb
|
85
|
+
- lib/simple_form/inputs/base.rb
|
86
|
+
- lib/simple_form/inputs/boolean_input.rb
|
87
|
+
- lib/simple_form/inputs/collection_radio_buttons_input.rb
|
88
|
+
- lib/simple_form/inputs/collection_input.rb
|
89
|
+
- lib/simple_form/wrappers.rb
|
90
|
+
- lib/simple_form/helpers/validators.rb
|
91
|
+
- lib/simple_form/helpers/disabled.rb
|
92
|
+
- lib/simple_form/helpers/autofocus.rb
|
93
|
+
- lib/simple_form/helpers/required.rb
|
94
|
+
- lib/simple_form/helpers/readonly.rb
|
95
|
+
- lib/simple_form/inputs.rb
|
96
|
+
- lib/simple_form/form_builder.rb
|
97
|
+
- lib/simple_form/error_notification.rb
|
98
|
+
- lib/simple_form/wrappers/many.rb
|
99
|
+
- lib/simple_form/wrappers/single.rb
|
100
|
+
- lib/simple_form/wrappers/root.rb
|
101
|
+
- lib/simple_form/wrappers/builder.rb
|
102
|
+
- lib/simple_form/components.rb
|
103
|
+
- lib/simple_form/version.rb
|
104
|
+
- lib/simple_form/core_ext/hash.rb
|
105
|
+
- lib/simple_form/map_type.rb
|
106
|
+
- lib/simple_form/helpers.rb
|
107
|
+
- lib/simple_form/action_view_extensions/builder.rb
|
108
|
+
- lib/simple_form/action_view_extensions/form_helper.rb
|
109
|
+
- lib/simple_form/i18n_cache.rb
|
110
|
+
- lib/simple_form/components/pattern.rb
|
111
|
+
- lib/simple_form/components/html5.rb
|
112
|
+
- lib/simple_form/components/labels.rb
|
113
|
+
- lib/simple_form/components/label_input.rb
|
114
|
+
- lib/simple_form/components/placeholders.rb
|
115
|
+
- lib/simple_form/components/errors.rb
|
116
|
+
- lib/simple_form/components/hints.rb
|
117
|
+
- lib/simple_form/components/readonly.rb
|
118
|
+
- lib/simple_form/components/min_max.rb
|
119
|
+
- lib/simple_form/components/maxlength.rb
|
120
|
+
- lib/simple_form.rb
|
121
|
+
- test/form_builder/error_test.rb
|
122
|
+
- test/form_builder/general_test.rb
|
123
|
+
- test/form_builder/button_test.rb
|
124
|
+
- test/form_builder/association_test.rb
|
125
|
+
- test/form_builder/label_test.rb
|
126
|
+
- test/form_builder/error_notification_test.rb
|
127
|
+
- test/form_builder/wrapper_test.rb
|
128
|
+
- test/form_builder/hint_test.rb
|
129
|
+
- test/form_builder/input_field_test.rb
|
130
|
+
- test/inputs/general_test.rb
|
131
|
+
- test/inputs/datetime_input_test.rb
|
132
|
+
- test/inputs/collection_select_input_test.rb
|
133
|
+
- test/inputs/discovery_test.rb
|
134
|
+
- test/inputs/text_input_test.rb
|
135
|
+
- test/inputs/readonly_test.rb
|
136
|
+
- test/inputs/required_test.rb
|
137
|
+
- test/inputs/grouped_collection_select_input_test.rb
|
138
|
+
- test/inputs/collection_radio_buttons_input_test.rb
|
139
|
+
- test/inputs/priority_input_test.rb
|
140
|
+
- test/inputs/disabled_test.rb
|
141
|
+
- test/inputs/boolean_input_test.rb
|
142
|
+
- test/inputs/hidden_input_test.rb
|
143
|
+
- test/inputs/numeric_input_test.rb
|
144
|
+
- test/inputs/file_input_test.rb
|
145
|
+
- test/inputs/collection_check_boxes_input_test.rb
|
146
|
+
- test/inputs/string_input_test.rb
|
147
|
+
- test/test_helper.rb
|
148
|
+
- test/generators/simple_form_generator_test.rb
|
149
|
+
- test/support/misc_helpers.rb
|
150
|
+
- test/support/mock_controller.rb
|
151
|
+
- test/support/models.rb
|
152
|
+
- test/support/discovery_inputs.rb
|
153
|
+
- test/simple_form_test.rb
|
154
|
+
- test/action_view_extensions/form_helper_test.rb
|
155
|
+
- test/action_view_extensions/builder_test.rb
|
156
|
+
- test/components/label_test.rb
|
157
|
+
homepage: https://github.com/junwchina/simple_form_awesome
|
158
|
+
licenses: []
|
159
|
+
post_install_message:
|
160
|
+
rdoc_options: []
|
161
|
+
require_paths:
|
162
|
+
- lib
|
163
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
164
|
+
none: false
|
165
|
+
requirements:
|
166
|
+
- - ! '>='
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: '0'
|
169
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
170
|
+
none: false
|
171
|
+
requirements:
|
172
|
+
- - ! '>='
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: '0'
|
175
|
+
requirements: []
|
176
|
+
rubyforge_project: simple_form_awesome
|
177
|
+
rubygems_version: 1.8.24
|
178
|
+
signing_key:
|
179
|
+
specification_version: 3
|
180
|
+
summary: Forms made easy!
|
181
|
+
test_files:
|
182
|
+
- test/form_builder/error_test.rb
|
183
|
+
- test/form_builder/general_test.rb
|
184
|
+
- test/form_builder/button_test.rb
|
185
|
+
- test/form_builder/association_test.rb
|
186
|
+
- test/form_builder/label_test.rb
|
187
|
+
- test/form_builder/error_notification_test.rb
|
188
|
+
- test/form_builder/wrapper_test.rb
|
189
|
+
- test/form_builder/hint_test.rb
|
190
|
+
- test/form_builder/input_field_test.rb
|
191
|
+
- test/inputs/general_test.rb
|
192
|
+
- test/inputs/datetime_input_test.rb
|
193
|
+
- test/inputs/collection_select_input_test.rb
|
194
|
+
- test/inputs/discovery_test.rb
|
195
|
+
- test/inputs/text_input_test.rb
|
196
|
+
- test/inputs/readonly_test.rb
|
197
|
+
- test/inputs/required_test.rb
|
198
|
+
- test/inputs/grouped_collection_select_input_test.rb
|
199
|
+
- test/inputs/collection_radio_buttons_input_test.rb
|
200
|
+
- test/inputs/priority_input_test.rb
|
201
|
+
- test/inputs/disabled_test.rb
|
202
|
+
- test/inputs/boolean_input_test.rb
|
203
|
+
- test/inputs/hidden_input_test.rb
|
204
|
+
- test/inputs/numeric_input_test.rb
|
205
|
+
- test/inputs/file_input_test.rb
|
206
|
+
- test/inputs/collection_check_boxes_input_test.rb
|
207
|
+
- test/inputs/string_input_test.rb
|
208
|
+
- test/test_helper.rb
|
209
|
+
- test/generators/simple_form_generator_test.rb
|
210
|
+
- test/support/misc_helpers.rb
|
211
|
+
- test/support/mock_controller.rb
|
212
|
+
- test/support/models.rb
|
213
|
+
- test/support/discovery_inputs.rb
|
214
|
+
- test/simple_form_test.rb
|
215
|
+
- test/action_view_extensions/form_helper_test.rb
|
216
|
+
- test/action_view_extensions/builder_test.rb
|
217
|
+
- test/components/label_test.rb
|