pushbullet_client 0.0.4 → 0.0.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 637349004c915488377743896c07a428ef5fdd4bc2e49879573b5f0efbb2f1e2
4
- data.tar.gz: 6941d6cc16ab860c66e16ca6bff251811408dd55281f46ee8bba128852a4656e
3
+ metadata.gz: 83e5f94556f66fdad7d641f0a6b8bb5ce9d0add7c656b7c1cdebd9ff2da519b6
4
+ data.tar.gz: d799ac4ee79f89524ed9cf45bd96357363e79c2ae1b6293dd4ecf08bcb21081e
5
5
  SHA512:
6
- metadata.gz: 34d52875bc78520d4ed75196d856ea4eb1cda2d301b4cbe3e2bae07878daa6e9b92275c6ead66b4ecd344bac9cf66e44e1c9087c03b3c5787524406aac2039d8
7
- data.tar.gz: dafbdb01a475ed2341ebe5212805bfa6641e38adc66fb08ecf21eb2375bd9d822c54e6e3b8716da2dcbcdc5521ec98067d277089aae43d9d267d1eef257d73af
6
+ metadata.gz: 2252837846568ff01b37094f4f1d6172e3cee7da0223db8b8990bac17fe3e20bd5e9fedf7880b14671dcd002c93d111b4aa4b455997a64de4474a0b23a0f6221
7
+ data.tar.gz: 79ab13c24299baa6bd57eaf11fb463408704443352b3eaaf7957eb2d05a7f372e2b5b4498146c35f26a5d126f630b61a57575c0a42373f23f8dee74cec206fc7
@@ -23,10 +23,11 @@ module Pushbullet
23
23
 
24
24
  attr_reader :key, :secret, :base_path, :port
25
25
 
26
- def initialize(access_token:, base_path: API_V2_BASE_PATH, port: 80)
26
+ def initialize(access_token:, base_path: API_V2_BASE_PATH, port: 80, limit: 500)
27
27
  @access_token = access_token
28
28
  @base_path = base_path
29
29
  @port = port
30
+ @limit = limit
30
31
  end
31
32
 
32
33
  def self.compatible_api_version
@@ -43,6 +44,8 @@ module Pushbullet
43
44
  def authorise_and_send(http_method:, path:, payload: {}, params: {})
44
45
  start_time = micro_second_time_now
45
46
 
47
+ params['limit'] = @limit
48
+
46
49
  response = HTTParty.send(
47
50
  http_method.to_sym,
48
51
  construct_base_path(path, params),
@@ -104,7 +107,7 @@ module Pushbullet
104
107
  def construct_base_path(path, params)
105
108
  constructed_path = "#{base_path}/#{path}"
106
109
 
107
- if params != {}
110
+ if params == {}
108
111
  constructed_path
109
112
  else
110
113
  "#{constructed_path}?#{process_params(params)}"
@@ -1,3 +1,3 @@
1
1
  module Pushbullet
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
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.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - trex22