tplink_smarthome_api 0.1.0 → 0.2.0

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: e0a7ce785446e19fcf0c616bbd81fd35bff808ccd615513a3d6a7a60c8b1519a
4
- data.tar.gz: 9f5bd4be49a3cf637038760a0bf1632fae27e4003fac3a2fe846aef13d56e28c
3
+ metadata.gz: a01125792df5c18149896dd51c38b982536860d549d9dc6b989799b8fd3b4626
4
+ data.tar.gz: d3870e18c98869c60b3a6c7fc3d59fcd67e45729a6ed6693ec0bab94087ca783
5
5
  SHA512:
6
- metadata.gz: 2458fb862f9ff92010ab9f7b3a06b9275559be95400cc87a64803348f10a0985e805964e6686537230992c2b59d59a869a25824fa3fc57d1c569f0ca3d66b4de
7
- data.tar.gz: 82d91aec2de8da7e4e829f93e68cc9681f54c6a424ec15b4ab89a77d977181c45a44de735be5ce113d55c5bf7b6ed885824278625e061cf3f58f0fc289336685
6
+ metadata.gz: 34418cad78640787112f839e28a796a1029049eb0924b0233f2cb5c2be1f72eb0d2a6039545bd4ea0f285ffed278efe3a03e1410c76c212fbc1f9884eac069df
7
+ data.tar.gz: 82650ca2283a507ae13a49f7059fb9deb99423048db4ef8d1d87f8a3bacb1c95acd09a2cf07e8d3fc32d9584fe6c07c23228092ebe3628bd0cbaa395d1ed9325
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tplink_smarthome_api (0.1.0)
4
+ tplink_smarthome_api (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  class TplinkSmarthomeApi
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -30,6 +30,10 @@ class TplinkSmarthomeApi
30
30
  self
31
31
  end
32
32
 
33
+ def reboot(delay: 1)
34
+ send_command {system: { reboot: { delay: delay } } }.to_json
35
+ end
36
+
33
37
  private
34
38
 
35
39
  def send_command(payload)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tplink_smarthome_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carl Mercier
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-27 00:00:00.000000000 Z
11
+ date: 2018-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler