formalism-r18n_errors 0.4.0 → 0.5.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: bf8568cdb7a77c703de69e336de4e3761824c43b02553f52c9cd8974349f5816
4
- data.tar.gz: 222ce9d16e546c0efc3b0b4f95466b33312eac78b97a3c0a17f1f7d0b803dee1
3
+ metadata.gz: 162e24f6d16178e8a1ea0042bc739b7d44f409c872cc3576a63cb0c8ca54dab9
4
+ data.tar.gz: dcd221a132fe39a255208389917ea7968eeb716a41ba709080a05012fae8aadf
5
5
  SHA512:
6
- metadata.gz: 4cadae2c515617ce9ec37faf95f0927fd050dcd87bb2624e36e87af69c943b9a3c919cba7281cbf5d45e8038008fc43b772195ea8cb56f50a57c402efd8e19f0
7
- data.tar.gz: 591bfe9578bc5fa4b010e976d7b7a6c8dcb7a144dccfbe76bafffd9d42ac43d0d32c164c604611f25dd14670817640c280ba138d3e01ac48062a7a782e8950e5
6
+ metadata.gz: c13120c3bda8fa75b63fd78150bdd9d4b02f1ba9e1eee4c0b244e0ee731f044ec40302cf05c1a7d8c1137209977d544e8171911174f1701abfd203c060f823a1
7
+ data.tar.gz: 2ea89c01a05465259657789d53c3169ee8e0bfdf85d2ffb2bf44281bf2a5e89b5d48afd8619beaf0f5ee5e6659d6300da338c99b37b204d5555b83749a6c6301
data/CHANGELOG.md CHANGED
@@ -1,9 +1,28 @@
1
1
  # Changelog
2
2
 
3
- ## master (unreleased)
3
+ ## Unreleased
4
+
5
+ ## 0.5.1 (2022-09-24)
6
+
7
+ * Allow `gorilla_patch` version 5.
8
+ * Improve CI.
9
+
10
+ ## 0.5.0 (2022-09-24)
11
+
12
+ * Update `formalism` to a new version.
13
+ * Add Ruby 3.1 support.
14
+ * Update development dependencies.
15
+ * Resolve RuboCop offenses.
16
+ * Improve gemspec metadata.
17
+ * Add `bundle-audit` CI task.
4
18
 
5
19
  ## 0.4.0 (2021-04-16)
6
20
 
21
+ * Add `to_a` alias for `translations` method.
22
+ Fix an error with `#result` call of failed `Formalism::Form::Outcome`.
23
+ * Support Ruby 3.
24
+ * Update development dependencies.
25
+
7
26
  ## 0.3.2 (2020-09-28)
8
27
 
9
28
  * 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.1'
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.1
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-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: formalism
@@ -16,28 +16,34 @@ 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
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '4.0'
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '6'
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - "~>"
41
+ - - ">="
39
42
  - !ruby/object:Gem::Version
40
43
  version: '4.0'
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '6'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: r18n-core
43
49
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +64,42 @@ dependencies:
58
64
  requirements:
59
65
  - - "~>"
60
66
  - !ruby/object:Gem::Version
61
- version: 0.1.0
67
+ version: 0.2.4
62
68
  type: :development
63
69
  prerelease: false
64
70
  version_requirements: !ruby/object:Gem::Requirement
65
71
  requirements:
66
72
  - - "~>"
67
73
  - !ruby/object:Gem::Version
68
- version: 0.1.0
74
+ version: 0.2.4
75
+ - !ruby/object:Gem::Dependency
76
+ name: net-smtp
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: 0.3.1
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: 0.3.1
89
+ - !ruby/object:Gem::Dependency
90
+ name: sequel
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '5.60'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '5.60'
69
103
  - !ruby/object:Gem::Dependency
70
104
  name: uuid
71
105
  requirement: !ruby/object:Gem::Requirement
@@ -109,47 +143,47 @@ dependencies:
109
143
  - !ruby/object:Gem::Version
110
144
  version: '2.0'
111
145
  - !ruby/object:Gem::Dependency
112
- name: gem_toys
146
+ name: bundler-audit
113
147
  requirement: !ruby/object:Gem::Requirement
114
148
  requirements:
115
149
  - - "~>"
116
150
  - !ruby/object:Gem::Version
117
- version: 0.8.0
151
+ version: 0.9.1
118
152
  type: :development
119
153
  prerelease: false
120
154
  version_requirements: !ruby/object:Gem::Requirement
121
155
  requirements:
122
156
  - - "~>"
123
157
  - !ruby/object:Gem::Version
124
- version: 0.8.0
158
+ version: 0.9.1
125
159
  - !ruby/object:Gem::Dependency
126
- name: toys
160
+ name: gem_toys
127
161
  requirement: !ruby/object:Gem::Requirement
128
162
  requirements:
129
163
  - - "~>"
130
164
  - !ruby/object:Gem::Version
131
- version: 0.11.0
165
+ version: 0.12.1
132
166
  type: :development
133
167
  prerelease: false
134
168
  version_requirements: !ruby/object:Gem::Requirement
135
169
  requirements:
136
170
  - - "~>"
137
171
  - !ruby/object:Gem::Version
138
- version: 0.11.0
172
+ version: 0.12.1
139
173
  - !ruby/object:Gem::Dependency
140
- name: codecov
174
+ name: toys
141
175
  requirement: !ruby/object:Gem::Requirement
142
176
  requirements:
143
177
  - - "~>"
144
178
  - !ruby/object:Gem::Version
145
- version: 0.5.0
179
+ version: 0.13.1
146
180
  type: :development
147
181
  prerelease: false
148
182
  version_requirements: !ruby/object:Gem::Requirement
149
183
  requirements:
150
184
  - - "~>"
151
185
  - !ruby/object:Gem::Version
152
- version: 0.5.0
186
+ version: 0.13.1
153
187
  - !ruby/object:Gem::Dependency
154
188
  name: rspec
155
189
  requirement: !ruby/object:Gem::Requirement
@@ -178,20 +212,34 @@ dependencies:
178
212
  - - "~>"
179
213
  - !ruby/object:Gem::Version
180
214
  version: 0.21.0
215
+ - !ruby/object:Gem::Dependency
216
+ name: simplecov-cobertura
217
+ requirement: !ruby/object:Gem::Requirement
218
+ requirements:
219
+ - - "~>"
220
+ - !ruby/object:Gem::Version
221
+ version: '2.1'
222
+ type: :development
223
+ prerelease: false
224
+ version_requirements: !ruby/object:Gem::Requirement
225
+ requirements:
226
+ - - "~>"
227
+ - !ruby/object:Gem::Version
228
+ version: '2.1'
181
229
  - !ruby/object:Gem::Dependency
182
230
  name: rubocop
183
231
  requirement: !ruby/object:Gem::Requirement
184
232
  requirements:
185
233
  - - "~>"
186
234
  - !ruby/object:Gem::Version
187
- version: '1.12'
235
+ version: 1.36.0
188
236
  type: :development
189
237
  prerelease: false
190
238
  version_requirements: !ruby/object:Gem::Requirement
191
239
  requirements:
192
240
  - - "~>"
193
241
  - !ruby/object:Gem::Version
194
- version: '1.12'
242
+ version: 1.36.0
195
243
  - !ruby/object:Gem::Dependency
196
244
  name: rubocop-performance
197
245
  requirement: !ruby/object:Gem::Requirement
@@ -220,6 +268,20 @@ dependencies:
220
268
  - - "~>"
221
269
  - !ruby/object:Gem::Version
222
270
  version: '2.2'
271
+ - !ruby/object:Gem::Dependency
272
+ name: rubocop-sequel
273
+ requirement: !ruby/object:Gem::Requirement
274
+ requirements:
275
+ - - "~>"
276
+ - !ruby/object:Gem::Version
277
+ version: 0.3.4
278
+ type: :development
279
+ prerelease: false
280
+ version_requirements: !ruby/object:Gem::Requirement
281
+ requirements:
282
+ - - "~>"
283
+ - !ruby/object:Gem::Version
284
+ version: 0.3.4
223
285
  description: 'Errors for Formalism via R18n.
224
286
 
225
287
  '
@@ -240,9 +302,11 @@ homepage: https://github.com/AlexWayfer/formalism-r18n_errors
240
302
  licenses:
241
303
  - MIT
242
304
  metadata:
243
- source_code_uri: https://github.com/AlexWayfer/formalism-r18n_errors
305
+ bug_tracker_uri: https://github.com/AlexWayfer/formalism-r18n_errors/issues
306
+ changelog_uri: https://github.com/AlexWayfer/formalism-r18n_errors/blob/v0.5.1/CHANGELOG.md
244
307
  homepage_uri: https://github.com/AlexWayfer/formalism-r18n_errors
245
- changelog_uri: https://github.com/AlexWayfer/formalism-r18n_errors/blob/master/CHANGELOG.md
308
+ rubygems_mfa_required: 'true'
309
+ source_code_uri: https://github.com/AlexWayfer/formalism-r18n_errors
246
310
  post_install_message:
247
311
  rdoc_options: []
248
312
  require_paths:
@@ -261,7 +325,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
261
325
  - !ruby/object:Gem::Version
262
326
  version: '0'
263
327
  requirements: []
264
- rubygems_version: 3.2.15
328
+ rubygems_version: 3.3.7
265
329
  signing_key:
266
330
  specification_version: 4
267
331
  summary: Errors for Formalism via R18n