material 0.3.1 → 0.3.2

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: 87e8ecdb04fe1774e2f0599a33d1fbefb01bf2c23b062548430b151dcfd6fbc4
4
- data.tar.gz: eac8ad8ccbd0ba51e3194bea2d3b284ae12a2d14d97f15fb1901b21cb497a678
3
+ metadata.gz: ae5bf6bf153b1fa100cebe4ea13d3a7ba20a79374ff5626d3a4ec8b44cd5a3a6
4
+ data.tar.gz: 8d984346ca9f237924c355b764a31b10d2233ae2cb43e480e479b04a62f34644
5
5
  SHA512:
6
- metadata.gz: a2f703eb121a85aa72d484ec2927d7030cde209f36d51d7ab92ee8d9325706c8c18b7bc6e68e60106e715fe310e2ec8dcf2d165009daa72f62f9da45f3447f8c
7
- data.tar.gz: 0f7002d89530610f07dbd833393c484afaa774b03f13547fbc64c27ed5418f5d0b1de9229aee10e5047f46e4f37505e235f312cfdc76b47da5026614dfdc2194
6
+ metadata.gz: 6a2627409267389177df754ab48ef325869eba981e9a2d88678b15591e33afdd9c8a3e641f65030c2742be063e8cda7f9d36dd7d429608666002f362e49f0f26
7
+ data.tar.gz: a87c4c65d920455b70b87ed946f835297dd4b97ab0e4d74c221cf6e952ea154d68afc0cfc4c26351c9effb78de0d9be31f17d8d2736a5e1a0bc579abd2deac6c
@@ -16,7 +16,7 @@ module Material
16
16
 
17
17
  class << self
18
18
  def for(object)
19
- klass = for_class(object.respond_to?(:first) ? object.first : object)
19
+ klass = for_class((object.respond_to?(:to_ary) && object.respond_to?(:first)) ? object.first : object)
20
20
  materialize(object, klass) if klass.present?
21
21
  end
22
22
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Material
4
- VERSION = "0.3.1"
4
+ VERSION = "0.3.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Garside