formalism-r18n_errors 0.3.2 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -1
- data/README.md +2 -2
- data/lib/formalism/r18n_errors/errors.rb +3 -1
- data/lib/formalism/r18n_errors/version.rb +1 -1
- data/lib/formalism/r18n_errors.rb +2 -1
- metadata +88 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b95af648000ffca710f1e1d5b1297b3b875c5bfc76de300b288fb0f0fd60d96e
|
4
|
+
data.tar.gz: 29b23d5f842309f4012a6b0328d0b4c245e0db2d222a7630275c2c036c4c0b5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4494681e8f8f4d2da3ba860e93b32a9252c0ddd94711c90090c1cf2b8e3829dfc331c54091532b212700208c40e6d63ee2494e6c815a62c6799c5b86f86110a6
|
7
|
+
data.tar.gz: 5856bb2b9bd9907dfa5c7c463ca1d4a4a18634fe3782883116437dfcf935adc910cc806dd384c41e962a814c80189f5664c2bf099fe861d73cb83cbb402d0f83
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,28 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
##
|
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.
|
13
|
+
|
14
|
+
## 0.4.0 (2021-04-16)
|
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.
|
4
20
|
|
5
21
|
## 0.3.2 (2020-09-28)
|
6
22
|
|
23
|
+
* Add `#validate_uuid` validation helper.
|
24
|
+
* Use real gems as development dependencies for tests.
|
25
|
+
|
7
26
|
## 0.3.1 (2020-09-28)
|
8
27
|
|
9
28
|
* Update `formalism` to a new version.
|
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/
|
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=
|
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
|
|
@@ -18,7 +18,7 @@ module Formalism
|
|
18
18
|
def initialize(translations, form_errors)
|
19
19
|
@translations = translations
|
20
20
|
@form_errors = form_errors
|
21
|
-
@result = Hash.new { |
|
21
|
+
@result = Hash.new { |hash, key| hash[key] = Hash.new(&hash.default_proc) }
|
22
22
|
end
|
23
23
|
|
24
24
|
def translate(prefixes)
|
@@ -82,6 +82,8 @@ module Formalism
|
|
82
82
|
end
|
83
83
|
end
|
84
84
|
|
85
|
+
alias to_a translations
|
86
|
+
|
85
87
|
def translations_hash(*prefixes)
|
86
88
|
prefixes.push(@hash.keys.first) if @hash.keys.first
|
87
89
|
@hash.transform_values do |errors|
|
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
|
+
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:
|
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.
|
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.
|
26
|
+
version: 0.5.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: gorilla_patch
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,28 +44,56 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '5.0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '5.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: email_address
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 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
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
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'
|
62
90
|
type: :development
|
63
91
|
prerelease: false
|
64
92
|
version_requirements: !ruby/object:Gem::Requirement
|
65
93
|
requirements:
|
66
94
|
- - "~>"
|
67
95
|
- !ruby/object:Gem::Version
|
68
|
-
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:
|
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.
|
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.
|
152
|
+
version: 0.9.1
|
125
153
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
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.
|
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.
|
166
|
+
version: 0.12.1
|
139
167
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
168
|
+
name: toys
|
141
169
|
requirement: !ruby/object:Gem::Requirement
|
142
170
|
requirements:
|
143
171
|
- - "~>"
|
144
172
|
- !ruby/object:Gem::Version
|
145
|
-
version: 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.
|
180
|
+
version: 0.13.1
|
153
181
|
- !ruby/object:Gem::Dependency
|
154
182
|
name: rspec
|
155
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,28 +198,42 @@ dependencies:
|
|
170
198
|
requirements:
|
171
199
|
- - "~>"
|
172
200
|
- !ruby/object:Gem::Version
|
173
|
-
version: 0.
|
201
|
+
version: 0.21.0
|
174
202
|
type: :development
|
175
203
|
prerelease: false
|
176
204
|
version_requirements: !ruby/object:Gem::Requirement
|
177
205
|
requirements:
|
178
206
|
- - "~>"
|
179
207
|
- !ruby/object:Gem::Version
|
180
|
-
version: 0.
|
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:
|
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:
|
236
|
+
version: 1.36.0
|
195
237
|
- !ruby/object:Gem::Dependency
|
196
238
|
name: rubocop-performance
|
197
239
|
requirement: !ruby/object:Gem::Requirement
|
@@ -212,14 +254,28 @@ dependencies:
|
|
212
254
|
requirements:
|
213
255
|
- - "~>"
|
214
256
|
- !ruby/object:Gem::Version
|
215
|
-
version: '
|
257
|
+
version: '2.2'
|
216
258
|
type: :development
|
217
259
|
prerelease: false
|
218
260
|
version_requirements: !ruby/object:Gem::Requirement
|
219
261
|
requirements:
|
220
262
|
- - "~>"
|
221
263
|
- !ruby/object:Gem::Version
|
222
|
-
version: '
|
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,25 +296,30 @@ homepage: https://github.com/AlexWayfer/formalism-r18n_errors
|
|
240
296
|
licenses:
|
241
297
|
- MIT
|
242
298
|
metadata:
|
243
|
-
|
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
|
-
|
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:
|
249
307
|
- lib
|
250
308
|
required_ruby_version: !ruby/object:Gem::Requirement
|
251
309
|
requirements:
|
252
|
-
- - "
|
310
|
+
- - ">="
|
253
311
|
- !ruby/object:Gem::Version
|
254
312
|
version: '2.6'
|
313
|
+
- - "<"
|
314
|
+
- !ruby/object:Gem::Version
|
315
|
+
version: '4'
|
255
316
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
256
317
|
requirements:
|
257
318
|
- - ">="
|
258
319
|
- !ruby/object:Gem::Version
|
259
320
|
version: '0'
|
260
321
|
requirements: []
|
261
|
-
rubygems_version: 3.
|
322
|
+
rubygems_version: 3.3.7
|
262
323
|
signing_key:
|
263
324
|
specification_version: 4
|
264
325
|
summary: Errors for Formalism via R18n
|