dry-mutations 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 219b55e0787f1686c1d2c9fecf6043033a507db7
4
- data.tar.gz: 065474bd569dbe68c3be90d74dd77ef25b164f0f
3
+ metadata.gz: 95cc8be49852f01b8eaab58c72ffe3706cca5590
4
+ data.tar.gz: b99e40d8d36cfb6156f5ae5b5ae233350af75e02
5
5
  SHA512:
6
- metadata.gz: 772d0559cc284ad576cc68508717b3f3228bc8b5c1160ef3f9d8eb50114bd62c74e4cb3994cf957a2cbd4b38bf9b6c23862a0e04f886e45b6078c9fec17de1a1
7
- data.tar.gz: fe1aac2c7caf41ccd2ce1a6350b519b0b2ca583a8a33aef18bb59422adc3cbce90cd2440f9f62297f2174286ef9e9a06d21fd9b21c4de29146cc2a722c455366
6
+ metadata.gz: d04f68ebc77339b342bbd5cfeed8a0a6949bc0f4d1728c31ada2091a690d195be6ac09e115215d0af46965950ce759e2e2d3a42e6cb05e013dabb7ad1efa50aa
7
+ data.tar.gz: cff16ea426ce6b0cc4db2ecbae7ed509f56cc640cc1b77312607aa9d5d15f1a7ad30ffd280a39f5c11934cd04811a926d3f0fd649bdc44e37e9de3d8dc05a7be
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dry-mutations (1.3.2)
4
+ dry-mutations (1.3.3)
5
5
  activesupport (>= 3.2, < 5)
6
6
  dry-transaction (~> 0.9, < 0.10)
7
7
  dry-validation (~> 0.10)
@@ -133,7 +133,7 @@ module Dry
133
133
  errors = errors.values if errors.is_a?(Hash)
134
134
  errors.each_with_object(flat) do |error, acc|
135
135
  case error
136
- when ::Mutations::ErrorHash, ::Mutations::ErrorArray then yield_messages(acc, error)
136
+ when Enumerable then yield_messages(acc, error)
137
137
  when ::Dry::Mutations::Errors::ErrorAtom then acc << error.dry_message
138
138
  when ::Mutations::ErrorAtom then acc << error.message
139
139
  end
@@ -14,6 +14,9 @@ module Dry
14
14
  # TODO: Make it possible to choose friendly hash implementation
15
15
  USE_HASHIE_MASH = Falsey?(ENV['PLAIN_HASHES'], explicit: false) && begin
16
16
  require 'hashie/mash'
17
+ require 'hashie/extensions/dash'
18
+ require 'hashie/extensions/indifferent_access'
19
+ ::Mutations::ErrorHash.include Hashie::Extensions::IndifferentAccess
17
20
  true
18
21
  rescue LoadError => e
19
22
  $stderr.puts [
@@ -1,5 +1,5 @@
1
1
  module Dry
2
2
  module Mutations
3
- VERSION = '1.3.2'.freeze
3
+ VERSION = '1.3.3'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-mutations
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aleksei Matiushkin