tplink_smarthome_api 0.2.0 → 0.2.1

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: a01125792df5c18149896dd51c38b982536860d549d9dc6b989799b8fd3b4626
4
- data.tar.gz: d3870e18c98869c60b3a6c7fc3d59fcd67e45729a6ed6693ec0bab94087ca783
3
+ metadata.gz: 0c0761fc157efbacefd443814f709b27b5e4fc09f4de6aaff6c9a79af34478ac
4
+ data.tar.gz: acf4c51ad6703c91c0c55ee69c485f8729039ce30713f8a46e03edd11256703a
5
5
  SHA512:
6
- metadata.gz: 34418cad78640787112f839e28a796a1029049eb0924b0233f2cb5c2be1f72eb0d2a6039545bd4ea0f285ffed278efe3a03e1410c76c212fbc1f9884eac069df
7
- data.tar.gz: 82650ca2283a507ae13a49f7059fb9deb99423048db4ef8d1d87f8a3bacb1c95acd09a2cf07e8d3fc32d9584fe6c07c23228092ebe3628bd0cbaa395d1ed9325
6
+ metadata.gz: 312976b7738a57b707156e45836f6e77b42099e41962f69ffd20b4823e5cda7b231b4d7570536402d06f9684588523c7b2eeee788cd5f156cbe921a1a1d87c4e
7
+ data.tar.gz: b32bd83cbc137c216968e6b0a252c3f19bc8f287a037feb0d17cbbd48487045bffb2cc37699198fd9962cb7bbfada8d9cd698a62b882d23cf126348c741e1371
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tplink_smarthome_api (0.2.0)
4
+ tplink_smarthome_api (0.2.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -31,7 +31,9 @@ class TplinkSmarthomeApi
31
31
  end
32
32
 
33
33
  def reboot(delay: 1)
34
- send_command {system: { reboot: { delay: delay } } }.to_json
34
+ payload = { system: {
35
+ reboot: { delay: delay } } }.to_json
36
+ send_command payload
35
37
  end
36
38
 
37
39
  private
@@ -1,3 +1,3 @@
1
1
  class TplinkSmarthomeApi
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tplink_smarthome_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carl Mercier