outbrain-api 0.2.5 → 0.2.7

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: 5a6e6b0cde33ef4866b748783bab0cdf36c078f0
4
- data.tar.gz: 8cb6516276c94b3f29d8b9262c5534471ffc77d5
3
+ metadata.gz: 4012da5ff70df971d80f8b460533853307e504df
4
+ data.tar.gz: 0dce06287e9bc2c08d6d2e09ad285fdae2bca1fe
5
5
  SHA512:
6
- metadata.gz: cf1a742f64d6be0b34765fb30570642e1e7958baa3e2cf80ffe7c32e6971cdcf0aeb6ed120c3397174979ef2a72cb84ba8097a57b8741ce5e74d415d842d56c1
7
- data.tar.gz: 584212d3538c48a114e8b8f251519bf6baf90ab27f7b520c7bd9ebbe18ebfde9d237852c402465f4af148dba1076db4cdb813dcf3f2234849c584bfbaa959ef7
6
+ metadata.gz: 4de7373da2f4e550046b23e7dd15cf1efddf70707f3f6f4862aba52efac8ebb7bb6d60201c392d2350f06486b312c538c97f48cd75727844dc9be882035c2eb1
7
+ data.tar.gz: 8cf134c1c3c2fa8baf8f522565caf557228ae271fdc048b6ad5b4acd6de2b657a03e0a5d2253b0aff3ce13355fde81616bfa56457d6aa24b859f0958c1464649
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Code Climate](https://codeclimate.com/github/simplereach/outbrain-api/badges/gpa.svg)](https://codeclimate.com/github/simplereach/outbrain-api)
2
+
1
3
  # THIS IS CURRENTLY A WIP.
2
4
  # PLEASE WAIT TILL 1.0 RELEASE TO USE IN PRODUCTION.
3
5
 
@@ -15,6 +15,7 @@ module Outbrain
15
15
  private
16
16
 
17
17
  def setup_relations(relation)
18
+ relation ||= [] # if nil still want array
18
19
  self.relations = relation.map { |e| relation_class.new(e) }
19
20
  end
20
21
  end
@@ -1,5 +1,5 @@
1
1
  module Outbrain
2
2
  module Api
3
- VERSION = "0.2.5"
3
+ VERSION = "0.2.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: outbrain-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Blanchet
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-17 00:00:00.000000000 Z
11
+ date: 2016-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  version: '0'
151
151
  requirements: []
152
152
  rubyforge_project:
153
- rubygems_version: 2.4.7
153
+ rubygems_version: 2.4.6
154
154
  signing_key:
155
155
  specification_version: 4
156
156
  summary: A simple wrapper for the outbrain api