formtastic 3.1.2 → 4.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 (135) hide show
  1. checksums.yaml +7 -0
  2. data/.gitattributes +1 -0
  3. data/.github/workflows/test.yml +61 -0
  4. data/.gitignore +3 -2
  5. data/CHANGELOG.md +52 -0
  6. data/Gemfile.lock +105 -0
  7. data/MIT-LICENSE +1 -1
  8. data/{README.textile → README.md} +178 -167
  9. data/RELEASE_PROCESS +3 -1
  10. data/Rakefile +20 -1
  11. data/app/assets/stylesheets/formtastic.css +1 -1
  12. data/bin/appraisal +8 -0
  13. data/formtastic.gemspec +10 -16
  14. data/gemfiles/rails_5.2/Gemfile +5 -0
  15. data/gemfiles/rails_6.0/Gemfile +5 -0
  16. data/gemfiles/rails_6.1/Gemfile +5 -0
  17. data/gemfiles/rails_edge/Gemfile +13 -0
  18. data/lib/formtastic.rb +9 -11
  19. data/lib/formtastic/actions.rb +6 -3
  20. data/lib/formtastic/deprecation.rb +1 -38
  21. data/lib/formtastic/engine.rb +3 -1
  22. data/lib/formtastic/form_builder.rb +11 -24
  23. data/lib/formtastic/helpers.rb +1 -1
  24. data/lib/formtastic/helpers/action_helper.rb +1 -48
  25. data/lib/formtastic/helpers/enum.rb +13 -0
  26. data/lib/formtastic/helpers/errors_helper.rb +2 -2
  27. data/lib/formtastic/helpers/fieldset_wrapper.rb +13 -9
  28. data/lib/formtastic/helpers/form_helper.rb +1 -1
  29. data/lib/formtastic/helpers/input_helper.rb +23 -77
  30. data/lib/formtastic/helpers/inputs_helper.rb +27 -22
  31. data/lib/formtastic/i18n.rb +1 -1
  32. data/lib/formtastic/inputs.rb +32 -29
  33. data/lib/formtastic/inputs/base/choices.rb +1 -1
  34. data/lib/formtastic/inputs/base/collections.rb +43 -10
  35. data/lib/formtastic/inputs/base/database.rb +7 -2
  36. data/lib/formtastic/inputs/base/errors.rb +4 -4
  37. data/lib/formtastic/inputs/base/hints.rb +1 -1
  38. data/lib/formtastic/inputs/base/html.rb +7 -6
  39. data/lib/formtastic/inputs/base/naming.rb +4 -4
  40. data/lib/formtastic/inputs/base/options.rb +2 -3
  41. data/lib/formtastic/inputs/base/timeish.rb +5 -1
  42. data/lib/formtastic/inputs/base/validations.rb +38 -12
  43. data/lib/formtastic/inputs/check_boxes_input.rb +13 -5
  44. data/lib/formtastic/inputs/color_input.rb +0 -1
  45. data/lib/formtastic/inputs/country_input.rb +3 -1
  46. data/lib/formtastic/inputs/radio_input.rb +20 -0
  47. data/lib/formtastic/inputs/select_input.rb +29 -1
  48. data/lib/formtastic/inputs/time_zone_input.rb +16 -6
  49. data/lib/formtastic/localizer.rb +20 -22
  50. data/lib/formtastic/namespaced_class_finder.rb +1 -1
  51. data/lib/formtastic/version.rb +1 -1
  52. data/lib/generators/formtastic/form/form_generator.rb +1 -1
  53. data/lib/generators/formtastic/input/input_generator.rb +46 -0
  54. data/lib/generators/templates/formtastic.rb +14 -13
  55. data/lib/generators/templates/input.rb +19 -0
  56. data/sample/basic_inputs.html +1 -1
  57. data/script/integration-template.rb +74 -0
  58. data/script/integration.sh +19 -0
  59. data/spec/action_class_finder_spec.rb +1 -1
  60. data/spec/actions/button_action_spec.rb +8 -8
  61. data/spec/actions/generic_action_spec.rb +60 -60
  62. data/spec/actions/input_action_spec.rb +7 -7
  63. data/spec/actions/link_action_spec.rb +10 -10
  64. data/spec/builder/custom_builder_spec.rb +37 -21
  65. data/spec/builder/error_proc_spec.rb +4 -4
  66. data/spec/builder/semantic_fields_for_spec.rb +27 -27
  67. data/spec/fast_spec_helper.rb +12 -0
  68. data/spec/generators/formtastic/form/form_generator_spec.rb +25 -25
  69. data/spec/generators/formtastic/input/input_generator_spec.rb +124 -0
  70. data/spec/generators/formtastic/install/install_generator_spec.rb +9 -9
  71. data/spec/helpers/action_helper_spec.rb +328 -10
  72. data/spec/helpers/actions_helper_spec.rb +17 -17
  73. data/spec/helpers/form_helper_spec.rb +37 -37
  74. data/spec/helpers/input_helper_spec.rb +975 -2
  75. data/spec/helpers/inputs_helper_spec.rb +120 -105
  76. data/spec/helpers/reflection_helper_spec.rb +3 -3
  77. data/spec/helpers/semantic_errors_helper_spec.rb +22 -22
  78. data/spec/i18n_spec.rb +26 -26
  79. data/spec/input_class_finder_spec.rb +1 -1
  80. data/spec/inputs/base/collections_spec.rb +76 -0
  81. data/spec/inputs/base/validations_spec.rb +480 -0
  82. data/spec/inputs/boolean_input_spec.rb +55 -55
  83. data/spec/inputs/check_boxes_input_spec.rb +155 -108
  84. data/spec/inputs/color_input_spec.rb +51 -63
  85. data/spec/inputs/country_input_spec.rb +20 -20
  86. data/spec/inputs/custom_input_spec.rb +2 -6
  87. data/spec/inputs/datalist_input_spec.rb +1 -1
  88. data/spec/inputs/date_picker_input_spec.rb +42 -42
  89. data/spec/inputs/date_select_input_spec.rb +51 -37
  90. data/spec/inputs/datetime_picker_input_spec.rb +46 -46
  91. data/spec/inputs/datetime_select_input_spec.rb +53 -37
  92. data/spec/inputs/email_input_spec.rb +5 -5
  93. data/spec/inputs/file_input_spec.rb +6 -6
  94. data/spec/inputs/hidden_input_spec.rb +18 -18
  95. data/spec/inputs/include_blank_spec.rb +8 -8
  96. data/spec/inputs/label_spec.rb +20 -20
  97. data/spec/inputs/number_input_spec.rb +112 -112
  98. data/spec/inputs/password_input_spec.rb +5 -5
  99. data/spec/inputs/phone_input_spec.rb +5 -5
  100. data/spec/inputs/placeholder_spec.rb +5 -5
  101. data/spec/inputs/radio_input_spec.rb +84 -58
  102. data/spec/inputs/range_input_spec.rb +66 -66
  103. data/spec/inputs/readonly_spec.rb +50 -0
  104. data/spec/inputs/search_input_spec.rb +5 -5
  105. data/spec/inputs/select_input_spec.rb +149 -93
  106. data/spec/inputs/string_input_spec.rb +23 -23
  107. data/spec/inputs/text_input_spec.rb +16 -16
  108. data/spec/inputs/time_picker_input_spec.rb +43 -43
  109. data/spec/inputs/time_select_input_spec.rb +67 -54
  110. data/spec/inputs/time_zone_input_spec.rb +54 -28
  111. data/spec/inputs/url_input_spec.rb +5 -5
  112. data/spec/inputs/with_options_spec.rb +7 -7
  113. data/spec/localizer_spec.rb +17 -17
  114. data/spec/namespaced_class_finder_spec.rb +2 -2
  115. data/spec/schema.rb +21 -0
  116. data/spec/spec_helper.rb +165 -253
  117. data/spec/support/custom_macros.rb +72 -75
  118. data/spec/support/shared_examples.rb +0 -1232
  119. data/spec/support/test_environment.rb +23 -9
  120. metadata +69 -176
  121. data/.travis.yml +0 -29
  122. data/Appraisals +0 -29
  123. data/CHANGELOG +0 -31
  124. data/DEPRECATIONS +0 -49
  125. data/gemfiles/rails_3.2.gemfile +0 -7
  126. data/gemfiles/rails_4.0.4.gemfile +0 -7
  127. data/gemfiles/rails_4.1.gemfile +0 -7
  128. data/gemfiles/rails_4.2.gemfile +0 -7
  129. data/gemfiles/rails_4.gemfile +0 -7
  130. data/gemfiles/rails_edge.gemfile +0 -10
  131. data/lib/formtastic/util.rb +0 -57
  132. data/spec/helpers/namespaced_action_helper_spec.rb +0 -43
  133. data/spec/helpers/namespaced_input_helper_spec.rb +0 -36
  134. data/spec/support/deferred_garbage_collection.rb +0 -21
  135. data/spec/util_spec.rb +0 -66
@@ -1,11 +1,32 @@
1
1
  # encoding: utf-8
2
2
  require 'rspec/core'
3
- require 'rspec_tag_matchers'
3
+
4
+ require 'rspec-dom-testing'
4
5
 
5
6
  RSpec.configure do |config|
6
- config.include RspecTagMatchers
7
7
  config.include CustomMacros
8
+ config.include RSpec::Dom::Testing::Matchers
8
9
  config.mock_with :rspec
10
+
11
+ # rspec-rails 3 will no longer automatically infer an example group's spec type
12
+ # from the file location. You can explicitly opt-in to the feature using this
13
+ # config option.
14
+ # To explicitly tag specs without using automatic inference, set the `:type`
15
+ # metadata manually:
16
+ #
17
+ # describe ThingsController, :type => :controller do
18
+ # # Equivalent to being in spec/controllers
19
+ # end
20
+ config.infer_spec_type_from_file_location!
21
+
22
+ # Setting this config option `false` removes rspec-core's monkey patching of the
23
+ # top level methods like `describe`, `shared_examples_for` and `shared_context`
24
+ # on `main` and `Module`. The methods are always available through the `RSpec`
25
+ # module like `RSpec.describe` regardless of this setting.
26
+ # For backwards compatibility this defaults to `true`.
27
+ #
28
+ # https://relishapp.com/rspec/rspec-core/v/3-0/docs/configuration/global-namespace-dsl
29
+ config.expose_dsl_globally = false
9
30
  end
10
31
 
11
32
  require "action_controller/railtie"
@@ -14,8 +35,6 @@ require 'active_model'
14
35
  # Create a simple rails application for use in testing the viewhelper
15
36
  module FormtasticTest
16
37
  class Application < Rails::Application
17
- # Configure the default encoding used in templates for Ruby 1.9.
18
- config.encoding = "utf-8"
19
38
  config.active_support.deprecation = :stderr
20
39
  config.secret_key_base = "secret"
21
40
  config.eager_load = false
@@ -24,8 +43,3 @@ end
24
43
  FormtasticTest::Application.initialize!
25
44
 
26
45
  require 'rspec/rails'
27
-
28
- # Quick hack to avoid the 'Spec' deprecation warnings from rspec_tag_matchers
29
- module Spec
30
- include RSpec
31
- end
metadata CHANGED
@@ -1,224 +1,113 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formtastic
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
5
- prerelease:
4
+ version: 4.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Justin French
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-11-24 00:00:00.000000000 Z
11
+ date: 2021-02-01 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: actionpack
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
- version: 3.2.13
19
+ version: 5.2.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
- version: 3.2.13
30
- - !ruby/object:Gem::Dependency
31
- name: nokogiri
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
38
- type: :development
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
26
+ version: 5.2.0
46
27
  - !ruby/object:Gem::Dependency
47
28
  name: rspec-rails
48
29
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ~>
52
- - !ruby/object:Gem::Version
53
- version: '2.14'
54
- type: :development
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: '2.14'
62
- - !ruby/object:Gem::Dependency
63
- name: rspec_tag_matchers
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ~>
68
- - !ruby/object:Gem::Version
69
- version: '1.0'
70
- type: :development
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ~>
76
- - !ruby/object:Gem::Version
77
- version: '1.0'
78
- - !ruby/object:Gem::Dependency
79
- name: hpricot
80
- requirement: !ruby/object:Gem::Requirement
81
- none: false
82
30
  requirements:
83
- - - ~>
31
+ - - "~>"
84
32
  - !ruby/object:Gem::Version
85
- version: 0.8.3
33
+ version: '3.4'
86
34
  type: :development
87
35
  prerelease: false
88
36
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
37
  requirements:
91
- - - ~>
38
+ - - "~>"
92
39
  - !ruby/object:Gem::Version
93
- version: 0.8.3
40
+ version: '3.4'
94
41
  - !ruby/object:Gem::Dependency
95
- name: RedCloth
42
+ name: rspec-dom-testing
96
43
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
44
  requirements:
99
- - - ~>
45
+ - - ">="
100
46
  - !ruby/object:Gem::Version
101
- version: '4.2'
47
+ version: 0.1.0
102
48
  type: :development
103
49
  prerelease: false
104
50
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
51
  requirements:
107
- - - ~>
52
+ - - ">="
108
53
  - !ruby/object:Gem::Version
109
- version: '4.2'
54
+ version: 0.1.0
110
55
  - !ruby/object:Gem::Dependency
111
56
  name: yard
112
57
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
58
  requirements:
115
- - - ~>
59
+ - - "~>"
116
60
  - !ruby/object:Gem::Version
117
- version: '0.8'
61
+ version: 0.9.20
118
62
  type: :development
119
63
  prerelease: false
120
64
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
65
  requirements:
123
- - - ~>
66
+ - - "~>"
124
67
  - !ruby/object:Gem::Version
125
- version: '0.8'
126
- - !ruby/object:Gem::Dependency
127
- name: colored
128
- requirement: !ruby/object:Gem::Requirement
129
- none: false
130
- requirements:
131
- - - ~>
132
- - !ruby/object:Gem::Version
133
- version: '1.2'
134
- type: :development
135
- prerelease: false
136
- version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
- requirements:
139
- - - ~>
140
- - !ruby/object:Gem::Version
141
- version: '1.2'
142
- - !ruby/object:Gem::Dependency
143
- name: tzinfo
144
- requirement: !ruby/object:Gem::Requirement
145
- none: false
146
- requirements:
147
- - - ! '>='
148
- - !ruby/object:Gem::Version
149
- version: '0'
150
- type: :development
151
- prerelease: false
152
- version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
- requirements:
155
- - - ! '>='
156
- - !ruby/object:Gem::Version
157
- version: '0'
68
+ version: 0.9.20
158
69
  - !ruby/object:Gem::Dependency
159
70
  name: ammeter
160
71
  requirement: !ruby/object:Gem::Requirement
161
- none: false
162
- requirements:
163
- - - '='
164
- - !ruby/object:Gem::Version
165
- version: 1.1.1
166
- type: :development
167
- prerelease: false
168
- version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
- requirements:
171
- - - '='
172
- - !ruby/object:Gem::Version
173
- version: 1.1.1
174
- - !ruby/object:Gem::Dependency
175
- name: appraisal
176
- requirement: !ruby/object:Gem::Requirement
177
- none: false
178
72
  requirements:
179
- - - ~>
73
+ - - "~>"
180
74
  - !ruby/object:Gem::Version
181
- version: '1.0'
75
+ version: 1.1.3
182
76
  type: :development
183
77
  prerelease: false
184
78
  version_requirements: !ruby/object:Gem::Requirement
185
- none: false
186
79
  requirements:
187
- - - ~>
80
+ - - "~>"
188
81
  - !ruby/object:Gem::Version
189
- version: '1.0'
82
+ version: 1.1.3
190
83
  - !ruby/object:Gem::Dependency
191
84
  name: rake
192
85
  requirement: !ruby/object:Gem::Requirement
193
- none: false
194
86
  requirements:
195
- - - ! '>='
87
+ - - ">="
196
88
  - !ruby/object:Gem::Version
197
89
  version: '0'
198
90
  type: :development
199
91
  prerelease: false
200
92
  version_requirements: !ruby/object:Gem::Requirement
201
- none: false
202
93
  requirements:
203
- - - ! '>='
94
+ - - ">="
204
95
  - !ruby/object:Gem::Version
205
96
  version: '0'
206
97
  - !ruby/object:Gem::Dependency
207
- name: activemodel
98
+ name: sqlite3
208
99
  requirement: !ruby/object:Gem::Requirement
209
- none: false
210
100
  requirements:
211
- - - ! '>='
101
+ - - "~>"
212
102
  - !ruby/object:Gem::Version
213
- version: 3.2.13
103
+ version: '1.4'
214
104
  type: :development
215
105
  prerelease: false
216
106
  version_requirements: !ruby/object:Gem::Requirement
217
- none: false
218
107
  requirements:
219
- - - ! '>='
108
+ - - "~>"
220
109
  - !ruby/object:Gem::Version
221
- version: 3.2.13
110
+ version: '1.4'
222
111
  description: A Rails form builder plugin/gem with semantically rich and accessible
223
112
  markup
224
113
  email:
@@ -226,30 +115,29 @@ email:
226
115
  executables: []
227
116
  extensions: []
228
117
  extra_rdoc_files:
229
- - README.textile
118
+ - README.md
230
119
  files:
231
- - .gitignore
232
- - .rspec
233
- - .travis.yml
234
- - .yardopts
235
- - Appraisals
236
- - CHANGELOG
237
- - DEPRECATIONS
120
+ - ".gitattributes"
121
+ - ".github/workflows/test.yml"
122
+ - ".gitignore"
123
+ - ".rspec"
124
+ - ".yardopts"
125
+ - CHANGELOG.md
238
126
  - Gemfile
127
+ - Gemfile.lock
239
128
  - MIT-LICENSE
240
- - README.textile
129
+ - README.md
241
130
  - RELEASE_PROCESS
242
131
  - Rakefile
243
132
  - app/assets/stylesheets/formtastic.css
244
133
  - app/assets/stylesheets/formtastic_ie6.css
245
134
  - app/assets/stylesheets/formtastic_ie7.css
135
+ - bin/appraisal
246
136
  - formtastic.gemspec
247
- - gemfiles/rails_3.2.gemfile
248
- - gemfiles/rails_4.0.4.gemfile
249
- - gemfiles/rails_4.1.gemfile
250
- - gemfiles/rails_4.2.gemfile
251
- - gemfiles/rails_4.gemfile
252
- - gemfiles/rails_edge.gemfile
137
+ - gemfiles/rails_5.2/Gemfile
138
+ - gemfiles/rails_6.0/Gemfile
139
+ - gemfiles/rails_6.1/Gemfile
140
+ - gemfiles/rails_edge/Gemfile
253
141
  - lib/formtastic.rb
254
142
  - lib/formtastic/action_class_finder.rb
255
143
  - lib/formtastic/actions.rb
@@ -264,6 +152,7 @@ files:
264
152
  - lib/formtastic/helpers.rb
265
153
  - lib/formtastic/helpers/action_helper.rb
266
154
  - lib/formtastic/helpers/actions_helper.rb
155
+ - lib/formtastic/helpers/enum.rb
267
156
  - lib/formtastic/helpers/errors_helper.rb
268
157
  - lib/formtastic/helpers/fieldset_wrapper.rb
269
158
  - lib/formtastic/helpers/file_column_detection.rb
@@ -322,18 +211,21 @@ files:
322
211
  - lib/formtastic/localized_string.rb
323
212
  - lib/formtastic/localizer.rb
324
213
  - lib/formtastic/namespaced_class_finder.rb
325
- - lib/formtastic/util.rb
326
214
  - lib/formtastic/version.rb
327
215
  - lib/generators/formtastic/form/form_generator.rb
216
+ - lib/generators/formtastic/input/input_generator.rb
328
217
  - lib/generators/formtastic/install/install_generator.rb
329
218
  - lib/generators/templates/_form.html.erb
330
219
  - lib/generators/templates/_form.html.haml
331
220
  - lib/generators/templates/_form.html.slim
332
221
  - lib/generators/templates/formtastic.rb
222
+ - lib/generators/templates/input.rb
333
223
  - lib/locale/en.yml
334
224
  - sample/basic_inputs.html
335
225
  - sample/config.ru
336
226
  - sample/index.html
227
+ - script/integration-template.rb
228
+ - script/integration.sh
337
229
  - spec/action_class_finder_spec.rb
338
230
  - spec/actions/button_action_spec.rb
339
231
  - spec/actions/generic_action_spec.rb
@@ -342,19 +234,21 @@ files:
342
234
  - spec/builder/custom_builder_spec.rb
343
235
  - spec/builder/error_proc_spec.rb
344
236
  - spec/builder/semantic_fields_for_spec.rb
237
+ - spec/fast_spec_helper.rb
345
238
  - spec/generators/formtastic/form/form_generator_spec.rb
239
+ - spec/generators/formtastic/input/input_generator_spec.rb
346
240
  - spec/generators/formtastic/install/install_generator_spec.rb
347
241
  - spec/helpers/action_helper_spec.rb
348
242
  - spec/helpers/actions_helper_spec.rb
349
243
  - spec/helpers/form_helper_spec.rb
350
244
  - spec/helpers/input_helper_spec.rb
351
245
  - spec/helpers/inputs_helper_spec.rb
352
- - spec/helpers/namespaced_action_helper_spec.rb
353
- - spec/helpers/namespaced_input_helper_spec.rb
354
246
  - spec/helpers/reflection_helper_spec.rb
355
247
  - spec/helpers/semantic_errors_helper_spec.rb
356
248
  - spec/i18n_spec.rb
357
249
  - spec/input_class_finder_spec.rb
250
+ - spec/inputs/base/collections_spec.rb
251
+ - spec/inputs/base/validations_spec.rb
358
252
  - spec/inputs/boolean_input_spec.rb
359
253
  - spec/inputs/check_boxes_input_spec.rb
360
254
  - spec/inputs/color_input_spec.rb
@@ -376,6 +270,7 @@ files:
376
270
  - spec/inputs/placeholder_spec.rb
377
271
  - spec/inputs/radio_input_spec.rb
378
272
  - spec/inputs/range_input_spec.rb
273
+ - spec/inputs/readonly_spec.rb
379
274
  - spec/inputs/search_input_spec.rb
380
275
  - spec/inputs/select_input_spec.rb
381
276
  - spec/inputs/string_input_spec.rb
@@ -387,40 +282,37 @@ files:
387
282
  - spec/inputs/with_options_spec.rb
388
283
  - spec/localizer_spec.rb
389
284
  - spec/namespaced_class_finder_spec.rb
285
+ - spec/schema.rb
390
286
  - spec/spec.opts
391
287
  - spec/spec_helper.rb
392
288
  - spec/support/custom_macros.rb
393
- - spec/support/deferred_garbage_collection.rb
394
289
  - spec/support/deprecation.rb
395
290
  - spec/support/shared_examples.rb
396
291
  - spec/support/specialized_class_finder_shared_example.rb
397
292
  - spec/support/test_environment.rb
398
- - spec/util_spec.rb
399
- homepage: http://github.com/justinfrench/formtastic
293
+ homepage: http://github.com/formtastic/formtastic
400
294
  licenses:
401
295
  - MIT
296
+ metadata: {}
402
297
  post_install_message:
403
298
  rdoc_options:
404
- - --charset=UTF-8
299
+ - "--charset=UTF-8"
405
300
  require_paths:
406
301
  - lib
407
302
  required_ruby_version: !ruby/object:Gem::Requirement
408
- none: false
409
303
  requirements:
410
- - - ! '>='
304
+ - - ">="
411
305
  - !ruby/object:Gem::Version
412
- version: 1.9.3
306
+ version: 2.4.0
413
307
  required_rubygems_version: !ruby/object:Gem::Requirement
414
- none: false
415
308
  requirements:
416
- - - ! '>='
309
+ - - ">="
417
310
  - !ruby/object:Gem::Version
418
311
  version: '0'
419
312
  requirements: []
420
- rubyforge_project:
421
- rubygems_version: 1.8.23
313
+ rubygems_version: 3.1.2
422
314
  signing_key:
423
- specification_version: 3
315
+ specification_version: 4
424
316
  summary: A Rails form builder plugin/gem with semantically rich and accessible markup
425
317
  test_files:
426
318
  - spec/action_class_finder_spec.rb
@@ -431,19 +323,21 @@ test_files:
431
323
  - spec/builder/custom_builder_spec.rb
432
324
  - spec/builder/error_proc_spec.rb
433
325
  - spec/builder/semantic_fields_for_spec.rb
326
+ - spec/fast_spec_helper.rb
434
327
  - spec/generators/formtastic/form/form_generator_spec.rb
328
+ - spec/generators/formtastic/input/input_generator_spec.rb
435
329
  - spec/generators/formtastic/install/install_generator_spec.rb
436
330
  - spec/helpers/action_helper_spec.rb
437
331
  - spec/helpers/actions_helper_spec.rb
438
332
  - spec/helpers/form_helper_spec.rb
439
333
  - spec/helpers/input_helper_spec.rb
440
334
  - spec/helpers/inputs_helper_spec.rb
441
- - spec/helpers/namespaced_action_helper_spec.rb
442
- - spec/helpers/namespaced_input_helper_spec.rb
443
335
  - spec/helpers/reflection_helper_spec.rb
444
336
  - spec/helpers/semantic_errors_helper_spec.rb
445
337
  - spec/i18n_spec.rb
446
338
  - spec/input_class_finder_spec.rb
339
+ - spec/inputs/base/collections_spec.rb
340
+ - spec/inputs/base/validations_spec.rb
447
341
  - spec/inputs/boolean_input_spec.rb
448
342
  - spec/inputs/check_boxes_input_spec.rb
449
343
  - spec/inputs/color_input_spec.rb
@@ -465,6 +359,7 @@ test_files:
465
359
  - spec/inputs/placeholder_spec.rb
466
360
  - spec/inputs/radio_input_spec.rb
467
361
  - spec/inputs/range_input_spec.rb
362
+ - spec/inputs/readonly_spec.rb
468
363
  - spec/inputs/search_input_spec.rb
469
364
  - spec/inputs/select_input_spec.rb
470
365
  - spec/inputs/string_input_spec.rb
@@ -476,13 +371,11 @@ test_files:
476
371
  - spec/inputs/with_options_spec.rb
477
372
  - spec/localizer_spec.rb
478
373
  - spec/namespaced_class_finder_spec.rb
374
+ - spec/schema.rb
479
375
  - spec/spec.opts
480
376
  - spec/spec_helper.rb
481
377
  - spec/support/custom_macros.rb
482
- - spec/support/deferred_garbage_collection.rb
483
378
  - spec/support/deprecation.rb
484
379
  - spec/support/shared_examples.rb
485
380
  - spec/support/specialized_class_finder_shared_example.rb
486
381
  - spec/support/test_environment.rb
487
- - spec/util_spec.rb
488
- has_rdoc: