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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 06b049967b285ec9a0cd065c29933e0e5744d0750603dc3d07c0bf76f2ca962c
4
- data.tar.gz: 6afa85f62c683d43d5d77f98b65fcd225d7760bc82d8155ae4a657050921b8f4
3
+ metadata.gz: 2c5282b8e9074bea49606d083d99afe559d7745afd8e8aeb8d991682d77975df
4
+ data.tar.gz: d17228cd6f6eb152f3e7d75029ce25a45b2f63a9cc6ad7dad34ea49e70f71ac7
5
5
  SHA512:
6
- metadata.gz: ef581129f175f58640685d0c353646565328c70ec5c902eda5b149f1b16e59fc4020c368e4985521ec76dc311760c1cafc08202bfdc9316203f7713837d84f65
7
- data.tar.gz: 2c2386097ac9e7f50747ce305de5cbb4e9c7df12f491186e98f2ab775492c24e8a2d63dfa9f077009f8e30508773fd15db58a898eca98a753c1b9628d0f0f8d7
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.23.11)
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 (6.0.2.2)
13
- actionpack (= 6.0.2.2)
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 (6.0.2.2)
17
- actionpack (= 6.0.2.2)
18
- activejob (= 6.0.2.2)
19
- activerecord (= 6.0.2.2)
20
- activestorage (= 6.0.2.2)
21
- activesupport (= 6.0.2.2)
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 (6.0.2.2)
24
- actionpack (= 6.0.2.2)
25
- actionview (= 6.0.2.2)
26
- activejob (= 6.0.2.2)
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 (6.0.2.2)
30
- actionview (= 6.0.2.2)
31
- activesupport (= 6.0.2.2)
32
- rack (~> 2.0, >= 2.0.8)
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 (6.0.2.2)
37
- actionpack (= 6.0.2.2)
38
- activerecord (= 6.0.2.2)
39
- activestorage (= 6.0.2.2)
40
- activesupport (= 6.0.2.2)
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 (6.0.2.2)
43
- activesupport (= 6.0.2.2)
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 (6.0.2.2)
49
- activesupport (= 6.0.2.2)
51
+ activejob (7.0.0)
52
+ activesupport (= 7.0.0)
50
53
  globalid (>= 0.3.6)
51
- activemodel (6.0.2.2)
52
- activesupport (= 6.0.2.2)
53
- activerecord (6.0.2.2)
54
- activemodel (= 6.0.2.2)
55
- activesupport (= 6.0.2.2)
56
- activestorage (6.0.2.2)
57
- actionpack (= 6.0.2.2)
58
- activejob (= 6.0.2.2)
59
- activerecord (= 6.0.2.2)
60
- marcel (~> 0.3.1)
61
- activesupport (6.0.2.2)
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 (>= 0.7, < 2)
64
- minitest (~> 5.1)
65
- tzinfo (~> 1.1)
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.6)
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.9.0)
79
- globalid (0.4.2)
80
- activesupport (>= 4.2.0)
81
- i18n (1.8.2)
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.2.0)
84
- loofah (2.5.0)
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.3.3)
90
- mimemagic (~> 0.3.2)
93
+ marcel (1.0.2)
91
94
  method_source (1.0.0)
92
- mimemagic (0.3.4)
93
- mini_mime (1.0.2)
94
- mini_portile2 (2.4.0)
95
- minitest (5.14.0)
96
- nio4r (2.5.2)
97
- nokogiri (1.10.9)
98
- mini_portile2 (~> 2.4.0)
99
- rack (2.2.2)
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 (6.0.2.2)
103
- actioncable (= 6.0.2.2)
104
- actionmailbox (= 6.0.2.2)
105
- actionmailer (= 6.0.2.2)
106
- actionpack (= 6.0.2.2)
107
- actiontext (= 6.0.2.2)
108
- actionview (= 6.0.2.2)
109
- activejob (= 6.0.2.2)
110
- activemodel (= 6.0.2.2)
111
- activerecord (= 6.0.2.2)
112
- activestorage (= 6.0.2.2)
113
- activesupport (= 6.0.2.2)
114
- bundler (>= 1.3.0)
115
- railties (= 6.0.2.2)
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.3.0)
123
+ rails-html-sanitizer (1.4.2)
121
124
  loofah (~> 2.3)
122
- railties (6.0.2.2)
123
- actionpack (= 6.0.2.2)
124
- activesupport (= 6.0.2.2)
125
+ railties (7.0.0)
126
+ actionpack (= 7.0.0)
127
+ activesupport (= 7.0.0)
125
128
  method_source
126
- rake (>= 0.8.7)
127
- thor (>= 0.20.3, < 2.0)
129
+ rake (>= 12.2)
130
+ thor (~> 1.0)
131
+ zeitwerk (~> 2.5)
128
132
  rake (13.0.1)
129
- resonad (1.2.0)
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.20.3)
158
- thread_safe (0.3.6)
154
+ thor (1.0.1)
159
155
  tins (1.20.3)
160
- tzinfo (1.2.7)
161
- thread_safe (~> 0.1)
162
- websocket-driver (0.7.1)
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.4)
160
+ websocket-extensions (0.1.5)
165
161
  with_advisory_lock (4.6.0)
166
162
  activerecord (>= 4.2)
167
- zeitwerk (2.3.0)
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.0.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
- @attribute = form.errors.first.first
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
@@ -45,7 +45,7 @@ module Formify
45
45
  end
46
46
 
47
47
  def translation_data
48
- {}
48
+ nil
49
49
  end
50
50
 
51
51
  def self.translation_attributes_errors_key_base
@@ -1,3 +1,3 @@
1
1
  module Formify
2
- VERSION = '0.23.11'.freeze
2
+ VERSION = '0.24.0'.freeze
3
3
  end
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.23.11
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: 2020-04-06 00:00:00.000000000 Z
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.0.4
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: []