closeio 2.3.0 → 2.3.1
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 +4 -4
- data/lib/closeio/client.rb +7 -7
- data/lib/closeio/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bce6131fb07f10a9b1637894466004e8cfae60cc
|
|
4
|
+
data.tar.gz: 6f8cec4e0c31d21f237166d9e0da355424293fa7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 78d148a972990f7e985b9dda42cdd809cc62ace289e39363d4011c30be9d3a3edd603d439561de64acd8f080731d98f6e57fc13630892278f3cee18ed1cd2e2f
|
|
7
|
+
data.tar.gz: c2b6dfe96e84bc8e61e3ce3241d9857687170b7f0bf290a96fd3e1439db056737402438596c7ea37534bed8a0dddbcc615cf60c1016f12f7d68ffeb6781fb19c
|
data/lib/closeio/client.rb
CHANGED
|
@@ -65,13 +65,13 @@ module Closeio
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
def connection
|
|
68
|
-
Faraday.new(url: "https://app.close.io/api/v1", headers: { accept: 'application/json' }) do |
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
68
|
+
Faraday.new(url: "https://app.close.io/api/v1", headers: { accept: 'application/json' }) do |conn|
|
|
69
|
+
conn.basic_auth api_key, ''
|
|
70
|
+
conn.request :json
|
|
71
|
+
conn.response :logger if logger
|
|
72
|
+
conn.use FaradayMiddleware::Mashify
|
|
73
|
+
conn.response :json
|
|
74
|
+
conn.adapter Faraday.default_adapter
|
|
75
75
|
end
|
|
76
76
|
end
|
|
77
77
|
end
|
data/lib/closeio/version.rb
CHANGED