contentful_redis 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -2
- data/Gemfile.lock +1 -1
- data/contentful-redis.gemspec +0 -2
- data/lib/contentful_redis.rb +1 -1
- data/lib/contentful_redis/model_base.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 857d3794b9bb00ab99eabfe2d64f95ba6948ff91
|
4
|
+
data.tar.gz: 3720c767ba68698997c89f877356011a144391a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db7d42e5a30c46d4355350d4529eba47e92d8fc1554a694cb17b9f4860d27bf232429308f7022a453a3769ce3d0ac2dd40b5b15650087b6f269c319fd9bcac22
|
7
|
+
data.tar.gz: b5c378a0b0699cfca7f669383238246e7782a838c5538e84121fcd598789a9815fcfc8854b1e8492d6d6b10ec62910cdf9e772f1746dc379bd1baddb2b233883
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
data/contentful-redis.gemspec
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# rubocop:disable Metrics/BlockLength
|
4
3
|
lib = File.expand_path('lib', __dir__)
|
5
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
6
5
|
require 'contentful_redis'
|
@@ -35,4 +34,3 @@ Gem::Specification.new do |spec|
|
|
35
34
|
spec.add_development_dependency 'rubocop'
|
36
35
|
spec.add_development_dependency 'webmock'
|
37
36
|
end
|
38
|
-
# rubocop:enable Metrics/BlockLength
|
data/lib/contentful_redis.rb
CHANGED
@@ -80,7 +80,7 @@ module ContentfulRedis
|
|
80
80
|
model['items'].first['fields'].each do |key, value|
|
81
81
|
value = case value
|
82
82
|
when Array
|
83
|
-
value.map { |val| entries[val.dig('sys', 'id')]
|
83
|
+
value.map { |val| entries[val.dig('sys', 'id')] }.compact
|
84
84
|
when Hash
|
85
85
|
extract_object_from_hash(model, value, entries)
|
86
86
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contentful_redis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DanHenton
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|