pushbullet_client 0.0.11 → 0.0.13

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: 5f87b1703c60bc25fc081b84b8dc3b2c048d8fe9ebab5c0f581c56a2d7e41fa8
4
- data.tar.gz: 070d5c0952374f1afb480c581a1a29bb7dd5f0c247a3ab0f4459217e69956142
3
+ metadata.gz: 912ca3e2d7523f0ff443e930bdf568ee33ce94f1e6a55e0bff918d011ddb305c
4
+ data.tar.gz: e8eb9f47773b73faec9204afacf266f8be31c9a7188f7cdfe6622bdff562a9ca
5
5
  SHA512:
6
- metadata.gz: efd468c070466045a9918f310232c37605c8ab861f34ac387345a5343e4e329cfd74477e2167fe804a721e92acd7bfcadb0da8d6ac70adc77cfc924d8a862f97
7
- data.tar.gz: a84b637b9e7ad9f9d5d6b6a1570fc667a7546c1c8ddee51422640e32ea0a2a332a0d036f6a1e70d7decf0ecd8fb37e1ea8d5a22050636629c7e20de74951c1d9
6
+ metadata.gz: 81d94b9dd6d573f6cabf40ce15719a1322c6b2f5ea88a386c0f67032526c83ecde756f67ffc12507cbf5752fe815d41417117bb53af36aef69d9dc6461772df4
7
+ data.tar.gz: f942f84ed4fb2d2147e2c7c9cb48f73edbe44503801995c7c78f43a2f60ce567571666c60b258c825b71f2d1f990b51488aaef1fcfbbe7b6c4c221de54722515
data/.gitignore CHANGED
@@ -54,3 +54,4 @@ build-iPhoneSimulator/
54
54
 
55
55
  # Used by RuboCop. Remote config files pulled in from inherit_from directive.
56
56
  # .rubocop-https?--*
57
+ .DS_Store
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.2.0
1
+ 3.2.2
data/Gemfile.lock CHANGED
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pushbullet_client (0.0.11)
5
- active_attr (~> 0.15.4)
4
+ pushbullet_client (0.0.13)
5
+ active_attr (~> 0.16.0)
6
6
  httparty (~> 0.21.0)
7
- nokogiri (~> 1.13.10)
7
+ nokogiri (~> 1.15.4)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
@@ -22,10 +22,10 @@ GEM
22
22
  erubi (~> 1.4)
23
23
  rails-dom-testing (~> 2.0)
24
24
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
25
- active_attr (0.15.4)
26
- actionpack (>= 3.0.2, < 7.1)
27
- activemodel (>= 3.0.2, < 7.1)
28
- activesupport (>= 3.0.2, < 7.1)
25
+ active_attr (0.16.0)
26
+ actionpack (>= 3.0.2, < 7.2)
27
+ activemodel (>= 3.0.2, < 7.2)
28
+ activesupport (>= 3.0.2, < 7.2)
29
29
  activemodel (7.0.4)
30
30
  activesupport (= 7.0.4)
31
31
  activesupport (7.0.4)
@@ -33,7 +33,7 @@ GEM
33
33
  i18n (>= 1.6, < 2)
34
34
  minitest (>= 5.1)
35
35
  tzinfo (~> 2.0)
36
- addressable (2.8.1)
36
+ addressable (2.8.5)
37
37
  public_suffix (>= 2.0.2, < 6.0)
38
38
  ansi (1.5.0)
39
39
  builder (3.2.4)
@@ -54,22 +54,23 @@ GEM
54
54
  nokogiri (>= 1.5.9)
55
55
  method_source (1.0.0)
56
56
  mini_mime (1.1.2)
57
- minitest (5.15.0)
58
- minitest-focus (1.3.1)
57
+ minitest (5.20.0)
58
+ minitest-focus (1.4.0)
59
59
  minitest (>= 4, < 6)
60
- minitest-reporters (1.5.0)
60
+ minitest-reporters (1.6.1)
61
61
  ansi
62
62
  builder
63
63
  minitest (>= 5.0)
64
64
  ruby-progressbar
65
- mocha (1.13.0)
65
+ mocha (2.1.0)
66
+ ruby2_keywords (>= 0.0.5)
66
67
  multi_xml (0.6.0)
67
- nokogiri (1.13.10-arm64-darwin)
68
+ nokogiri (1.15.4-arm64-darwin)
68
69
  racc (~> 1.4)
69
- pry (0.14.1)
70
+ pry (0.14.2)
70
71
  coderay (~> 1.1)
71
72
  method_source (~> 1.0)
72
- public_suffix (5.0.1)
73
+ public_suffix (5.0.3)
73
74
  racc (1.6.2)
74
75
  rack (2.2.5)
75
76
  rack-test (2.0.2)
@@ -79,31 +80,32 @@ GEM
79
80
  nokogiri (>= 1.6)
80
81
  rails-html-sanitizer (1.4.4)
81
82
  loofah (~> 2.19, >= 2.19.1)
82
- rake (13.0.6)
83
- rexml (3.2.5)
84
- ruby-progressbar (1.11.0)
85
- timecop (0.9.6)
83
+ rake (13.1.0)
84
+ rexml (3.2.6)
85
+ ruby-progressbar (1.13.0)
86
+ ruby2_keywords (0.0.5)
87
+ timecop (0.9.8)
86
88
  tzinfo (2.0.5)
87
89
  concurrent-ruby (~> 1.0)
88
- webmock (3.14.0)
90
+ webmock (3.19.1)
89
91
  addressable (>= 2.8.0)
90
92
  crack (>= 0.3.2)
91
93
  hashdiff (>= 0.4.0, < 2.0.0)
92
94
 
93
95
  PLATFORMS
94
96
  arm64-darwin-22
97
+ arm64-darwin-23
95
98
 
96
99
  DEPENDENCIES
97
- bundler (~> 2.3.5)
98
- minitest (~> 5.15.0)
99
- minitest-focus (~> 1.3.1)
100
- minitest-reporters (~> 1.5.0)
101
- mocha (~> 1.13.0)
102
- pry (~> 0.14.1)
100
+ minitest (~> 5.20.0)
101
+ minitest-focus (~> 1.4.0)
102
+ minitest-reporters (~> 1.6.1)
103
+ mocha (~> 2.1.0)
104
+ pry (~> 0.14.2)
103
105
  pushbullet_client!
104
- rake (~> 13.0.6)
105
- timecop (~> 0.9.1)
106
- webmock (~> 3.14.0)
106
+ rake (~> 13.1.0)
107
+ timecop (~> 0.9.8)
108
+ webmock (~> 3.19.1)
107
109
 
108
110
  BUNDLED WITH
109
- 2.3.26
111
+ 2.4.21
@@ -28,6 +28,7 @@ module Pushbullet
28
28
  @base_path = base_path
29
29
  @port = port
30
30
  @limit = limit
31
+ @disable_limit = false # Used internally for permanents calls
31
32
  end
32
33
 
33
34
  def self.compatible_api_version
@@ -48,7 +49,9 @@ module Pushbullet
48
49
  params = {}
49
50
  end
50
51
 
51
- params['limit'] = @limit
52
+ unless @disable_limit
53
+ params['limit'] = @limit
54
+ end
52
55
 
53
56
  response = HTTParty.send(
54
57
  http_method.to_sym,
@@ -2,17 +2,21 @@ module Pushbullet
2
2
  module Permanents
3
3
  # See: https://stackoverflow.com/questions/38027963/pushbullet-api-thread-id-to-conversation-iden-for-sms
4
4
  def permanents(device_identity:, params: {}, cursor: nil)
5
+ @disable_limit = true
5
6
  params = process_cursor(cursor, params: params)
6
7
 
7
8
  path = "permanents/#{device_identity}_threads"
8
9
  authorise_and_send(http_method: :get, path: path, params: params)
10
+ @disable_limit = false
9
11
  end
10
12
 
11
13
  def permanent_conversation(device_identity:, thread_id:, params: {}, cursor: nil)
14
+ @disable_limit = true
12
15
  params = process_cursor(cursor, params: params)
13
16
 
14
17
  path = "permanents/#{device_identity}_thread_#{thread_id}"
15
18
  authorise_and_send(http_method: :get, path: path, params: params)
19
+ @disable_limit = false
16
20
  end
17
21
  end
18
22
  end
@@ -1,3 +1,3 @@
1
1
  module Pushbullet
2
- VERSION = '0.0.11'
2
+ VERSION = '0.0.13'
3
3
  end
@@ -23,17 +23,16 @@ Gem::Specification.new do |spec|
23
23
  spec.require_paths = ['lib']
24
24
 
25
25
  spec.add_dependency "httparty", "~> 0.21.0"
26
- spec.add_dependency "active_attr", "~> 0.15.4"
27
- spec.add_dependency "nokogiri", "~> 1.13.10"
26
+ spec.add_dependency "active_attr", "~> 0.16.0"
27
+ spec.add_dependency "nokogiri", "~> 1.15.4"
28
28
 
29
29
  # Development dependancies
30
- spec.add_development_dependency "bundler", "~> 2.3.5"
31
- spec.add_development_dependency "rake", "~> 13.0.6"
32
- spec.add_development_dependency "minitest", "~> 5.15.0"
33
- spec.add_development_dependency "minitest-focus", "~> 1.3.1"
34
- spec.add_development_dependency "minitest-reporters", "~> 1.5.0"
35
- spec.add_development_dependency "timecop", "~> 0.9.1"
36
- spec.add_development_dependency "mocha", "~> 1.13.0"
37
- spec.add_development_dependency "pry", "~> 0.14.1"
38
- spec.add_development_dependency "webmock", "~> 3.14.0"
30
+ spec.add_development_dependency "rake", "~> 13.1.0"
31
+ spec.add_development_dependency "minitest", "~> 5.20.0"
32
+ spec.add_development_dependency "minitest-focus", "~> 1.4.0"
33
+ spec.add_development_dependency "minitest-reporters", "~> 1.6.1"
34
+ spec.add_development_dependency "timecop", "~> 0.9.8"
35
+ spec.add_development_dependency "mocha", "~> 2.1.0"
36
+ spec.add_development_dependency "pry", "~> 0.14.2"
37
+ spec.add_development_dependency "webmock", "~> 3.19.1"
39
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.11
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - trex22
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-06 00:00:00.000000000 Z
11
+ date: 2023-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -30,154 +30,140 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.15.4
33
+ version: 0.16.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.15.4
40
+ version: 0.16.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: nokogiri
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.13.10
47
+ version: 1.15.4
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.13.10
55
- - !ruby/object:Gem::Dependency
56
- name: bundler
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: 2.3.5
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: 2.3.5
54
+ version: 1.15.4
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: rake
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
59
  - - "~>"
74
60
  - !ruby/object:Gem::Version
75
- version: 13.0.6
61
+ version: 13.1.0
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
66
  - - "~>"
81
67
  - !ruby/object:Gem::Version
82
- version: 13.0.6
68
+ version: 13.1.0
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: minitest
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
73
  - - "~>"
88
74
  - !ruby/object:Gem::Version
89
- version: 5.15.0
75
+ version: 5.20.0
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
80
  - - "~>"
95
81
  - !ruby/object:Gem::Version
96
- version: 5.15.0
82
+ version: 5.20.0
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: minitest-focus
99
85
  requirement: !ruby/object:Gem::Requirement
100
86
  requirements:
101
87
  - - "~>"
102
88
  - !ruby/object:Gem::Version
103
- version: 1.3.1
89
+ version: 1.4.0
104
90
  type: :development
105
91
  prerelease: false
106
92
  version_requirements: !ruby/object:Gem::Requirement
107
93
  requirements:
108
94
  - - "~>"
109
95
  - !ruby/object:Gem::Version
110
- version: 1.3.1
96
+ version: 1.4.0
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: minitest-reporters
113
99
  requirement: !ruby/object:Gem::Requirement
114
100
  requirements:
115
101
  - - "~>"
116
102
  - !ruby/object:Gem::Version
117
- version: 1.5.0
103
+ version: 1.6.1
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
107
  requirements:
122
108
  - - "~>"
123
109
  - !ruby/object:Gem::Version
124
- version: 1.5.0
110
+ version: 1.6.1
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: timecop
127
113
  requirement: !ruby/object:Gem::Requirement
128
114
  requirements:
129
115
  - - "~>"
130
116
  - !ruby/object:Gem::Version
131
- version: 0.9.1
117
+ version: 0.9.8
132
118
  type: :development
133
119
  prerelease: false
134
120
  version_requirements: !ruby/object:Gem::Requirement
135
121
  requirements:
136
122
  - - "~>"
137
123
  - !ruby/object:Gem::Version
138
- version: 0.9.1
124
+ version: 0.9.8
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: mocha
141
127
  requirement: !ruby/object:Gem::Requirement
142
128
  requirements:
143
129
  - - "~>"
144
130
  - !ruby/object:Gem::Version
145
- version: 1.13.0
131
+ version: 2.1.0
146
132
  type: :development
147
133
  prerelease: false
148
134
  version_requirements: !ruby/object:Gem::Requirement
149
135
  requirements:
150
136
  - - "~>"
151
137
  - !ruby/object:Gem::Version
152
- version: 1.13.0
138
+ version: 2.1.0
153
139
  - !ruby/object:Gem::Dependency
154
140
  name: pry
155
141
  requirement: !ruby/object:Gem::Requirement
156
142
  requirements:
157
143
  - - "~>"
158
144
  - !ruby/object:Gem::Version
159
- version: 0.14.1
145
+ version: 0.14.2
160
146
  type: :development
161
147
  prerelease: false
162
148
  version_requirements: !ruby/object:Gem::Requirement
163
149
  requirements:
164
150
  - - "~>"
165
151
  - !ruby/object:Gem::Version
166
- version: 0.14.1
152
+ version: 0.14.2
167
153
  - !ruby/object:Gem::Dependency
168
154
  name: webmock
169
155
  requirement: !ruby/object:Gem::Requirement
170
156
  requirements:
171
157
  - - "~>"
172
158
  - !ruby/object:Gem::Version
173
- version: 3.14.0
159
+ version: 3.19.1
174
160
  type: :development
175
161
  prerelease: false
176
162
  version_requirements: !ruby/object:Gem::Requirement
177
163
  requirements:
178
164
  - - "~>"
179
165
  - !ruby/object:Gem::Version
180
- version: 3.14.0
166
+ version: 3.19.1
181
167
  description: A client for using the Pushbullet API in Ruby. Built form their api documentation.
182
168
  https://docs.pushbullet.com/v10/#quick-start. This is an unofficial project.
183
169
  email:
@@ -230,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
216
  - !ruby/object:Gem::Version
231
217
  version: '0'
232
218
  requirements: []
233
- rubygems_version: 3.3.26
219
+ rubygems_version: 3.4.10
234
220
  signing_key:
235
221
  specification_version: 4
236
222
  summary: A client for using the Pushbullet API in Ruby.