closeio 2.6.8 → 2.6.9

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: 7048842d7bb765586b758feb7b78a002fdd6989a
4
- data.tar.gz: 9a3c9f253f5f57abe21324eb485da571aa3bc3ef
3
+ metadata.gz: 29d10088b8ebc6b04f602cd34d5ffd2239f4ae0e
4
+ data.tar.gz: a5b78f229f98c0fa8648f4c27afa285cfbe56bbb
5
5
  SHA512:
6
- metadata.gz: bc88584381f3babddcb425d2cb8c9ebfb84552605a8676c9dba42c998041e0caf5ce2789809f235d6e26feb5dacb99a32dd92d59c86cb9287399d41fdabdddd1
7
- data.tar.gz: b1fbaa543b0beb5da4f7b3c114fe4da5d7fd93227a2ae888aee6b4b5451e2f877d6aa2a1eb88e8f34bb0267f6ce59b46e40207d3675a2a0d67ea9ffa2ad109e4
6
+ metadata.gz: 0d0e4c9d0b3332188b72f3431fb3dea52e35e8f532f717bca6ce36f7673331f98bf6df2ebd4ca94ad705a7d40b45e6f90c80176a86c30d9b4d2d7264b9384c40
7
+ data.tar.gz: 2c8913d4d35e3170a6ca969a56861a989fe824a4093226a4192cd10237efbd134dfebba02b24da2a3c3d90746e8abf78b12628d14a43433ae789708e29023688
@@ -25,13 +25,14 @@ module Closeio
25
25
  include Closeio::Client::Task
26
26
  include Closeio::Client::User
27
27
 
28
- attr_reader :api_key, :logger, :ca_file, :errors
28
+ attr_reader :api_key, :logger, :ca_file, :errors, :utc_offset
29
29
 
30
- def initialize(api_key, logger = true, ca_file = nil, errors = false)
30
+ def initialize(api_key, logger = true, ca_file = nil, errors = false, utc_offset: 0)
31
31
  @api_key = api_key
32
32
  @logger = logger
33
33
  @ca_file = ca_file
34
34
  @errors = errors
35
+ @utc_offset = utc_offset
35
36
  end
36
37
 
37
38
  def get(path, options={})
@@ -83,7 +84,8 @@ module Closeio
83
84
  def connection
84
85
  Faraday.new(url: "https://app.close.io/api/v1", headers: {
85
86
  accept: 'application/json',
86
- 'User-Agent' => "closeio-ruby-gem/v#{Closeio::VERSION}"
87
+ 'User-Agent' => "closeio-ruby-gem/v#{Closeio::VERSION}",
88
+ 'X-TZ-Offset' => utc_offset.to_s
87
89
  }, ssl: { ca_file: ca_file}) do |conn|
88
90
  conn.basic_auth api_key, ''
89
91
  conn.request :json
@@ -1,3 +1,3 @@
1
1
  module Closeio
2
- VERSION = "2.6.8"
2
+ VERSION = "2.6.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: closeio
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.8
4
+ version: 2.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Brooks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-15 00:00:00.000000000 Z
11
+ date: 2017-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  version: '0'
195
195
  requirements: []
196
196
  rubyforge_project:
197
- rubygems_version: 2.6.8
197
+ rubygems_version: 2.4.8
198
198
  signing_key:
199
199
  specification_version: 4
200
200
  summary: A Ruby wrapper for the CloseIO API