formify 0.23.11 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +91 -95
- data/README.md +4 -0
- data/lib/formify/errors/validation_error.rb +6 -1
- data/lib/formify/form.rb +1 -1
- data/lib/formify/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c5282b8e9074bea49606d083d99afe559d7745afd8e8aeb8d991682d77975df
|
4
|
+
data.tar.gz: d17228cd6f6eb152f3e7d75029ce25a45b2f63a9cc6ad7dad34ea49e70f71ac7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33d1a3e320480f7b7b5bf07dd58df175920c99058037c3ffe6a0561922febe014fca8988623c173a5401f8a47a78bff51c466de6c8f80318bed673b550b7ff81
|
7
|
+
data.tar.gz: 296e2f63680452f8117ab9e00792cbe363b43fec40096bd26b1f21eaa94d3d8551fb371fa6dec4f4703792ddfed1ed6571ecbb097951a5b01ef6214418f90494
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
formify (0.
|
4
|
+
formify (0.24.0)
|
5
5
|
rails
|
6
6
|
resonad
|
7
7
|
with_advisory_lock
|
@@ -9,63 +9,67 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
actioncable (
|
13
|
-
actionpack (=
|
12
|
+
actioncable (7.0.0)
|
13
|
+
actionpack (= 7.0.0)
|
14
|
+
activesupport (= 7.0.0)
|
14
15
|
nio4r (~> 2.0)
|
15
16
|
websocket-driver (>= 0.6.1)
|
16
|
-
actionmailbox (
|
17
|
-
actionpack (=
|
18
|
-
activejob (=
|
19
|
-
activerecord (=
|
20
|
-
activestorage (=
|
21
|
-
activesupport (=
|
17
|
+
actionmailbox (7.0.0)
|
18
|
+
actionpack (= 7.0.0)
|
19
|
+
activejob (= 7.0.0)
|
20
|
+
activerecord (= 7.0.0)
|
21
|
+
activestorage (= 7.0.0)
|
22
|
+
activesupport (= 7.0.0)
|
22
23
|
mail (>= 2.7.1)
|
23
|
-
actionmailer (
|
24
|
-
actionpack (=
|
25
|
-
actionview (=
|
26
|
-
activejob (=
|
24
|
+
actionmailer (7.0.0)
|
25
|
+
actionpack (= 7.0.0)
|
26
|
+
actionview (= 7.0.0)
|
27
|
+
activejob (= 7.0.0)
|
28
|
+
activesupport (= 7.0.0)
|
27
29
|
mail (~> 2.5, >= 2.5.4)
|
28
30
|
rails-dom-testing (~> 2.0)
|
29
|
-
actionpack (
|
30
|
-
actionview (=
|
31
|
-
activesupport (=
|
32
|
-
rack (~> 2.0, >= 2.0
|
31
|
+
actionpack (7.0.0)
|
32
|
+
actionview (= 7.0.0)
|
33
|
+
activesupport (= 7.0.0)
|
34
|
+
rack (~> 2.0, >= 2.2.0)
|
33
35
|
rack-test (>= 0.6.3)
|
34
36
|
rails-dom-testing (~> 2.0)
|
35
37
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
36
|
-
actiontext (
|
37
|
-
actionpack (=
|
38
|
-
activerecord (=
|
39
|
-
activestorage (=
|
40
|
-
activesupport (=
|
38
|
+
actiontext (7.0.0)
|
39
|
+
actionpack (= 7.0.0)
|
40
|
+
activerecord (= 7.0.0)
|
41
|
+
activestorage (= 7.0.0)
|
42
|
+
activesupport (= 7.0.0)
|
43
|
+
globalid (>= 0.6.0)
|
41
44
|
nokogiri (>= 1.8.5)
|
42
|
-
actionview (
|
43
|
-
activesupport (=
|
45
|
+
actionview (7.0.0)
|
46
|
+
activesupport (= 7.0.0)
|
44
47
|
builder (~> 3.1)
|
45
48
|
erubi (~> 1.4)
|
46
49
|
rails-dom-testing (~> 2.0)
|
47
50
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
48
|
-
activejob (
|
49
|
-
activesupport (=
|
51
|
+
activejob (7.0.0)
|
52
|
+
activesupport (= 7.0.0)
|
50
53
|
globalid (>= 0.3.6)
|
51
|
-
activemodel (
|
52
|
-
activesupport (=
|
53
|
-
activerecord (
|
54
|
-
activemodel (=
|
55
|
-
activesupport (=
|
56
|
-
activestorage (
|
57
|
-
actionpack (=
|
58
|
-
activejob (=
|
59
|
-
activerecord (=
|
60
|
-
|
61
|
-
|
54
|
+
activemodel (7.0.0)
|
55
|
+
activesupport (= 7.0.0)
|
56
|
+
activerecord (7.0.0)
|
57
|
+
activemodel (= 7.0.0)
|
58
|
+
activesupport (= 7.0.0)
|
59
|
+
activestorage (7.0.0)
|
60
|
+
actionpack (= 7.0.0)
|
61
|
+
activejob (= 7.0.0)
|
62
|
+
activerecord (= 7.0.0)
|
63
|
+
activesupport (= 7.0.0)
|
64
|
+
marcel (~> 1.0)
|
65
|
+
mini_mime (>= 1.1.0)
|
66
|
+
activesupport (7.0.0)
|
62
67
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
63
|
-
i18n (>=
|
64
|
-
minitest (
|
65
|
-
tzinfo (~>
|
66
|
-
zeitwerk (~> 2.2)
|
68
|
+
i18n (>= 1.6, < 2)
|
69
|
+
minitest (>= 5.1)
|
70
|
+
tzinfo (~> 2.0)
|
67
71
|
builder (3.2.4)
|
68
|
-
concurrent-ruby (1.1.
|
72
|
+
concurrent-ruby (1.1.9)
|
69
73
|
coveralls (0.8.23)
|
70
74
|
json (>= 1.8, < 3)
|
71
75
|
simplecov (~> 0.16.1)
|
@@ -75,58 +79,58 @@ GEM
|
|
75
79
|
crass (1.0.6)
|
76
80
|
diff-lcs (1.3)
|
77
81
|
docile (1.3.2)
|
78
|
-
erubi (1.
|
79
|
-
globalid (0.
|
80
|
-
activesupport (>=
|
81
|
-
i18n (1.8.
|
82
|
+
erubi (1.10.0)
|
83
|
+
globalid (1.0.0)
|
84
|
+
activesupport (>= 5.0)
|
85
|
+
i18n (1.8.11)
|
82
86
|
concurrent-ruby (~> 1.0)
|
83
|
-
json (2.
|
84
|
-
loofah (2.
|
87
|
+
json (2.3.1)
|
88
|
+
loofah (2.13.0)
|
85
89
|
crass (~> 1.0.2)
|
86
90
|
nokogiri (>= 1.5.9)
|
87
91
|
mail (2.7.1)
|
88
92
|
mini_mime (>= 0.1.1)
|
89
|
-
marcel (0.
|
90
|
-
mimemagic (~> 0.3.2)
|
93
|
+
marcel (1.0.2)
|
91
94
|
method_source (1.0.0)
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
95
|
+
mini_mime (1.1.2)
|
96
|
+
mini_portile2 (2.6.1)
|
97
|
+
minitest (5.15.0)
|
98
|
+
nio4r (2.5.8)
|
99
|
+
nokogiri (1.12.5)
|
100
|
+
mini_portile2 (~> 2.6.1)
|
101
|
+
racc (~> 1.4)
|
102
|
+
racc (1.6.0)
|
103
|
+
rack (2.2.3)
|
100
104
|
rack-test (1.1.0)
|
101
105
|
rack (>= 1.0, < 3)
|
102
|
-
rails (
|
103
|
-
actioncable (=
|
104
|
-
actionmailbox (=
|
105
|
-
actionmailer (=
|
106
|
-
actionpack (=
|
107
|
-
actiontext (=
|
108
|
-
actionview (=
|
109
|
-
activejob (=
|
110
|
-
activemodel (=
|
111
|
-
activerecord (=
|
112
|
-
activestorage (=
|
113
|
-
activesupport (=
|
114
|
-
bundler (>= 1.
|
115
|
-
railties (=
|
116
|
-
sprockets-rails (>= 2.0.0)
|
106
|
+
rails (7.0.0)
|
107
|
+
actioncable (= 7.0.0)
|
108
|
+
actionmailbox (= 7.0.0)
|
109
|
+
actionmailer (= 7.0.0)
|
110
|
+
actionpack (= 7.0.0)
|
111
|
+
actiontext (= 7.0.0)
|
112
|
+
actionview (= 7.0.0)
|
113
|
+
activejob (= 7.0.0)
|
114
|
+
activemodel (= 7.0.0)
|
115
|
+
activerecord (= 7.0.0)
|
116
|
+
activestorage (= 7.0.0)
|
117
|
+
activesupport (= 7.0.0)
|
118
|
+
bundler (>= 1.15.0)
|
119
|
+
railties (= 7.0.0)
|
117
120
|
rails-dom-testing (2.0.3)
|
118
121
|
activesupport (>= 4.2.0)
|
119
122
|
nokogiri (>= 1.6)
|
120
|
-
rails-html-sanitizer (1.
|
123
|
+
rails-html-sanitizer (1.4.2)
|
121
124
|
loofah (~> 2.3)
|
122
|
-
railties (
|
123
|
-
actionpack (=
|
124
|
-
activesupport (=
|
125
|
+
railties (7.0.0)
|
126
|
+
actionpack (= 7.0.0)
|
127
|
+
activesupport (= 7.0.0)
|
125
128
|
method_source
|
126
|
-
rake (>=
|
127
|
-
thor (
|
129
|
+
rake (>= 12.2)
|
130
|
+
thor (~> 1.0)
|
131
|
+
zeitwerk (~> 2.5)
|
128
132
|
rake (13.0.1)
|
129
|
-
resonad (1.
|
133
|
+
resonad (1.4.0)
|
130
134
|
rspec (3.8.0)
|
131
135
|
rspec-core (~> 3.8.0)
|
132
136
|
rspec-expectations (~> 3.8.0)
|
@@ -145,26 +149,18 @@ GEM
|
|
145
149
|
json (>= 1.8, < 3)
|
146
150
|
simplecov-html (~> 0.10.0)
|
147
151
|
simplecov-html (0.10.2)
|
148
|
-
sprockets (4.0.0)
|
149
|
-
concurrent-ruby (~> 1.0)
|
150
|
-
rack (> 1, < 3)
|
151
|
-
sprockets-rails (3.2.1)
|
152
|
-
actionpack (>= 4.0)
|
153
|
-
activesupport (>= 4.0)
|
154
|
-
sprockets (>= 3.0.0)
|
155
152
|
term-ansicolor (1.7.1)
|
156
153
|
tins (~> 1.0)
|
157
|
-
thor (0.
|
158
|
-
thread_safe (0.3.6)
|
154
|
+
thor (1.0.1)
|
159
155
|
tins (1.20.3)
|
160
|
-
tzinfo (
|
161
|
-
|
162
|
-
websocket-driver (0.7.
|
156
|
+
tzinfo (2.0.4)
|
157
|
+
concurrent-ruby (~> 1.0)
|
158
|
+
websocket-driver (0.7.5)
|
163
159
|
websocket-extensions (>= 0.1.0)
|
164
|
-
websocket-extensions (0.1.
|
160
|
+
websocket-extensions (0.1.5)
|
165
161
|
with_advisory_lock (4.6.0)
|
166
162
|
activerecord (>= 4.2)
|
167
|
-
zeitwerk (2.3
|
163
|
+
zeitwerk (2.5.3)
|
168
164
|
|
169
165
|
PLATFORMS
|
170
166
|
ruby
|
@@ -177,4 +173,4 @@ DEPENDENCIES
|
|
177
173
|
rspec (~> 3.0)
|
178
174
|
|
179
175
|
BUNDLED WITH
|
180
|
-
2.
|
176
|
+
2.1.4
|
data/README.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Formify
|
2
2
|
|
3
|
+
## DEPRECATED
|
4
|
+
|
5
|
+
This project has been deprecated in favor of [ActiveInteraction](https://github.com/AaronLasseigne/active_interaction). No future updates will be made to this repo or gem.
|
6
|
+
|
3
7
|
[![Build Status](https://travis-ci.org/ryanwjackson/formify.svg?branch=master)](https://travis-ci.org/ryanwjackson/formify) [![Coverage Status](https://coveralls.io/repos/github/ryanwjackson/formify/badge.svg?branch=master)](https://coveralls.io/github/ryanwjackson/formify?branch=master)
|
4
8
|
|
5
9
|
Formify gives you scaffolding for quickly adding robust forms to your application. Formify also includes rspec testing helpers, making it easy to validate forms.
|
@@ -4,7 +4,12 @@ module Formify
|
|
4
4
|
attr_reader :attribute
|
5
5
|
|
6
6
|
def initialize(form:)
|
7
|
-
|
7
|
+
first_error = form.errors.first
|
8
|
+
@attribute = if first_error.methods.include?(:attribute)
|
9
|
+
first_error.attribute
|
10
|
+
else
|
11
|
+
first_error.first
|
12
|
+
end
|
8
13
|
|
9
14
|
super(
|
10
15
|
form: form,
|
data/lib/formify/form.rb
CHANGED
data/lib/formify/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: formify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Jackson
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -147,7 +147,7 @@ homepage: https://www.github.com/ryanwjackson/formify
|
|
147
147
|
licenses:
|
148
148
|
- MIT
|
149
149
|
metadata: {}
|
150
|
-
post_install_message:
|
150
|
+
post_install_message:
|
151
151
|
rdoc_options: []
|
152
152
|
require_paths:
|
153
153
|
- lib
|
@@ -162,8 +162,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
162
|
- !ruby/object:Gem::Version
|
163
163
|
version: '0'
|
164
164
|
requirements: []
|
165
|
-
rubygems_version: 3.
|
166
|
-
signing_key:
|
165
|
+
rubygems_version: 3.2.22
|
166
|
+
signing_key:
|
167
167
|
specification_version: 4
|
168
168
|
summary: Formify gives structure to using form objects in a Rails project.
|
169
169
|
test_files: []
|