pushbullet_client 0.0.17 → 0.0.18
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/pushbullet/client.rb +5 -3
- data/lib/pushbullet/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f238840facbb7840b6fcd238bd64ff2e0d4277a9c499b0eb0f528e7ed9d883c5
|
4
|
+
data.tar.gz: 7ef9c68fb3da2d989e5a22c3819a758c78ebdbdbd275c60a1f5bb4bc6f87b598
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ca774d6b8a91aa135b986c93deb5c04ae0a00a56341dd42db5e531d57f614c698d4b89e33e1b44c7961059fd75222facc23161501be114f326be07f23a5c6e9
|
7
|
+
data.tar.gz: 52cdcf3fd553d92598f602b757694b74348271eee69c42ca4ee1fb96683f68523aa72fef30ecc2fbacd0adde83f290b7f2cf31bbc9a3377959f243dc2d11de59
|
data/lib/pushbullet/client.rb
CHANGED
@@ -21,14 +21,15 @@ module Pushbullet
|
|
21
21
|
# TODO: Date parsing
|
22
22
|
# TODO: Create api client creation library
|
23
23
|
|
24
|
-
attr_reader :key, :secret, :base_path, :port
|
24
|
+
attr_reader :key, :secret, :base_path, :port, :timeout
|
25
25
|
|
26
|
-
def initialize(access_token:, base_path: API_V2_BASE_PATH, port: 80, limit: 500)
|
26
|
+
def initialize(access_token:, base_path: API_V2_BASE_PATH, port: 80, limit: 500, timeout: 1000)
|
27
27
|
@access_token = access_token
|
28
28
|
@base_path = base_path
|
29
29
|
@port = port
|
30
30
|
@limit = limit
|
31
31
|
@disable_limit = false # Used internally for permanents calls
|
32
|
+
@timeout = timeout
|
32
33
|
end
|
33
34
|
|
34
35
|
def self.compatible_api_version
|
@@ -75,7 +76,8 @@ module Pushbullet
|
|
75
76
|
'Content-Type': 'application/json'
|
76
77
|
},
|
77
78
|
port: port,
|
78
|
-
format: :json
|
79
|
+
format: :json,
|
80
|
+
timeout: timeout
|
79
81
|
)
|
80
82
|
end
|
81
83
|
|
data/lib/pushbullet/version.rb
CHANGED