dato 0.6.5 → 0.6.6

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
  SHA256:
3
- metadata.gz: 351d5597f7e44e5196d2aa61bd1d0f525e4d82a70fa5a27952321ea77780eb24
4
- data.tar.gz: 6715dd0219b716b1933fbad948f89a529f03ab3a318882fb9e7081bd569c3bfb
3
+ metadata.gz: c6d5fcd23ebe0f282e0da5ae50c1dc29f58f747dbed7f5fea9140d88d629aa38
4
+ data.tar.gz: 9f96f759b864e74848424d3657dea5201d76fde0692aec69bd337c26bf1efd71
5
5
  SHA512:
6
- metadata.gz: 3425d976c4118a4717a232d030c0c678cc7cc89af8eb343f522dfaa3347071d2716bb0a4d9c5d84568195380168716e6e05471a9f33935e48d1ddc54c0a3c080
7
- data.tar.gz: 19d2f2e0bfdc7904bf011076c88bfe7f948976bb0ce4c020f5793bd38a1ed2034bcaf45165ff4477c2a5005ae8e2c335a3ef1b88bf9d7484a0dfd4ec08f4b42c
6
+ metadata.gz: c569d6f7d8f902b9e5f6c2226674b62e3090c613cd973801b38a0cfc1367db7f28a5c36aa47dfc1891067e3e0503413597972a7c179003dfca422bc071e3a40e
7
+ data.tar.gz: 29f6685c6cd37e66cbd27f77b79b1102546ed7c054a5167511ba4380d819dbc45f4ac4eef399be0b047de426bca5af5bc079260712fa8c170a61caaa4c8fec72
@@ -75,15 +75,17 @@ module Dato
75
75
  private
76
76
 
77
77
  def connection
78
+ default_headers = {
79
+ 'Accept' => 'application/json',
80
+ 'Content-Type' => 'application/json',
81
+ 'Authorization' => "Bearer #{@token}",
82
+ 'User-Agent' => "ruby-client v#{Dato::VERSION}",
83
+ 'X-Api-Version' => "2"
84
+ }
85
+
78
86
  options = {
79
87
  url: base_url,
80
- headers: extra_headers.merge(
81
- 'Accept' => 'application/json',
82
- 'Content-Type' => 'application/json',
83
- 'Authorization' => "Bearer #{@token}",
84
- 'User-Agent' => "ruby-client v#{Dato::VERSION}",
85
- 'X-Api-Version' => "2"
86
- )
88
+ headers: default_headers.merge(extra_headers)
87
89
  }
88
90
 
89
91
  @connection ||= Faraday.new(options) do |c|
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Dato
3
- VERSION = '0.6.5'
3
+ VERSION = '0.6.6'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Verna
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-18 00:00:00.000000000 Z
11
+ date: 2018-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler