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: 96b43ff385384015c3c6c1cac64a8e9cccaa753c
4
- data.tar.gz: 42acab631e93a3c52c73de8a5822c96622e7b2af
3
+ metadata.gz: 3a25ed29e5310c5707691b6e42089f845acda96d
4
+ data.tar.gz: ae3ec66e1957062442a116068671e7924009a49d
5
5
  SHA512:
6
- metadata.gz: 1cdeb2f130a14bceb9a8af2a71fcf22c463c1fc1554b42fc98ccc20bb826804853004553a3cee82114500ba49139d4413adb0ab3855cae19f73c2fa2a06e4594
7
- data.tar.gz: b87cd081725b0fe4556858d33b8648f0dead749122d74f2e5371eb720958d5610deb104e0de09a6d1341d4ec7825a01907aad807072ac2747d2536c852505b87
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: 9d72307cfaa33afa8b597646cd77a06de8b6bb88
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: 6167d6f778faefe13916d3d8eee8bdb4197398d3
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.6, >= 0.6.0)
26
+ dry-types (~> 0.7, >= 0.7.1)
27
27
 
28
28
  PATH
29
29
  remote: .
30
30
  specs:
31
- formalist (0.2.3)
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.3)
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.11.2
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
@@ -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 UploadField < Field
8
+ attribute :presign_url, Types::String
9
+ end
10
+
11
+ register :upload_field, UploadField
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"
@@ -1,3 +1,3 @@
1
1
  module Formalist
2
- VERSION = "0.2.3".freeze
2
+ VERSION = "0.3.0".freeze
3
3
  end
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.00111 seconds |
4
- ./spec/integration/form_spec.rb[1:1] | passed | 0.01078 seconds |
5
- ./spec/unit/elements/standard/check_box_spec.rb[1:1:1:1] | passed | 0.00026 seconds |
6
- ./spec/unit/elements/standard/check_box_spec.rb[1:1:2:1] | passed | 0.00023 seconds |
7
- ./spec/unit/elements/standard/check_box_spec.rb[1:1:3:1] | passed | 0.00019 seconds |
8
- ./spec/unit/elements/standard/check_box_spec.rb[1:1:4:1] | passed | 0.00107 seconds |
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.2.3
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-07 00:00:00.000000000 Z
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.1
209
+ rubygems_version: 2.4.5
208
210
  signing_key:
209
211
  specification_version: 4
210
212
  summary: Flexible form builder