active_dry_form 1.2.0 → 1.2.1

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: cf18cc2ebde6884512470f6e4de204ee9473ee7cc3e27f49f8a2bf736015ff24
4
- data.tar.gz: aacd0d28f70cad7afd0651412b9ee2fe7e5bee2542331d5826d6df2ce41a5542
3
+ metadata.gz: d1617a05c5aafd73c384b8648854bb63ec91d0ee67bde7839fc3066f99405094
4
+ data.tar.gz: b38b427a933750e6ba71f8e8b7f73b961f016018e9d61937db5f4c20297debd7
5
5
  SHA512:
6
- metadata.gz: e31ed6f7136d9204d03c8410a082aa7f20235dfc36d0641af77c57373dde1affd2ecf4fa050e770b80857b1a628734b5112d922f4d08fdb6db31a8b42873bee3
7
- data.tar.gz: 45d43450f6588e461d24d45b8b30de12b7f9b0da074253af0c273cb9d2cbaea5a34a4ef9516832fa640fa68ed53e9fef89efb0c62ba79b7fc3f3551a6dec23ad
6
+ metadata.gz: d87bf0612c714715464887c085b8878fbc28a83c9229301afaaafaa513d214acb7e47b3f65e908439e5ccc6908f8dbc3ec5376c0b6386e8e4d3e275f7a11b2b8
7
+ data.tar.gz: '098529ead554b1a0182a31053e7476c7cef292b6301da279733727d916d5e4ed9417e9eb92ca3b2d7bca1a519138bc137dd5fbad9f3856b6914f548bd3730490'
data/Gemfile.lock CHANGED
@@ -1,6 +1,6 @@
1
1
  GIT
2
2
  remote: https://github.com/corp-gp/rubocop-gp.git
3
- revision: e5bd900ce4b10077cf8f4ae88a5a6e32e7861b65
3
+ revision: 867f7e1351c3730897cacdc20ce2d727604de245
4
4
  specs:
5
5
  rubocop-gp (0.0.4)
6
6
  rubocop
@@ -27,7 +27,7 @@ GIT
27
27
  PATH
28
28
  remote: .
29
29
  specs:
30
- active_dry_form (1.1.1)
30
+ active_dry_form (1.2.1)
31
31
  actionpack
32
32
  activerecord
33
33
  dry-configurable
@@ -37,64 +37,70 @@ PATH
37
37
  GEM
38
38
  remote: https://rubygems.org/
39
39
  specs:
40
- actionpack (7.1.3.4)
41
- actionview (= 7.1.3.4)
42
- activesupport (= 7.1.3.4)
40
+ actionpack (7.2.2.1)
41
+ actionview (= 7.2.2.1)
42
+ activesupport (= 7.2.2.1)
43
43
  nokogiri (>= 1.8.5)
44
44
  racc
45
- rack (>= 2.2.4)
45
+ rack (>= 2.2.4, < 3.2)
46
46
  rack-session (>= 1.0.1)
47
47
  rack-test (>= 0.6.3)
48
48
  rails-dom-testing (~> 2.2)
49
49
  rails-html-sanitizer (~> 1.6)
50
- actionview (7.1.3.4)
51
- activesupport (= 7.1.3.4)
50
+ useragent (~> 0.16)
51
+ actionview (7.2.2.1)
52
+ activesupport (= 7.2.2.1)
52
53
  builder (~> 3.1)
53
54
  erubi (~> 1.11)
54
55
  rails-dom-testing (~> 2.2)
55
56
  rails-html-sanitizer (~> 1.6)
56
- activemodel (7.1.3.4)
57
- activesupport (= 7.1.3.4)
58
- activerecord (7.1.3.4)
59
- activemodel (= 7.1.3.4)
60
- activesupport (= 7.1.3.4)
57
+ activemodel (7.2.2.1)
58
+ activesupport (= 7.2.2.1)
59
+ activerecord (7.2.2.1)
60
+ activemodel (= 7.2.2.1)
61
+ activesupport (= 7.2.2.1)
61
62
  timeout (>= 0.4.0)
62
- activesupport (7.1.3.4)
63
+ activesupport (7.2.2.1)
63
64
  base64
65
+ benchmark (>= 0.3)
64
66
  bigdecimal
65
- concurrent-ruby (~> 1.0, >= 1.0.2)
67
+ concurrent-ruby (~> 1.0, >= 1.3.1)
66
68
  connection_pool (>= 2.2.5)
67
69
  drb
68
70
  i18n (>= 1.6, < 2)
71
+ logger (>= 1.4.2)
69
72
  minitest (>= 5.1)
70
- mutex_m
71
- tzinfo (~> 2.0)
73
+ securerandom (>= 0.3)
74
+ tzinfo (~> 2.0, >= 2.0.5)
72
75
  ast (2.4.2)
73
76
  base64 (0.2.0)
74
- bigdecimal (3.1.8)
77
+ benchmark (0.4.0)
78
+ bigdecimal (3.1.9)
75
79
  builder (3.3.0)
76
- concurrent-ruby (1.3.3)
77
- connection_pool (2.4.1)
80
+ concurrent-ruby (1.3.4)
81
+ connection_pool (2.5.0)
78
82
  crass (1.0.6)
79
83
  diff-lcs (1.5.1)
80
84
  drb (2.2.1)
81
- dry-configurable (1.2.0)
82
- dry-core (~> 1.0, < 2)
85
+ dry-configurable (1.3.0)
86
+ dry-core (~> 1.1)
83
87
  zeitwerk (~> 2.6)
84
- dry-core (1.0.1)
88
+ dry-core (1.1.0)
85
89
  concurrent-ruby (~> 1.0)
90
+ logger
86
91
  zeitwerk (~> 2.6)
87
- dry-inflector (1.1.0)
88
- dry-initializer (3.1.1)
89
- dry-logic (1.5.0)
92
+ dry-inflector (1.2.0)
93
+ dry-initializer (3.2.0)
94
+ dry-logic (1.6.0)
95
+ bigdecimal
90
96
  concurrent-ruby (~> 1.0)
91
- dry-core (~> 1.0, < 2)
97
+ dry-core (~> 1.1)
92
98
  zeitwerk (~> 2.6)
93
- dry-monads (1.6.0)
99
+ dry-monads (1.7.0)
94
100
  concurrent-ruby (~> 1.0)
95
- dry-core (~> 1.0, < 2)
101
+ dry-core (~> 1.1)
96
102
  zeitwerk (~> 2.6)
97
- dry-types (1.7.2)
103
+ dry-types (1.8.0)
98
104
  bigdecimal (~> 3.0)
99
105
  concurrent-ruby (~> 1.0)
100
106
  dry-core (~> 1.0)
@@ -107,94 +113,97 @@ GEM
107
113
  dry-initializer (~> 3.0)
108
114
  dry-schema (>= 1.12, < 2)
109
115
  zeitwerk (~> 2.6)
110
- erubi (1.13.0)
111
- i18n (1.14.5)
116
+ erubi (1.13.1)
117
+ i18n (1.14.6)
112
118
  concurrent-ruby (~> 1.0)
113
- json (2.7.2)
119
+ json (2.9.1)
114
120
  language_server-protocol (3.17.0.3)
115
- loofah (2.22.0)
121
+ logger (1.6.5)
122
+ loofah (2.24.0)
116
123
  crass (~> 1.0.2)
117
124
  nokogiri (>= 1.12.0)
118
- minitest (5.24.1)
119
- mutex_m (0.2.0)
120
- nokogiri (1.16.6-arm64-darwin)
125
+ mini_portile2 (2.8.8)
126
+ minitest (5.25.4)
127
+ nokogiri (1.18.1)
128
+ mini_portile2 (~> 2.8.2)
121
129
  racc (~> 1.4)
122
- nokogiri (1.16.6-x86_64-linux)
130
+ nokogiri (1.18.1-arm64-darwin)
123
131
  racc (~> 1.4)
124
- parallel (1.25.1)
125
- parser (3.3.3.0)
132
+ parallel (1.26.3)
133
+ parser (3.3.6.0)
126
134
  ast (~> 2.4.1)
127
135
  racc
128
- racc (1.8.0)
129
- rack (3.1.6)
130
- rack-session (2.0.0)
136
+ racc (1.8.1)
137
+ rack (3.1.8)
138
+ rack-session (2.1.0)
139
+ base64 (>= 0.1.0)
131
140
  rack (>= 3.0.0)
132
- rack-test (2.1.0)
141
+ rack-test (2.2.0)
133
142
  rack (>= 1.3)
134
143
  rails-dom-testing (2.2.0)
135
144
  activesupport (>= 5.0.0)
136
145
  minitest
137
146
  nokogiri (>= 1.6)
138
- rails-html-sanitizer (1.6.0)
147
+ rails-html-sanitizer (1.6.2)
139
148
  loofah (~> 2.21)
140
- nokogiri (~> 1.14)
149
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
141
150
  rainbow (3.1.1)
142
151
  rake (13.2.1)
143
- regexp_parser (2.9.2)
144
- rexml (3.3.1)
145
- strscan
152
+ regexp_parser (2.10.0)
146
153
  rspec (3.13.0)
147
154
  rspec-core (~> 3.13.0)
148
155
  rspec-expectations (~> 3.13.0)
149
156
  rspec-mocks (~> 3.13.0)
150
- rspec-core (3.13.0)
157
+ rspec-core (3.13.2)
151
158
  rspec-support (~> 3.13.0)
152
- rspec-expectations (3.13.1)
159
+ rspec-expectations (3.13.3)
153
160
  diff-lcs (>= 1.2.0, < 2.0)
154
161
  rspec-support (~> 3.13.0)
155
- rspec-mocks (3.13.1)
162
+ rspec-mocks (3.13.2)
156
163
  diff-lcs (>= 1.2.0, < 2.0)
157
164
  rspec-support (~> 3.13.0)
158
- rspec-support (3.13.1)
159
- rubocop (1.64.1)
165
+ rspec-support (3.13.2)
166
+ rubocop (1.70.0)
160
167
  json (~> 2.3)
161
168
  language_server-protocol (>= 3.17.0)
162
169
  parallel (~> 1.10)
163
170
  parser (>= 3.3.0.2)
164
171
  rainbow (>= 2.2.2, < 4.0)
165
- regexp_parser (>= 1.8, < 3.0)
166
- rexml (>= 3.2.5, < 4.0)
167
- rubocop-ast (>= 1.31.1, < 2.0)
172
+ regexp_parser (>= 2.9.3, < 3.0)
173
+ rubocop-ast (>= 1.36.2, < 2.0)
168
174
  ruby-progressbar (~> 1.7)
169
- unicode-display_width (>= 2.4.0, < 3.0)
170
- rubocop-ast (1.31.3)
175
+ unicode-display_width (>= 2.4.0, < 4.0)
176
+ rubocop-ast (1.37.0)
171
177
  parser (>= 3.3.1.0)
172
178
  rubocop-capybara (2.21.0)
173
179
  rubocop (~> 1.41)
174
180
  rubocop-factory_bot (2.26.1)
175
181
  rubocop (~> 1.61)
176
- rubocop-performance (1.21.1)
182
+ rubocop-performance (1.23.1)
177
183
  rubocop (>= 1.48.1, < 2.0)
178
184
  rubocop-ast (>= 1.31.1, < 2.0)
179
- rubocop-rails (2.25.1)
185
+ rubocop-rails (2.28.0)
180
186
  activesupport (>= 4.2.0)
181
187
  rack (>= 1.1)
182
- rubocop (>= 1.33.0, < 2.0)
188
+ rubocop (>= 1.52.0, < 2.0)
183
189
  rubocop-ast (>= 1.31.1, < 2.0)
184
- rubocop-rspec (3.0.2)
190
+ rubocop-rspec (3.3.0)
185
191
  rubocop (~> 1.61)
186
192
  rubocop-rspec_rails (2.30.0)
187
193
  rubocop (~> 1.61)
188
194
  rubocop-rspec (~> 3, >= 3.0.1)
189
195
  ruby-progressbar (1.13.0)
196
+ securerandom (0.4.1)
190
197
  sqlite3 (1.7.3-arm64-darwin)
191
198
  sqlite3 (1.7.3-x86_64-linux)
192
- strscan (3.1.0)
193
- timeout (0.4.1)
199
+ timeout (0.4.3)
194
200
  tzinfo (2.0.6)
195
201
  concurrent-ruby (~> 1.0)
196
- unicode-display_width (2.5.0)
197
- zeitwerk (2.6.16)
202
+ unicode-display_width (3.1.3)
203
+ unicode-emoji (~> 4.0, >= 4.0.4)
204
+ unicode-emoji (4.0.4)
205
+ useragent (0.16.11)
206
+ zeitwerk (2.6.18)
198
207
 
199
208
  PLATFORMS
200
209
  arm64-darwin-21
@@ -114,7 +114,7 @@ module ActiveDryForm
114
114
  end
115
115
 
116
116
  def validate
117
- @validator = self.class::CURRENT_CONTRACT.call(attributes, { form: self, record: record })
117
+ @validator = self.class::CURRENT_CONTRACT.call(attributes, { form: self, record: })
118
118
  @data = @validator.values.data
119
119
  @errors = @validator.errors.to_h
120
120
  @base_errors = @validator.errors.filter(:base?).map(&:to_s)
@@ -221,7 +221,7 @@ module ActiveDryForm
221
221
  when String
222
222
  object.strip.presence
223
223
  when Hash
224
- object.transform_values! { |value| _deep_transform_values_in_params!(value) }
224
+ object.transform_values { |value| _deep_transform_values_in_params!(value) }
225
225
  when Array
226
226
  object.filter_map { |e| _deep_transform_values_in_params!(e) }
227
227
  else
@@ -66,7 +66,7 @@ module ActiveDryForm
66
66
  ActiveDryForm::Input.new(self, nil, field, {}).error_text
67
67
  end
68
68
 
69
- def button(value = nil, options = {}, &block)
69
+ def button(value = nil, options = {}, &)
70
70
  options[:class] = [options[:class], 'button'].compact
71
71
  super
72
72
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module ActiveDryForm
4
4
 
5
- VERSION = '1.2.0'
5
+ VERSION = '1.2.1'
6
6
 
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_dry_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ermolaev Andrey
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-01-12 00:00:00.000000000 Z
11
+ date: 2025-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack