Skip to content
This repository was archived by the owner on Feb 15, 2024. It is now read-only.

Commit 4448a62

Browse files
committed
Imported Upstream version 1.3.1
1 parent 08a6134 commit 4448a62

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/particle/client/devices.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def change_device_product(target, product_id, should_update = false)
138138
# (default rsa)
139139
# @return [boolean] true when successful
140140
def update_device_public_key(target, public_key, algorithm = 'rsa')
141-
result = post(Device.update_keys_path,
141+
result = post(device(target).update_keys_path,
142142
deviceID: device(target).id,
143143
publicKey: public_key,
144144
algorithm: algorithm)

lib/particle/device.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,8 @@ def self.provision_path
187187
"v1/devices"
188188
end
189189

190-
def self.update_keys_path
191-
"/v1/provisioning/x"
190+
def update_keys_path
191+
"/v1/provisioning/#{id}"
192192
end
193193

194194
def path

lib/particle/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Particle
2-
VERSION = "1.3.0".freeze
2+
VERSION = "1.3.1".freeze
33
end

0 commit comments

Comments
 (0)