formalism-r18n_errors 0.3.2 → 0.4.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: c5b074cbfcc26e4d99f897a8efd1a6486d7620580f79c12c1dd6fa2eac467191
4
- data.tar.gz: 43026b19edcdafdd9ea13539de43117adfdaef1a216126b4775f514c4102b0be
3
+ metadata.gz: bf8568cdb7a77c703de69e336de4e3761824c43b02553f52c9cd8974349f5816
4
+ data.tar.gz: 222ce9d16e546c0efc3b0b4f95466b33312eac78b97a3c0a17f1f7d0b803dee1
5
5
  SHA512:
6
- metadata.gz: 682cb30ba2053a88a7c3a145bf871d0d3e72349a0054f57f119e18605ee93bc091de743c29a45d93274a920b901fdd8c5da8297d9424e33b8ffdc5561a2296ff
7
- data.tar.gz: 513dd406374e5f8bd9e46e8281e2dbbc7b24f285efeec5c442c5589be52ab1136de8bfe9c857752e77245f3e845dbb63a4978c13f81f540afe40c6bd82aa7611
6
+ metadata.gz: 4cadae2c515617ce9ec37faf95f0927fd050dcd87bb2624e36e87af69c943b9a3c919cba7281cbf5d45e8038008fc43b772195ea8cb56f50a57c402efd8e19f0
7
+ data.tar.gz: 591bfe9578bc5fa4b010e976d7b7a6c8dcb7a144dccfbe76bafffd9d42ac43d0d32c164c604611f25dd14670817640c280ba138d3e01ac48062a7a782e8950e5
data/CHANGELOG.md CHANGED
@@ -2,8 +2,13 @@
2
2
 
3
3
  ## master (unreleased)
4
4
 
5
+ ## 0.4.0 (2021-04-16)
6
+
5
7
  ## 0.3.2 (2020-09-28)
6
8
 
9
+ * Add `#validate_uuid` validation helper.
10
+ * Use real gems as development dependencies for tests.
11
+
7
12
  ## 0.3.1 (2020-09-28)
8
13
 
9
14
  * Update `formalism` to a new version.
@@ -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 { |hsh, key| hsh[key] = Hash.new(&hsh.default_proc) }
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|
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Formalism
4
4
  module R18nErrors
5
- VERSION = '0.3.2'
5
+ VERSION = '0.4.0'
6
6
  end
7
7
  end
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.3.2
4
+ version: 0.4.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: 2020-09-28 00:00:00.000000000 Z
11
+ date: 2021-04-16 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.3.0
19
+ version: 0.4.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.3.0
26
+ version: 0.4.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: gorilla_patch
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '4.0'
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: '4.0'
54
+ version: '5.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: email_address
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 0.4.0
117
+ version: 0.8.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 0.4.0
124
+ version: 0.8.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: toys
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 0.2.0
145
+ version: 0.5.0
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 0.2.0
152
+ version: 0.5.0
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rspec
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -170,28 +170,28 @@ dependencies:
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 0.19.0
173
+ version: 0.21.0
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 0.19.0
180
+ version: 0.21.0
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: rubocop
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: 0.92.0
187
+ version: '1.12'
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: 0.92.0
194
+ version: '1.12'
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: rubocop-performance
197
197
  requirement: !ruby/object:Gem::Requirement
@@ -212,14 +212,14 @@ dependencies:
212
212
  requirements:
213
213
  - - "~>"
214
214
  - !ruby/object:Gem::Version
215
- version: '1.0'
215
+ version: '2.2'
216
216
  type: :development
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
220
  - - "~>"
221
221
  - !ruby/object:Gem::Version
222
- version: '1.0'
222
+ version: '2.2'
223
223
  description: 'Errors for Formalism via R18n.
224
224
 
225
225
  '
@@ -249,16 +249,19 @@ require_paths:
249
249
  - lib
250
250
  required_ruby_version: !ruby/object:Gem::Requirement
251
251
  requirements:
252
- - - "~>"
252
+ - - ">="
253
253
  - !ruby/object:Gem::Version
254
254
  version: '2.6'
255
+ - - "<"
256
+ - !ruby/object:Gem::Version
257
+ version: '4'
255
258
  required_rubygems_version: !ruby/object:Gem::Requirement
256
259
  requirements:
257
260
  - - ">="
258
261
  - !ruby/object:Gem::Version
259
262
  version: '0'
260
263
  requirements: []
261
- rubygems_version: 3.1.2
264
+ rubygems_version: 3.2.15
262
265
  signing_key:
263
266
  specification_version: 4
264
267
  summary: Errors for Formalism via R18n