agilibox 1.9.15 → 1.9.16

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: c2ac38c7ce2b93922b8caeb2c8d90301c44836149b1a646426a6966f24772352
4
- data.tar.gz: e80e585846ab6380434509048d4d9b88c673c8b307e47b1ac4d7530b77176336
3
+ metadata.gz: 8a0f7613e747e5db21a6008d5e946e8f3240bb26fe50b19d6cc6b4a78204874d
4
+ data.tar.gz: 0a6c1534eecbb1be12e5ee323b74f26d885222e9340ece137c404a22c0f270a1
5
5
  SHA512:
6
- metadata.gz: a8c2c2b1836986a3f10100a46bccd85982f2bc2dd10ac0361b0aecb16fccf58b6dfc15e811616cdfcdd162cf48407116b3980c79ca88833d1fb5dbc13c362543
7
- data.tar.gz: 187ff2cbd4cd530ed94c7f37780b0556ca86db37cce67c959fc6a441e1fbf96ffd60d0653286656bfe9163a04a1dea7c62c4f04a017f49d19d02f0a876fc2f06
6
+ metadata.gz: cee94567f5d2360f048433dbe3e04efbf15019f90f7fe82ec5d4ab5535d0d3374eeae1c1227f3cb9f5ea6053e719d7006b5671a9a93e180b42bc2dea7027c1c9
7
+ data.tar.gz: 54e18963bb24b2455ec5032444412aa700cd3c491fbbc1b2fd388c96715cef2581429531eb0ca44bab3f0fa00ce5cccad7eb3a7b55a27ecebf3e4fbb0c8c197f
data/CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  ## Next version
4
4
 
5
+ ## v1.9.16
6
+ - Fix Rails 6.1 warnings
7
+
5
8
  ## v1.9.15
6
9
  - Add `modal:before-close` event
7
10
 
@@ -31,7 +31,8 @@ module Agilibox::ApiControllerConcern
31
31
 
32
32
  def json_errors_hash_for_model(object)
33
33
  object.errors
34
- .map { |a, m| [a, message: m, full_message: object.errors.full_message(a, m)] }
34
+ .to_hash
35
+ .map { |a, m| [a, message: m.first, full_message: object.errors.full_message(a, m.first)] }
35
36
  .uniq(&:first)
36
37
  .to_h
37
38
  end
@@ -1,3 +1,3 @@
1
1
  module Agilibox
2
- VERSION = "1.9.15"
2
+ VERSION = "1.9.16"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agilibox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.15
4
+ version: 1.9.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - agilidée
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-27 00:00:00.000000000 Z
11
+ date: 2021-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails-i18n