strum 0.0.48 → 0.0.49

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
  SHA256:
3
- metadata.gz: 11bc2c5ef2018db9f20cb1d24d91f3cca5046edcf16504b24cc3cc84dfeff506
4
- data.tar.gz: 04cea813efccc1636ec621fe62e0ccb25e3dcb3974768d339f85ec92545cbf1b
3
+ metadata.gz: cbaffa32e1478dab4ac3d54c36f989b67deee77417cb485c95d4414a5e5aaa08
4
+ data.tar.gz: 0de5ac7bd65ab244a979059021e34ba0aed0b5a0d64753b22a70044b551f930c
5
5
  SHA512:
6
- metadata.gz: 2eaa964ecaaf5a8b3ffaeece93f7844d58853a186298b3eda7e0bc94405dc4ee996fc3c83854393ac790cf628af8a395f7a4ed6e0727a96a5d3b6c1ee422e6a7
7
- data.tar.gz: 12c201176237a9c82c07e7096ffee3b94a6c043179e1b4816b55f29a8bf4690d914910d2e056e3d750b9c97482843e5622e49919b7c7046eb5f3970c99a041fb
6
+ metadata.gz: 354a23640523229df3f3e7761c82dc694b62b8b936c72f4d9b7676ab25ab78f18e7bb06d80c2a4ad7154e881724b1c48709cf468c24a91bbee68c3514dec950f
7
+ data.tar.gz: aa2900a2d0e6c5319e2870c7f4ca3723db04a6652089f990b95e5bc734eb8b156b7519830d8933b7ce44e0c4ebdfababb3ad68216541678376dc3ee97e0a7444
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- strum (0.0.48)
4
+ strum (0.0.49)
5
5
  dry-inflector (~> 0.2.0)
6
6
  dry-struct (~> 1.2)
7
7
  sequel (~> 5.29)
@@ -19,7 +19,7 @@ module Strum
19
19
  define_method :model do
20
20
  return input if input.is_a?(Sequel::Model)
21
21
  return input if input.is_a?(Dry::Struct)
22
- return input if input.is_a?(Array) && input.first.is_a?(Sequel::Model)
22
+ return input if input.is_a?(Array) && (input.first.is_a?(Sequel::Model) || input.first.is_a?(Dry::Struct))
23
23
 
24
24
  input[:model]
25
25
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Strum
4
- VERSION = "0.0.48"
4
+ VERSION = "0.0.49"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.48
4
+ version: 0.0.49
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serhiy Nazarov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-13 00:00:00.000000000 Z
11
+ date: 2020-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-inflector