light_me_up 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/bin/light-me-up +1 -1
- data/lib/light_me_up/settings_update.rb +1 -3
- data/lib/light_me_up/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f637eabb588a28dd7f5582e8e750488a6ff28a857351b3cc382ce36a84885cac
|
4
|
+
data.tar.gz: 69a40d452a72b23134fa62d56764f27f2a95a4e85120fd43aa0044a8023a3e22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15b23d0d80fe5eb21bdbeaf1b525fb2882a66c09492d8701e54ca5d6f755e8049894341494556e97e1d6c95dad5af6ddd13a6a2515466ba2c18f2448ef1e57fe
|
7
|
+
data.tar.gz: 0dd7599491f2157d6cc36fe473d2d4c8c9efb606a8eb277ab0933d7aa741ecc07f790c3b99d329b52098745f151e117a87fb938da4fd648541b548d38bb78c85
|
data/Gemfile.lock
CHANGED
data/bin/light-me-up
CHANGED
@@ -42,7 +42,7 @@ begin
|
|
42
42
|
LightMeUp::SettingsUpdate.new(api_client, options).perform
|
43
43
|
rescue LightMeUp::SettingsUpdate::ToggleIncompatible => e
|
44
44
|
Optimist.die :toggle, e.message
|
45
|
-
rescue LightMeUp::NoOptionsGiven
|
45
|
+
rescue LightMeUp::SettingsUpdate::NoOptionsGiven
|
46
46
|
Optimist.educate
|
47
47
|
rescue LightMeUp::Error => e
|
48
48
|
warn e.message
|
@@ -17,9 +17,7 @@ module LightMeUp
|
|
17
17
|
raise ToggleIncompatible, "is not compatible with setting other options" if settings_options.any?
|
18
18
|
|
19
19
|
api_client.toggle
|
20
|
-
|
21
|
-
|
22
|
-
if settings_options.any?
|
20
|
+
elsif settings_options.any?
|
23
21
|
api_client.set(**settings_options)
|
24
22
|
else
|
25
23
|
raise NoOptionsGiven, "provide at least one option"
|
data/lib/light_me_up/version.rb
CHANGED