closeio 2.6.9 → 2.6.10

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: 29d10088b8ebc6b04f602cd34d5ffd2239f4ae0e
4
- data.tar.gz: a5b78f229f98c0fa8648f4c27afa285cfbe56bbb
3
+ metadata.gz: 100254352e044531a5748dddd76a041f2b3bed8d
4
+ data.tar.gz: dd86828b1b1ae13d6536f940f374acadd289c0cf
5
5
  SHA512:
6
- metadata.gz: 0d0e4c9d0b3332188b72f3431fb3dea52e35e8f532f717bca6ce36f7673331f98bf6df2ebd4ca94ad705a7d40b45e6f90c80176a86c30d9b4d2d7264b9384c40
7
- data.tar.gz: 2c8913d4d35e3170a6ca969a56861a989fe824a4093226a4192cd10237efbd134dfebba02b24da2a3c3d90746e8abf78b12628d14a43433ae789708e29023688
6
+ metadata.gz: 39c9e484e920ff5d14a3c064107a7c6d9e2e296ae3e811518d4513111b8f941f3c3776b1c0f0a50cd55c190521cc890a37b8a3cd76d50a2b18aabc5c63d2b364
7
+ data.tar.gz: db8c63c3a27cb1e39dc47f36b4e2b79260e61844e10db04b84471cc367cb1016a4551a766720c97e38cca56ca12285a5e67477fd489878dee7d9c82722153878
data/README.md CHANGED
@@ -87,6 +87,14 @@ If you're running on Heroku with SSL enabled, you need to pass in the path of th
87
87
  client = Closeio::Client.new("api key", true, '/usr/lib/ssl/certs/ca-certificates.crt')
88
88
  ```
89
89
 
90
+ Timezone Offsets
91
+ For requests that include date filters like date_created or date_start, you can use the `utc_offset` named parameter to pass your timezone's UTC offset as part of your request. By default all API calls uses the UTC time.
92
+ ```ruby
93
+ utc_offset = Time.zone.utc_offset.to_f / 1.hour
94
+ client = Closeio::Client.new("api key", utc_offset: utc_offset)
95
+ ```
96
+
97
+
90
98
  ### History
91
99
 
92
100
  View the [changelog](https://github.com/taylorbrooks/closeio/blob/master/CHANGELOG.md)
@@ -18,6 +18,9 @@ module Closeio
18
18
  get("api_key/#{@api_key}/")
19
19
  end
20
20
 
21
+ def available_users(organization_id)
22
+ get("user/availability/?organization_id=#{organization_id}")
23
+ end
21
24
  end
22
25
  end
23
26
  end
@@ -1,3 +1,3 @@
1
1
  module Closeio
2
- VERSION = "2.6.9"
2
+ VERSION = '2.6.10'
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.9
4
+ version: 2.6.10
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-10-23 00:00:00.000000000 Z
11
+ date: 2017-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday