outbrain-api 0.2.4 → 0.2.5

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: f73b2228f93d82894e838c63ea515d74003987b1
4
- data.tar.gz: f02f4d467a8de307090101f6978d43a6c0273ed7
3
+ metadata.gz: 5a6e6b0cde33ef4866b748783bab0cdf36c078f0
4
+ data.tar.gz: 8cb6516276c94b3f29d8b9262c5534471ffc77d5
5
5
  SHA512:
6
- metadata.gz: bda58af731788fbd4a029e4664d5e7d06678ca444c4886db9530186a633133f406f77b5d07c3d7ec268fd1a2fc8e627c062729ca30155271a28b006de067aba6
7
- data.tar.gz: c9e3bab80cb981885a074edcab3f8297c321095f03ddbeb9cad19e3d78d702dc5d42389c94726f442a69f0f3d7e1870863a5caac836b7da7af81fd377e5df425
6
+ metadata.gz: cf1a742f64d6be0b34765fb30570642e1e7958baa3e2cf80ffe7c32e6971cdcf0aeb6ed120c3397174979ef2a72cb84ba8097a57b8741ce5e74d415d842d56c1
7
+ data.tar.gz: 584212d3538c48a114e8b8f251519bf6baf90ab27f7b520c7bd9ebbe18ebfde9d237852c402465f4af148dba1076db4cdb813dcf3f2234849c584bfbaa959ef7
@@ -1,5 +1,5 @@
1
1
  module Outbrain
2
2
  module Api
3
- VERSION = "0.2.4"
3
+ VERSION = "0.2.5"
4
4
  end
5
5
  end
@@ -12,7 +12,7 @@ module Outbrain
12
12
  @user_name = args[:user_name] || args['user_name']
13
13
  @user_password = args[:user_password] || args['user_password']
14
14
  @api_version = args[:api_version] || args['api_version'] || DEFAULT_API_VERSION
15
- @logging = args[:logging] || args['logging'] || true # (default right now)
15
+ @logging = (args.key?(:logging) || args.key?('logging')) ? (args[:logging] || args['logging']) : true # (default right now)
16
16
  @base_url = args[:base_url] || "#{BASE}/amplify/#{api_version}/"
17
17
  get_token! unless @token
18
18
  # should raise if not authenticated properly
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.4
4
+ version: 0.2.5
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-16 00:00:00.000000000 Z
11
+ date: 2016-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday