pushbullet_client 0.0.14 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile.lock +14 -12
- data/lib/pushbullet/client.rb +14 -4
- data/lib/pushbullet/version.rb +1 -1
- data/pushbullet_client.gemspec +3 -3
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e1fca78108d565ec472e71336c798cc9341403ff1f3a0d6800acaa81eeb3620
|
4
|
+
data.tar.gz: bddc924d7c0595cf2e2cc8045d9d12871ba8a4c71147e65b9f59a90baed70421
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6d9190de8f8ec1f8a5dfd43c57c229fc3c77250afc9424e98a11d77b28289b3799344eb8d918261b2a18f273af53b360c1cc0cf0ac9087e87f0d3ccc57821b6
|
7
|
+
data.tar.gz: f4e0769922efd2a086b16bfc74dcc6fdd69e5b023e3349730db6498838b7214575e1aba6cf822c7164242f17cbfedcc03de92ad26ba0a9ef2ea102afd82cef6b
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.3.0
|
data/Gemfile.lock
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
pushbullet_client (0.0.
|
4
|
+
pushbullet_client (0.0.16)
|
5
5
|
active_attr (~> 0.16.0)
|
6
6
|
httparty (~> 0.21.0)
|
7
|
-
nokogiri (~> 1.
|
7
|
+
nokogiri (~> 1.16.2)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
@@ -33,17 +33,19 @@ GEM
|
|
33
33
|
i18n (>= 1.6, < 2)
|
34
34
|
minitest (>= 5.1)
|
35
35
|
tzinfo (~> 2.0)
|
36
|
-
addressable (2.8.
|
36
|
+
addressable (2.8.6)
|
37
37
|
public_suffix (>= 2.0.2, < 6.0)
|
38
38
|
ansi (1.5.0)
|
39
|
+
bigdecimal (3.1.6)
|
39
40
|
builder (3.2.4)
|
40
41
|
coderay (1.1.3)
|
41
42
|
concurrent-ruby (1.1.10)
|
42
|
-
crack (0.
|
43
|
+
crack (1.0.0)
|
44
|
+
bigdecimal
|
43
45
|
rexml
|
44
46
|
crass (1.0.6)
|
45
47
|
erubi (1.12.0)
|
46
|
-
hashdiff (1.0
|
48
|
+
hashdiff (1.1.0)
|
47
49
|
httparty (0.21.0)
|
48
50
|
mini_mime (>= 1.0.0)
|
49
51
|
multi_xml (>= 0.5.2)
|
@@ -54,7 +56,7 @@ GEM
|
|
54
56
|
nokogiri (>= 1.5.9)
|
55
57
|
method_source (1.0.0)
|
56
58
|
mini_mime (1.1.2)
|
57
|
-
minitest (5.
|
59
|
+
minitest (5.22.2)
|
58
60
|
minitest-focus (1.4.0)
|
59
61
|
minitest (>= 4, < 6)
|
60
62
|
minitest-reporters (1.6.1)
|
@@ -65,12 +67,12 @@ GEM
|
|
65
67
|
mocha (2.1.0)
|
66
68
|
ruby2_keywords (>= 0.0.5)
|
67
69
|
multi_xml (0.6.0)
|
68
|
-
nokogiri (1.
|
70
|
+
nokogiri (1.16.2-arm64-darwin)
|
69
71
|
racc (~> 1.4)
|
70
72
|
pry (0.14.2)
|
71
73
|
coderay (~> 1.1)
|
72
74
|
method_source (~> 1.0)
|
73
|
-
public_suffix (5.0.
|
75
|
+
public_suffix (5.0.4)
|
74
76
|
racc (1.6.2)
|
75
77
|
rack (2.2.5)
|
76
78
|
rack-test (2.0.2)
|
@@ -87,7 +89,7 @@ GEM
|
|
87
89
|
timecop (0.9.8)
|
88
90
|
tzinfo (2.0.5)
|
89
91
|
concurrent-ruby (~> 1.0)
|
90
|
-
webmock (3.
|
92
|
+
webmock (3.22.0)
|
91
93
|
addressable (>= 2.8.0)
|
92
94
|
crack (>= 0.3.2)
|
93
95
|
hashdiff (>= 0.4.0, < 2.0.0)
|
@@ -97,7 +99,7 @@ PLATFORMS
|
|
97
99
|
arm64-darwin-23
|
98
100
|
|
99
101
|
DEPENDENCIES
|
100
|
-
minitest (~> 5.
|
102
|
+
minitest (~> 5.22.2)
|
101
103
|
minitest-focus (~> 1.4.0)
|
102
104
|
minitest-reporters (~> 1.6.1)
|
103
105
|
mocha (~> 2.1.0)
|
@@ -105,7 +107,7 @@ DEPENDENCIES
|
|
105
107
|
pushbullet_client!
|
106
108
|
rake (~> 13.1.0)
|
107
109
|
timecop (~> 0.9.8)
|
108
|
-
webmock (~> 3.
|
110
|
+
webmock (~> 3.22.0)
|
109
111
|
|
110
112
|
BUNDLED WITH
|
111
|
-
2.
|
113
|
+
2.5.5
|
data/lib/pushbullet/client.rb
CHANGED
@@ -53,7 +53,20 @@ module Pushbullet
|
|
53
53
|
params['limit'] = @limit
|
54
54
|
end
|
55
55
|
|
56
|
-
|
56
|
+
begin
|
57
|
+
response = send_request(http_method, path, params, payload)
|
58
|
+
rescue => Socket::ResolutionError
|
59
|
+
# Retry once
|
60
|
+
# TODO: Add in retry amounts
|
61
|
+
response = send_request(http_method, path, params, payload)
|
62
|
+
end
|
63
|
+
|
64
|
+
end_time = micro_second_time_now
|
65
|
+
construct_response_object(response, path, start_time, end_time)
|
66
|
+
end
|
67
|
+
|
68
|
+
def send_request(http_method, path, params, payload)
|
69
|
+
HTTParty.send(
|
57
70
|
http_method.to_sym,
|
58
71
|
construct_base_path(path, params),
|
59
72
|
body: payload,
|
@@ -64,9 +77,6 @@ module Pushbullet
|
|
64
77
|
port: port,
|
65
78
|
format: :json
|
66
79
|
)
|
67
|
-
|
68
|
-
end_time = micro_second_time_now
|
69
|
-
construct_response_object(response, path, start_time, end_time)
|
70
80
|
end
|
71
81
|
|
72
82
|
def construct_response_object(response, path, start_time, end_time)
|
data/lib/pushbullet/version.rb
CHANGED
data/pushbullet_client.gemspec
CHANGED
@@ -24,15 +24,15 @@ Gem::Specification.new do |spec|
|
|
24
24
|
|
25
25
|
spec.add_dependency "httparty", "~> 0.21.0"
|
26
26
|
spec.add_dependency "active_attr", "~> 0.16.0"
|
27
|
-
spec.add_dependency "nokogiri", "~> 1.
|
27
|
+
spec.add_dependency "nokogiri", "~> 1.16.2"
|
28
28
|
|
29
29
|
# Development dependancies
|
30
30
|
spec.add_development_dependency "rake", "~> 13.1.0"
|
31
|
-
spec.add_development_dependency "minitest", "~> 5.
|
31
|
+
spec.add_development_dependency "minitest", "~> 5.22.2"
|
32
32
|
spec.add_development_dependency "minitest-focus", "~> 1.4.0"
|
33
33
|
spec.add_development_dependency "minitest-reporters", "~> 1.6.1"
|
34
34
|
spec.add_development_dependency "timecop", "~> 0.9.8"
|
35
35
|
spec.add_development_dependency "mocha", "~> 2.1.0"
|
36
36
|
spec.add_development_dependency "pry", "~> 0.14.2"
|
37
|
-
spec.add_development_dependency "webmock", "~> 3.
|
37
|
+
spec.add_development_dependency "webmock", "~> 3.22.0"
|
38
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pushbullet_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- trex22
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
47
|
+
version: 1.16.2
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
54
|
+
version: 1.16.2
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 5.
|
75
|
+
version: 5.22.2
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 5.
|
82
|
+
version: 5.22.2
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: minitest-focus
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 3.
|
159
|
+
version: 3.22.0
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 3.
|
166
|
+
version: 3.22.0
|
167
167
|
description: A client for using the Pushbullet API in Ruby. Built form their api documentation.
|
168
168
|
https://docs.pushbullet.com/v10/#quick-start. This is an unofficial project.
|
169
169
|
email:
|
@@ -216,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
216
216
|
- !ruby/object:Gem::Version
|
217
217
|
version: '0'
|
218
218
|
requirements: []
|
219
|
-
rubygems_version: 3.
|
219
|
+
rubygems_version: 3.5.3
|
220
220
|
signing_key:
|
221
221
|
specification_version: 4
|
222
222
|
summary: A client for using the Pushbullet API in Ruby.
|