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 +4 -4
- data/lib/closeio/client.rb +5 -3
- data/lib/closeio/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29d10088b8ebc6b04f602cd34d5ffd2239f4ae0e
|
4
|
+
data.tar.gz: a5b78f229f98c0fa8648f4c27afa285cfbe56bbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d0e4c9d0b3332188b72f3431fb3dea52e35e8f532f717bca6ce36f7673331f98bf6df2ebd4ca94ad705a7d40b45e6f90c80176a86c30d9b4d2d7264b9384c40
|
7
|
+
data.tar.gz: 2c8913d4d35e3170a6ca969a56861a989fe824a4093226a4192cd10237efbd134dfebba02b24da2a3c3d90746e8abf78b12628d14a43433ae789708e29023688
|
data/lib/closeio/client.rb
CHANGED
@@ -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
|
data/lib/closeio/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|