pushbullet_client 0.0.17 → 0.0.18

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
  SHA256:
3
- metadata.gz: 575fe6386a53cb5b9711fba22f42012a14af0c582143dcfcfb09f286889a5031
4
- data.tar.gz: c77da6e8b4542aea69abf76fa41bfaa2f1bdaf51dfece59c7ff937556852c8b1
3
+ metadata.gz: f238840facbb7840b6fcd238bd64ff2e0d4277a9c499b0eb0f528e7ed9d883c5
4
+ data.tar.gz: 7ef9c68fb3da2d989e5a22c3819a758c78ebdbdbd275c60a1f5bb4bc6f87b598
5
5
  SHA512:
6
- metadata.gz: 4012d0a3ffcb59ebf35b80c2c41735e8d81a2d1c178f3157931630562d807ad6deea3d31314698024e8b41dbb00b26f2795c28233b942cac857fc8c73e1c70b0
7
- data.tar.gz: 1dc3b5f437d74ff4e9b7593a8117542e47fce2ee7087f2fbef27b4844df1896f87e35ac32402f2519e1b008d2d784c12c797b4cde4a8adc372a35d81f591440a
6
+ metadata.gz: 7ca774d6b8a91aa135b986c93deb5c04ae0a00a56341dd42db5e531d57f614c698d4b89e33e1b44c7961059fd75222facc23161501be114f326be07f23a5c6e9
7
+ data.tar.gz: 52cdcf3fd553d92598f602b757694b74348271eee69c42ca4ee1fb96683f68523aa72fef30ecc2fbacd0adde83f290b7f2cf31bbc9a3377959f243dc2d11de59
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Pushbullet
2
- VERSION = "0.0.17"
2
+ VERSION = "0.0.18"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pushbullet_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - trex22