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

Commit 29e240d

Browse files
committed
Imported Debian patch 1.3.1-1
2 parents bf6ad0e + 4448a62 commit 29e240d

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

debian/changelog

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
ruby-particlerb (1.3.0-1) unstable; urgency=medium
1+
ruby-particlerb (1.3.1-1) unstable; urgency=medium
22

3-
* Add device provisioning
3+
* Fix device provisioning endpoint
44

5-
-- Julien Vanier <[email protected]> Tue, 08 Nov 2016 11:49:27 -0500
5+
-- Julien Vanier <[email protected]> Thu, 26 Jan 2017 11:32:07 -0500

debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Build-Depends: debhelper (>= 9~),
77
gem2deb,
88
ruby-faraday (>= 0.9.0),
99
ruby-faraday-middleware (>= 0.9.0)
10-
Standards-Version: 3.9.7
10+
Standards-Version: 3.9.8
1111
Vcs-Git: https://github.com/spark/ruby-particlerb.git
1212
Vcs-Browser: https://github.com/spark/ruby-particlerb.git
1313
Homepage: https://github.com/monkbroc/particlerb

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)