formalist 0.2.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a25ed29e5310c5707691b6e42089f845acda96d
|
4
|
+
data.tar.gz: ae3ec66e1957062442a116068671e7924009a49d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75991212d87c5a71fc2b8805fc9b1905c271d50e29684ffb65484ae37e70e3adada85a561e42feab49414da1fb91c4ba7d038ee82c30c352f07c2318c706d8b6
|
7
|
+
data.tar.gz: 344e4392c1b1d8749c2520397451be67b143a5338153dfafb15ba2dbc6a3958607d20fef7f05e280df31a29300451fb28b3ffe778e0e618c0c17b47ec2c9d4b8
|
data/Gemfile.lock
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
GIT
|
2
2
|
remote: https://github.com/dryrb/dry-types
|
3
|
-
revision:
|
3
|
+
revision: 56eba433b066c5f8839e5a81cddc7c955056a71e
|
4
4
|
branch: master
|
5
5
|
specs:
|
6
6
|
dry-types (0.7.1)
|
@@ -14,7 +14,7 @@ GIT
|
|
14
14
|
|
15
15
|
GIT
|
16
16
|
remote: https://github.com/dryrb/dry-validation
|
17
|
-
revision:
|
17
|
+
revision: 2f2ab25b871dde41d4c0f2b259f0c09989f4176b
|
18
18
|
branch: master
|
19
19
|
specs:
|
20
20
|
dry-validation (0.7.4)
|
@@ -23,12 +23,12 @@ GIT
|
|
23
23
|
dry-container (~> 0.2, >= 0.2.8)
|
24
24
|
dry-equalizer (~> 0.2)
|
25
25
|
dry-logic (~> 0.2, >= 0.2.2)
|
26
|
-
dry-types (~> 0.
|
26
|
+
dry-types (~> 0.7, >= 0.7.1)
|
27
27
|
|
28
28
|
PATH
|
29
29
|
remote: .
|
30
30
|
specs:
|
31
|
-
formalist (0.
|
31
|
+
formalist (0.3.0)
|
32
32
|
dry-configurable
|
33
33
|
dry-container
|
34
34
|
dry-types
|
@@ -37,7 +37,7 @@ PATH
|
|
37
37
|
GEM
|
38
38
|
remote: https://rubygems.org/
|
39
39
|
specs:
|
40
|
-
byebug (8.2.
|
40
|
+
byebug (8.2.4)
|
41
41
|
codeclimate-test-reporter (0.5.0)
|
42
42
|
simplecov (>= 0.7.1, < 1.0.0)
|
43
43
|
coderay (1.1.1)
|
@@ -102,4 +102,4 @@ DEPENDENCIES
|
|
102
102
|
yard
|
103
103
|
|
104
104
|
BUNDLED WITH
|
105
|
-
1.
|
105
|
+
1.10.6
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require "formalist/element"
|
2
|
+
require "formalist/elements"
|
3
|
+
require "formalist/types"
|
4
|
+
|
5
|
+
module Formalist
|
6
|
+
class Elements
|
7
|
+
class MultiUploadField < Field
|
8
|
+
attribute :presign_url, Types::String
|
9
|
+
end
|
10
|
+
|
11
|
+
register :multi_upload_field, MultiUploadField
|
12
|
+
end
|
13
|
+
end
|
@@ -3,9 +3,11 @@ require "formalist/elements/standard/date_field"
|
|
3
3
|
require "formalist/elements/standard/date_time_field"
|
4
4
|
require "formalist/elements/standard/hidden_field"
|
5
5
|
require "formalist/elements/standard/multi_selection_field"
|
6
|
+
require "formalist/elements/standard/multi_upload_field"
|
6
7
|
require "formalist/elements/standard/number_field"
|
7
8
|
require "formalist/elements/standard/radio_buttons"
|
8
9
|
require "formalist/elements/standard/select_box"
|
9
10
|
require "formalist/elements/standard/selection_field"
|
10
11
|
require "formalist/elements/standard/text_area"
|
11
12
|
require "formalist/elements/standard/text_field"
|
13
|
+
require "formalist/elements/standard/upload_field"
|
data/lib/formalist/version.rb
CHANGED
data/spec/examples.txt
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
example_id | status | run_time |
|
2
2
|
-------------------------------------------------------- | ------ | --------------- |
|
3
|
-
./spec/integration/dependency_injection_spec.rb[1:1] | passed | 0.
|
4
|
-
./spec/integration/form_spec.rb[1:1] | passed | 0.
|
5
|
-
./spec/unit/elements/standard/check_box_spec.rb[1:1:1:1] | passed | 0.
|
6
|
-
./spec/unit/elements/standard/check_box_spec.rb[1:1:2:1] | passed | 0.
|
7
|
-
./spec/unit/elements/standard/check_box_spec.rb[1:1:3:1] | passed | 0.
|
8
|
-
./spec/unit/elements/standard/check_box_spec.rb[1:1:4:1] | passed | 0.
|
3
|
+
./spec/integration/dependency_injection_spec.rb[1:1] | passed | 0.00073 seconds |
|
4
|
+
./spec/integration/form_spec.rb[1:1] | passed | 0.0141 seconds |
|
5
|
+
./spec/unit/elements/standard/check_box_spec.rb[1:1:1:1] | passed | 0.00029 seconds |
|
6
|
+
./spec/unit/elements/standard/check_box_spec.rb[1:1:2:1] | passed | 0.00044 seconds |
|
7
|
+
./spec/unit/elements/standard/check_box_spec.rb[1:1:3:1] | passed | 0.00254 seconds |
|
8
|
+
./spec/unit/elements/standard/check_box_spec.rb[1:1:4:1] | passed | 0.00028 seconds |
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: formalist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Riley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04
|
11
|
+
date: 2016-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-configurable
|
@@ -167,12 +167,14 @@ files:
|
|
167
167
|
- lib/formalist/elements/standard/date_time_field.rb
|
168
168
|
- lib/formalist/elements/standard/hidden_field.rb
|
169
169
|
- lib/formalist/elements/standard/multi_selection_field.rb
|
170
|
+
- lib/formalist/elements/standard/multi_upload_field.rb
|
170
171
|
- lib/formalist/elements/standard/number_field.rb
|
171
172
|
- lib/formalist/elements/standard/radio_buttons.rb
|
172
173
|
- lib/formalist/elements/standard/select_box.rb
|
173
174
|
- lib/formalist/elements/standard/selection_field.rb
|
174
175
|
- lib/formalist/elements/standard/text_area.rb
|
175
176
|
- lib/formalist/elements/standard/text_field.rb
|
177
|
+
- lib/formalist/elements/standard/upload_field.rb
|
176
178
|
- lib/formalist/form.rb
|
177
179
|
- lib/formalist/form/definition_context.rb
|
178
180
|
- lib/formalist/form/result.rb
|
@@ -204,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
204
206
|
version: '0'
|
205
207
|
requirements: []
|
206
208
|
rubyforge_project:
|
207
|
-
rubygems_version: 2.5
|
209
|
+
rubygems_version: 2.4.5
|
208
210
|
signing_key:
|
209
211
|
specification_version: 4
|
210
212
|
summary: Flexible form builder
|