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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/agent_status_bulb/cli.rb +14 -5
- data/lib/agent_status_bulb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 926cc8a1e54b9ad64f98b0be63c4340343c8c560af83c3c1b1e1cfdd6975296b
|
|
4
|
+
data.tar.gz: 2700ad1bc86a4a5bef790c1821a3748056741bc6e3fe3e2ba76869873fdf5c86
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
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.
|
|
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-
|
|
11
|
+
date: 2025-11-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: switchbot
|