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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b15713bc5ed60f9fb87557a528dc1f549165e00
4
- data.tar.gz: 973455ff4575e64a69b763258d93bf0b23829b60
3
+ metadata.gz: 857d3794b9bb00ab99eabfe2d64f95ba6948ff91
4
+ data.tar.gz: 3720c767ba68698997c89f877356011a144391a6
5
5
  SHA512:
6
- metadata.gz: 06ff847decb25431a66c36f69fed857b353ac1cbcb761e5eb8eb277c70f7b09033288ce2d0d099fb948a6ba0e8a5e06248dee211a0b9147f6a5b7c31ca478080
7
- data.tar.gz: 6aa2b617e36acff8b0729b5f9b6b5f076dbff6b5e24ea92a866d3d842ef3645f2bdf8e5f1b561a9aeb68a0ab8f5b0ffdf8fe814d3fadddfb9968356eb6a65e43
6
+ metadata.gz: db7d42e5a30c46d4355350d4529eba47e92d8fc1554a694cb17b9f4860d27bf232429308f7022a453a3769ce3d0ac2dd40b5b15650087b6f269c319fd9bcac22
7
+ data.tar.gz: b5c378a0b0699cfca7f669383238246e7782a838c5538e84121fcd598789a9815fcfc8854b1e8492d6d6b10ec62910cdf9e772f1746dc379bd1baddb2b233883
data/.travis.yml CHANGED
@@ -4,8 +4,6 @@ rvm:
4
4
  - 2.5.0
5
5
  services:
6
6
  - redis-server
7
- before_install:
8
- - gem install bundler
9
7
  script:
10
8
  - bundle exec rspec
11
9
  - bundle exec rubocop lib/ spec/
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- contentful_redis (0.0.1)
4
+ contentful_redis (0.0.2)
5
5
  faraday
6
6
  redis-store
7
7
 
@@ -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
@@ -6,7 +6,7 @@ require_relative 'contentful_redis/model_base'
6
6
  # Dir["#{Dir.pwd}/lib/contentful_redis/**/*.rb"].each { |f| require f }
7
7
 
8
8
  module ContentfulRedis
9
- VERSION = '0.0.1'.freeze
9
+ VERSION = '0.0.2'.freeze
10
10
 
11
11
  class << self
12
12
  attr_writer :configuration
@@ -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')] || val }
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.1
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-09-26 00:00:00.000000000 Z
11
+ date: 2018-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday