formalism-r18n_errors 0.4.0 → 0.5.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: bf8568cdb7a77c703de69e336de4e3761824c43b02553f52c9cd8974349f5816
4
- data.tar.gz: 222ce9d16e546c0efc3b0b4f95466b33312eac78b97a3c0a17f1f7d0b803dee1
3
+ metadata.gz: b95af648000ffca710f1e1d5b1297b3b875c5bfc76de300b288fb0f0fd60d96e
4
+ data.tar.gz: 29b23d5f842309f4012a6b0328d0b4c245e0db2d222a7630275c2c036c4c0b5a
5
5
  SHA512:
6
- metadata.gz: 4cadae2c515617ce9ec37faf95f0927fd050dcd87bb2624e36e87af69c943b9a3c919cba7281cbf5d45e8038008fc43b772195ea8cb56f50a57c402efd8e19f0
7
- data.tar.gz: 591bfe9578bc5fa4b010e976d7b7a6c8dcb7a144dccfbe76bafffd9d42ac43d0d32c164c604611f25dd14670817640c280ba138d3e01ac48062a7a782e8950e5
6
+ metadata.gz: 4494681e8f8f4d2da3ba860e93b32a9252c0ddd94711c90090c1cf2b8e3829dfc331c54091532b212700208c40e6d63ee2494e6c815a62c6799c5b86f86110a6
7
+ data.tar.gz: 5856bb2b9bd9907dfa5c7c463ca1d4a4a18634fe3782883116437dfcf935adc910cc806dd384c41e962a814c80189f5664c2bf099fe861d73cb83cbb402d0f83
data/CHANGELOG.md CHANGED
@@ -1,9 +1,23 @@
1
1
  # Changelog
2
2
 
3
- ## master (unreleased)
3
+ ## Unreleased
4
+
5
+ ## 0.5.0 (2022-09-24)
6
+
7
+ * Update `formalism` to a new version.
8
+ * Add Ruby 3.1 support.
9
+ * Update development dependencies.
10
+ * Resolve RuboCop offenses.
11
+ * Improve gemspec metadata.
12
+ * Add `bundle-audit` CI task.
4
13
 
5
14
  ## 0.4.0 (2021-04-16)
6
15
 
16
+ * Add `to_a` alias for `translations` method.
17
+ Fix an error with `#result` call of failed `Formalism::Form::Outcome`.
18
+ * Support Ruby 3.
19
+ * Update development dependencies.
20
+
7
21
  ## 0.3.2 (2020-09-28)
8
22
 
9
23
  * Add `#validate_uuid` validation helper.
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # Formalism R18n Errors
2
2
 
3
3
  [![Cirrus CI - Base Branch Build Status](https://img.shields.io/cirrus/github/AlexWayfer/formalism-r18n_errors?style=flat-square)](https://cirrus-ci.com/github/AlexWayfer/formalism-r18n_errors)
4
- [![Codecov branch](https://img.shields.io/codecov/c/github/AlexWayfer/formalism-r18n_errors/master.svg?style=flat-square)](https://codecov.io/gh/AlexWayfer/formalism-r18n_errors)
4
+ [![Codecov branch](https://img.shields.io/codecov/c/github/AlexWayfer/formalism-r18n_errors/main.svg?style=flat-square)](https://codecov.io/gh/AlexWayfer/formalism-r18n_errors)
5
5
  [![Code Climate](https://img.shields.io/codeclimate/maintainability/AlexWayfer/formalism-r18n_errors.svg?style=flat-square)](https://codeclimate.com/github/AlexWayfer/formalism-r18n_errors)
6
6
  [![Depfu](https://img.shields.io/depfu/AlexWayfer/benchmark_toys?style=flat-square)](https://depfu.com/repos/github/AlexWayfer/formalism-r18n_errors)
7
- [![Inline docs](https://inch-ci.org/github/AlexWayfer/formalism-r18n_errors.svg?branch=master)](https://inch-ci.org/github/AlexWayfer/formalism-r18n_errors)
7
+ [![Inline docs](https://inch-ci.org/github/AlexWayfer/formalism-r18n_errors.svg?branch=main)](https://inch-ci.org/github/AlexWayfer/formalism-r18n_errors)
8
8
  [![license](https://img.shields.io/github/license/AlexWayfer/formalism-r18n_errors.svg?style=flat-square)](LICENSE.txt)
9
9
  [![Gem](https://img.shields.io/gem/v/formalism-r18n_errors.svg?style=flat-square)](https://rubygems.org/gems/formalism-r18n_errors)
10
10
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Formalism
4
4
  module R18nErrors
5
- VERSION = '0.4.0'
5
+ VERSION = '0.5.0'
6
6
  end
7
7
  end
@@ -22,10 +22,11 @@ module Formalism
22
22
 
23
23
  private
24
24
 
25
- def initialize_nested_form(name, options)
25
+ def fill_nested_form(name, options)
26
26
  return unless (form = super)
27
27
 
28
28
  form.errors_key = options.fetch(:errors_key, name)
29
+
29
30
  form
30
31
  end
31
32
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formalism-r18n_errors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Popov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-16 00:00:00.000000000 Z
11
+ date: 2022-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: formalism
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.4.0
19
+ version: 0.5.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.4.0
26
+ version: 0.5.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: gorilla_patch
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,42 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.1.0
61
+ version: 0.2.4
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.2.4
69
+ - !ruby/object:Gem::Dependency
70
+ name: net-smtp
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.3.1
62
76
  type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
80
  - - "~>"
67
81
  - !ruby/object:Gem::Version
68
- version: 0.1.0
82
+ version: 0.3.1
83
+ - !ruby/object:Gem::Dependency
84
+ name: sequel
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '5.60'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '5.60'
69
97
  - !ruby/object:Gem::Dependency
70
98
  name: uuid
71
99
  requirement: !ruby/object:Gem::Requirement
@@ -109,47 +137,47 @@ dependencies:
109
137
  - !ruby/object:Gem::Version
110
138
  version: '2.0'
111
139
  - !ruby/object:Gem::Dependency
112
- name: gem_toys
140
+ name: bundler-audit
113
141
  requirement: !ruby/object:Gem::Requirement
114
142
  requirements:
115
143
  - - "~>"
116
144
  - !ruby/object:Gem::Version
117
- version: 0.8.0
145
+ version: 0.9.1
118
146
  type: :development
119
147
  prerelease: false
120
148
  version_requirements: !ruby/object:Gem::Requirement
121
149
  requirements:
122
150
  - - "~>"
123
151
  - !ruby/object:Gem::Version
124
- version: 0.8.0
152
+ version: 0.9.1
125
153
  - !ruby/object:Gem::Dependency
126
- name: toys
154
+ name: gem_toys
127
155
  requirement: !ruby/object:Gem::Requirement
128
156
  requirements:
129
157
  - - "~>"
130
158
  - !ruby/object:Gem::Version
131
- version: 0.11.0
159
+ version: 0.12.1
132
160
  type: :development
133
161
  prerelease: false
134
162
  version_requirements: !ruby/object:Gem::Requirement
135
163
  requirements:
136
164
  - - "~>"
137
165
  - !ruby/object:Gem::Version
138
- version: 0.11.0
166
+ version: 0.12.1
139
167
  - !ruby/object:Gem::Dependency
140
- name: codecov
168
+ name: toys
141
169
  requirement: !ruby/object:Gem::Requirement
142
170
  requirements:
143
171
  - - "~>"
144
172
  - !ruby/object:Gem::Version
145
- version: 0.5.0
173
+ version: 0.13.1
146
174
  type: :development
147
175
  prerelease: false
148
176
  version_requirements: !ruby/object:Gem::Requirement
149
177
  requirements:
150
178
  - - "~>"
151
179
  - !ruby/object:Gem::Version
152
- version: 0.5.0
180
+ version: 0.13.1
153
181
  - !ruby/object:Gem::Dependency
154
182
  name: rspec
155
183
  requirement: !ruby/object:Gem::Requirement
@@ -178,20 +206,34 @@ dependencies:
178
206
  - - "~>"
179
207
  - !ruby/object:Gem::Version
180
208
  version: 0.21.0
209
+ - !ruby/object:Gem::Dependency
210
+ name: simplecov-cobertura
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: '2.1'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - "~>"
221
+ - !ruby/object:Gem::Version
222
+ version: '2.1'
181
223
  - !ruby/object:Gem::Dependency
182
224
  name: rubocop
183
225
  requirement: !ruby/object:Gem::Requirement
184
226
  requirements:
185
227
  - - "~>"
186
228
  - !ruby/object:Gem::Version
187
- version: '1.12'
229
+ version: 1.36.0
188
230
  type: :development
189
231
  prerelease: false
190
232
  version_requirements: !ruby/object:Gem::Requirement
191
233
  requirements:
192
234
  - - "~>"
193
235
  - !ruby/object:Gem::Version
194
- version: '1.12'
236
+ version: 1.36.0
195
237
  - !ruby/object:Gem::Dependency
196
238
  name: rubocop-performance
197
239
  requirement: !ruby/object:Gem::Requirement
@@ -220,6 +262,20 @@ dependencies:
220
262
  - - "~>"
221
263
  - !ruby/object:Gem::Version
222
264
  version: '2.2'
265
+ - !ruby/object:Gem::Dependency
266
+ name: rubocop-sequel
267
+ requirement: !ruby/object:Gem::Requirement
268
+ requirements:
269
+ - - "~>"
270
+ - !ruby/object:Gem::Version
271
+ version: 0.3.4
272
+ type: :development
273
+ prerelease: false
274
+ version_requirements: !ruby/object:Gem::Requirement
275
+ requirements:
276
+ - - "~>"
277
+ - !ruby/object:Gem::Version
278
+ version: 0.3.4
223
279
  description: 'Errors for Formalism via R18n.
224
280
 
225
281
  '
@@ -240,9 +296,11 @@ homepage: https://github.com/AlexWayfer/formalism-r18n_errors
240
296
  licenses:
241
297
  - MIT
242
298
  metadata:
243
- source_code_uri: https://github.com/AlexWayfer/formalism-r18n_errors
299
+ bug_tracker_uri: https://github.com/AlexWayfer/formalism-r18n_errors/issues
300
+ changelog_uri: https://github.com/AlexWayfer/formalism-r18n_errors/blob/v0.5.0/CHANGELOG.md
244
301
  homepage_uri: https://github.com/AlexWayfer/formalism-r18n_errors
245
- changelog_uri: https://github.com/AlexWayfer/formalism-r18n_errors/blob/master/CHANGELOG.md
302
+ rubygems_mfa_required: 'true'
303
+ source_code_uri: https://github.com/AlexWayfer/formalism-r18n_errors
246
304
  post_install_message:
247
305
  rdoc_options: []
248
306
  require_paths:
@@ -261,7 +319,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
261
319
  - !ruby/object:Gem::Version
262
320
  version: '0'
263
321
  requirements: []
264
- rubygems_version: 3.2.15
322
+ rubygems_version: 3.3.7
265
323
  signing_key:
266
324
  specification_version: 4
267
325
  summary: Errors for Formalism via R18n