contentful_model 0.1.7 → 0.1.7.1

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: 015f709379b38dc9c97ea758d9f31b7af2f07c45
4
- data.tar.gz: c89faf96e42c1280a8b5ef8576fee9081136c1e0
3
+ metadata.gz: d2d355e60fd1a5df73ff632025fd2a2fecfbc4ce
4
+ data.tar.gz: 44795c690dd5d6142240f7944b178ed76f9bc087
5
5
  SHA512:
6
- metadata.gz: 76cce2394531f2d80a9de03a8abf7aa93ce81f682f98b57374fdcb4d68ff38ad5092705ae97b736199db6b1befc81d98fa6a6cad6c922ff12bc7f275e5c6f660
7
- data.tar.gz: c90aeaa083274dfcdf833ee5fa6927cffeb29ca1203a062ac845f23f64a71513b05dfecb37c0b45ff1d36fb31b0afc61ef12a219fe6b7461408e4c4c8ad8f314
6
+ metadata.gz: 24758869403fb3fccda9b0e97ba2c6186e2a33780d8afdc8cae11b726a251912bc2d59b4c60576a07db52504929410786a09e8ae00c487a14a744ccdd48e3e71
7
+ data.tar.gz: d39706301c823988bf8fa76da208fd65fcd1c5aefc85a8704aa37262cbff1d162d9500df9e4b9bad72a276d44c2b1d810ba8d1b407e00c6e2eb8fb6853eab97e
@@ -15,7 +15,7 @@ module ContentfulModel
15
15
  # we need to pull out any Contentful::Link references, and also things which don't have any fields at all
16
16
  # because they're newly created (we think exposing these in the Contentful API is a bug, actually)
17
17
  if result.is_a?(Array)
18
- result.reject! {|r| r.is_a?(Contentful::Link) || r.invalid?}
18
+ result.reject! {|r| r.is_a?(Contentful::Link) || (r.respond_to?(:invalid) && r.invalid?)}
19
19
  elsif result.is_a?(Contentful::Link)
20
20
  result = nil
21
21
  elsif result.respond_to?(:fields) && result.send(:fields).empty?
@@ -1,3 +1,3 @@
1
1
  module ContentfulModel
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.7.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentful_model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Error Creative Studio