agent_status_bulb 0.2.0 → 0.3.0

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
  SHA256:
3
- metadata.gz: 1687e4b5c95d5ab157aa65b015cc8ea7ca7f57790271819d4ff279ca3a550e3e
4
- data.tar.gz: 4d0125c57a0f6689f297bb7ba460040afe0455e6ead33d33628d34f4ca03e8f7
3
+ metadata.gz: 926cc8a1e54b9ad64f98b0be63c4340343c8c560af83c3c1b1e1cfdd6975296b
4
+ data.tar.gz: 2700ad1bc86a4a5bef790c1821a3748056741bc6e3fe3e2ba76869873fdf5c86
5
5
  SHA512:
6
- metadata.gz: 894c08da441f4af27c49630952bd7219c771edd363a797a836738d45d7a2f01ea69edb2d21e49407db0248493a7703156a4f36c90457d22a43e612cabd49b4c5
7
- data.tar.gz: 82a12d8f0f460f8295fe2adb3611eb09167eb061948a4acd5af377b6d5429ab5ee298930c4d8ae767ff0d53e9ae5916ba6d6f90f33f548c1894faa245d57e7e0
6
+ metadata.gz: fb0a80dc7f123fd52525dd0787e1273271c9ef192c3d09f96cdda78c841d7605f20c1ddbe155385a20bec2ff59410822195803b3de71ecc69a51ed7b16930d33
7
+ data.tar.gz: 36b57bd8fb3a83191af52dde0107a0f142da019f51eab8ba16cc0f662623f9f56aa2947ed4a6b1f4148ab8d5147d9ec3e058d2803dff09fe0af6be1f9b5a1c8a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.3.0] - 2025-11-29
4
+
5
+ - Added `version` CLI command to print the current version
6
+ - CLI commands now ignore unknown options instead of exiting with an error
7
+
3
8
  ## [0.2.0] - 2025-11-19
4
9
 
5
10
  - Introduced `AgentStatusBulb::Bulb` to wrap SwitchBot integration and provide run/wait/idle/off color APIs with automatic power control
@@ -13,27 +13,32 @@ module AgentStatusBulb
13
13
  map 'off' => :off_command
14
14
 
15
15
  desc 'configure', 'Save Token/Secret/Device ID'
16
- def configure
16
+ def configure(*_args)
17
17
  handle_error { configurator.configure! }
18
18
  end
19
19
 
20
+ desc 'version', 'Print the current version'
21
+ def version(*_args)
22
+ puts AgentStatusBulb::VERSION
23
+ end
24
+
20
25
  desc 'run', 'Set color to running (blue)'
21
- def run_command
26
+ def run_command(*_args)
22
27
  handle_error { bulb.blue }
23
28
  end
24
29
 
25
30
  desc 'wait', 'Set color to waiting (orange)'
26
- def wait_command
31
+ def wait_command(*_args)
27
32
  handle_error { bulb.orange }
28
33
  end
29
34
 
30
35
  desc 'idle', 'Set color to idle (green)'
31
- def idle_command
36
+ def idle_command(*_args)
32
37
  handle_error { bulb.green }
33
38
  end
34
39
 
35
40
  desc 'off', 'Turn off the bulb'
36
- def off_command
41
+ def off_command(*_args)
37
42
  handle_error { bulb.off }
38
43
  end
39
44
 
@@ -52,5 +57,9 @@ module AgentStatusBulb
52
57
  @configurator ||= AgentStatusBulb::Configure.new
53
58
  end
54
59
  end
60
+
61
+ def self.exit_on_failure?
62
+ true
63
+ end
55
64
  end
56
65
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AgentStatusBulb
4
- VERSION = '0.2.0'
4
+ VERSION = '0.3.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agent_status_bulb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshiki Takagi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-11-19 00:00:00.000000000 Z
11
+ date: 2025-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: switchbot