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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 94afbedabf39a83db771b9a256796bd9e13cfe80e5abdca791ae7b159e43dfeb
4
- data.tar.gz: 5d5fd8d91160cb31c185811381c01d78519f8a14d7aec8a406232216d4737a9d
3
+ metadata.gz: f637eabb588a28dd7f5582e8e750488a6ff28a857351b3cc382ce36a84885cac
4
+ data.tar.gz: 69a40d452a72b23134fa62d56764f27f2a95a4e85120fd43aa0044a8023a3e22
5
5
  SHA512:
6
- metadata.gz: c860756fc6ffca76099547d55ec864b38c33e43513d357731e2c724e77ad2b04a1f48d6d7fdeb6ad38ead151046a6f80bd47c8f83618f23d08b2dc22204eb78f
7
- data.tar.gz: d74ae4c379dae3c76d76f4fc4bc936b628999d137915f07c2f64bf55c491893b6b9bea859a9e8df79dbe97590fe965d7aed4c3f8469d3d578be93ecc9e8a71b7
6
+ metadata.gz: 15b23d0d80fe5eb21bdbeaf1b525fb2882a66c09492d8701e54ca5d6f755e8049894341494556e97e1d6c95dad5af6ddd13a6a2515466ba2c18f2448ef1e57fe
7
+ data.tar.gz: 0dd7599491f2157d6cc36fe473d2d4c8c9efb606a8eb277ab0933d7aa741ecc07f790c3b99d329b52098745f151e117a87fb938da4fd648541b548d38bb78c85
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- light_me_up (0.2.1)
4
+ light_me_up (0.2.2)
5
5
  optimist (~> 3.0)
6
6
 
7
7
  GEM
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
- end
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"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LightMeUp
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: light_me_up
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter McCracken