hue_switch 1.0.5 → 1.0.6

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
  SHA1:
3
- metadata.gz: 0436b41204a89e0553f8014d4e2e1765f5a72c8b
4
- data.tar.gz: 4a0e10572daa901e68c7efaf76285e90f07ed93c
3
+ metadata.gz: e1071d2a3811b36a862b5d7113c91bfea88a87a6
4
+ data.tar.gz: 2656ed1282437b2933ab9d017013993ea187c214
5
5
  SHA512:
6
- metadata.gz: aa736f8cfdf609b955eaa7111aad12c9f65e14345da7760095153fc10121dd94ef9b2093d59f28f256904210287e85cb569abf6e03222112dd04662bbe0b2c65
7
- data.tar.gz: 7b111dc0b67e3445cd9f31a1f0caf0e293dde6a8c2b9a16a3096c08b98da3d2ef39507e5070bec77ddf7e985b53caee737c512ec96e0eefc40dba3ca804ca091
6
+ metadata.gz: d88b7211105f53308f33c59fcbfa8fff5d7d9d532a172445556dfbdfc318c85f923117773af59eb550f4c345c36204670580f148cbc6d3f38045a54696d15c18
7
+ data.tar.gz: bdea046e29f2a1665c39b2a46c084050097f3e7abebe61c9a18b43f5b540166ab42e70affd412b6248257ba5dc3921358df5e09a5fc7cd865f188de1d7caa349
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hue_switch (1.0.5)
4
+ hue_switch (1.0.6)
5
5
  chronic (~> 0.10.0)
6
6
  chronic_duration (~> 0)
7
7
  httparty (~> 0.13.0)
data/lib/hue_switch.rb CHANGED
@@ -85,7 +85,8 @@ class Switch
85
85
  def lights(group_name)
86
86
  self.lights_array = []
87
87
  self.body.delete(:scene)
88
- self._group = @groups[group_name.to_s]
88
+ group = @groups[group_name.to_s]
89
+ self._group = group if !group.nil?
89
90
  end
90
91
 
91
92
  def scene(scene_name)
@@ -153,7 +154,7 @@ class Switch
153
154
  self.body[:on] = true if on_or_off == :on
154
155
  self.body[:on] = false if on_or_off == :off
155
156
  set_time = set_time(string)
156
- if set_time < Time.now
157
+ if set_time < Time.now
157
158
  p "You've scheduled this in the past"
158
159
  else
159
160
  set_time = set_time.to_s.split(' ')[0..1].join(' ').sub(' ',"T")
@@ -1,3 +1,3 @@
1
1
  module HueSwitch
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hue_switch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - sarkonovich
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-09 00:00:00.000000000 Z
11
+ date: 2015-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chronic
@@ -131,6 +131,7 @@ files:
131
131
  - hue_switch.gemspec
132
132
  - lib/hue_switch.rb
133
133
  - lib/hue_switch/version.rb
134
+ - pkg/hue_switch-1.0.5.gem
134
135
  homepage: http://www.github.com/sarkonovich/Hue-Switch
135
136
  licenses:
136
137
  - MIT