reform 2.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +18 -0
  3. data/.travis.yml +11 -0
  4. data/CHANGES.md +415 -0
  5. data/Gemfile +19 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +339 -0
  8. data/Rakefile +15 -0
  9. data/TODO.md +45 -0
  10. data/gemfiles/Gemfile.disposable-0.3 +6 -0
  11. data/lib/reform.rb +8 -0
  12. data/lib/reform/contract.rb +77 -0
  13. data/lib/reform/contract/errors.rb +43 -0
  14. data/lib/reform/contract/validate.rb +33 -0
  15. data/lib/reform/form.rb +94 -0
  16. data/lib/reform/form/call.rb +23 -0
  17. data/lib/reform/form/coercion.rb +3 -0
  18. data/lib/reform/form/composition.rb +34 -0
  19. data/lib/reform/form/dry.rb +67 -0
  20. data/lib/reform/form/module.rb +27 -0
  21. data/lib/reform/form/mongoid.rb +37 -0
  22. data/lib/reform/form/orm.rb +26 -0
  23. data/lib/reform/form/populator.rb +123 -0
  24. data/lib/reform/form/prepopulate.rb +24 -0
  25. data/lib/reform/form/validate.rb +60 -0
  26. data/lib/reform/mongoid.rb +4 -0
  27. data/lib/reform/validation.rb +40 -0
  28. data/lib/reform/validation/groups.rb +73 -0
  29. data/lib/reform/version.rb +3 -0
  30. data/reform.gemspec +29 -0
  31. data/test/benchmarking.rb +26 -0
  32. data/test/call_test.rb +23 -0
  33. data/test/changed_test.rb +41 -0
  34. data/test/coercion_test.rb +66 -0
  35. data/test/composition_test.rb +149 -0
  36. data/test/contract_test.rb +77 -0
  37. data/test/default_test.rb +22 -0
  38. data/test/deprecation_test.rb +27 -0
  39. data/test/deserialize_test.rb +104 -0
  40. data/test/errors_test.rb +165 -0
  41. data/test/feature_test.rb +65 -0
  42. data/test/fixtures/dry_error_messages.yml +44 -0
  43. data/test/form_option_test.rb +24 -0
  44. data/test/form_test.rb +57 -0
  45. data/test/from_test.rb +75 -0
  46. data/test/inherit_test.rb +119 -0
  47. data/test/module_test.rb +142 -0
  48. data/test/parse_pipeline_test.rb +15 -0
  49. data/test/populate_test.rb +270 -0
  50. data/test/populator_skip_test.rb +28 -0
  51. data/test/prepopulator_test.rb +112 -0
  52. data/test/read_only_test.rb +3 -0
  53. data/test/readable_test.rb +30 -0
  54. data/test/readonly_test.rb +14 -0
  55. data/test/reform_test.rb +223 -0
  56. data/test/save_test.rb +89 -0
  57. data/test/setup_test.rb +48 -0
  58. data/test/skip_if_test.rb +74 -0
  59. data/test/skip_setter_and_getter_test.rb +54 -0
  60. data/test/test_helper.rb +49 -0
  61. data/test/validate_test.rb +420 -0
  62. data/test/validation/dry_test.rb +60 -0
  63. data/test/validation/dry_validation_test.rb +352 -0
  64. data/test/validation/errors.yml +4 -0
  65. data/test/virtual_test.rb +24 -0
  66. data/test/writeable_test.rb +29 -0
  67. metadata +265 -0
metadata ADDED
@@ -0,0 +1,265 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: reform
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.2.4
5
+ platform: ruby
6
+ authors:
7
+ - Nick Sutterer
8
+ - Garrett Heinlen
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2017-01-31 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: disposable
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: 0.4.1
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: 0.4.1
28
+ - !ruby/object:Gem::Dependency
29
+ name: representable
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: 2.4.0
35
+ - - "<"
36
+ - !ruby/object:Gem::Version
37
+ version: 3.1.0
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: 2.4.0
45
+ - - "<"
46
+ - !ruby/object:Gem::Version
47
+ version: 3.1.0
48
+ - !ruby/object:Gem::Dependency
49
+ name: bundler
50
+ requirement: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: rake
64
+ requirement: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ type: :development
70
+ prerelease: false
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ - !ruby/object:Gem::Dependency
77
+ name: minitest
78
+ requirement: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ type: :development
84
+ prerelease: false
85
+ version_requirements: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ - !ruby/object:Gem::Dependency
91
+ name: dry-types
92
+ requirement: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ type: :development
98
+ prerelease: false
99
+ version_requirements: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ - !ruby/object:Gem::Dependency
105
+ name: multi_json
106
+ requirement: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ type: :development
112
+ prerelease: false
113
+ version_requirements: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ - !ruby/object:Gem::Dependency
119
+ name: dry-validation
120
+ requirement: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: 0.10.0
125
+ type: :development
126
+ prerelease: false
127
+ version_requirements: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: 0.10.0
132
+ description: Form object decoupled from models.
133
+ email:
134
+ - apotonick@gmail.com
135
+ - heinleng@gmail.com
136
+ executables: []
137
+ extensions: []
138
+ extra_rdoc_files: []
139
+ files:
140
+ - ".gitignore"
141
+ - ".travis.yml"
142
+ - CHANGES.md
143
+ - Gemfile
144
+ - LICENSE.txt
145
+ - README.md
146
+ - Rakefile
147
+ - TODO.md
148
+ - gemfiles/Gemfile.disposable-0.3
149
+ - lib/reform.rb
150
+ - lib/reform/contract.rb
151
+ - lib/reform/contract/errors.rb
152
+ - lib/reform/contract/validate.rb
153
+ - lib/reform/form.rb
154
+ - lib/reform/form/call.rb
155
+ - lib/reform/form/coercion.rb
156
+ - lib/reform/form/composition.rb
157
+ - lib/reform/form/dry.rb
158
+ - lib/reform/form/module.rb
159
+ - lib/reform/form/mongoid.rb
160
+ - lib/reform/form/orm.rb
161
+ - lib/reform/form/populator.rb
162
+ - lib/reform/form/prepopulate.rb
163
+ - lib/reform/form/validate.rb
164
+ - lib/reform/mongoid.rb
165
+ - lib/reform/validation.rb
166
+ - lib/reform/validation/groups.rb
167
+ - lib/reform/version.rb
168
+ - reform.gemspec
169
+ - test/benchmarking.rb
170
+ - test/call_test.rb
171
+ - test/changed_test.rb
172
+ - test/coercion_test.rb
173
+ - test/composition_test.rb
174
+ - test/contract_test.rb
175
+ - test/default_test.rb
176
+ - test/deprecation_test.rb
177
+ - test/deserialize_test.rb
178
+ - test/errors_test.rb
179
+ - test/feature_test.rb
180
+ - test/fixtures/dry_error_messages.yml
181
+ - test/form_option_test.rb
182
+ - test/form_test.rb
183
+ - test/from_test.rb
184
+ - test/inherit_test.rb
185
+ - test/module_test.rb
186
+ - test/parse_pipeline_test.rb
187
+ - test/populate_test.rb
188
+ - test/populator_skip_test.rb
189
+ - test/prepopulator_test.rb
190
+ - test/read_only_test.rb
191
+ - test/readable_test.rb
192
+ - test/readonly_test.rb
193
+ - test/reform_test.rb
194
+ - test/save_test.rb
195
+ - test/setup_test.rb
196
+ - test/skip_if_test.rb
197
+ - test/skip_setter_and_getter_test.rb
198
+ - test/test_helper.rb
199
+ - test/validate_test.rb
200
+ - test/validation/dry_test.rb
201
+ - test/validation/dry_validation_test.rb
202
+ - test/validation/errors.yml
203
+ - test/virtual_test.rb
204
+ - test/writeable_test.rb
205
+ homepage: https://github.com/apotonick/reform
206
+ licenses:
207
+ - MIT
208
+ metadata: {}
209
+ post_install_message:
210
+ rdoc_options: []
211
+ require_paths:
212
+ - lib
213
+ required_ruby_version: !ruby/object:Gem::Requirement
214
+ requirements:
215
+ - - ">="
216
+ - !ruby/object:Gem::Version
217
+ version: '0'
218
+ required_rubygems_version: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ requirements: []
224
+ rubyforge_project:
225
+ rubygems_version: 2.5.1
226
+ signing_key:
227
+ specification_version: 4
228
+ summary: Form object decoupled from models with validation, population and presentation.
229
+ test_files:
230
+ - test/benchmarking.rb
231
+ - test/call_test.rb
232
+ - test/changed_test.rb
233
+ - test/coercion_test.rb
234
+ - test/composition_test.rb
235
+ - test/contract_test.rb
236
+ - test/default_test.rb
237
+ - test/deprecation_test.rb
238
+ - test/deserialize_test.rb
239
+ - test/errors_test.rb
240
+ - test/feature_test.rb
241
+ - test/fixtures/dry_error_messages.yml
242
+ - test/form_option_test.rb
243
+ - test/form_test.rb
244
+ - test/from_test.rb
245
+ - test/inherit_test.rb
246
+ - test/module_test.rb
247
+ - test/parse_pipeline_test.rb
248
+ - test/populate_test.rb
249
+ - test/populator_skip_test.rb
250
+ - test/prepopulator_test.rb
251
+ - test/read_only_test.rb
252
+ - test/readable_test.rb
253
+ - test/readonly_test.rb
254
+ - test/reform_test.rb
255
+ - test/save_test.rb
256
+ - test/setup_test.rb
257
+ - test/skip_if_test.rb
258
+ - test/skip_setter_and_getter_test.rb
259
+ - test/test_helper.rb
260
+ - test/validate_test.rb
261
+ - test/validation/dry_test.rb
262
+ - test/validation/dry_validation_test.rb
263
+ - test/validation/errors.yml
264
+ - test/virtual_test.rb
265
+ - test/writeable_test.rb