ceol 0.1.0 → 0.2.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 +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +3 -2
- data/exe/ceol +12 -7
- data/lib/ceol/controller.rb +4 -0
- data/lib/ceol/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: 1baa6c460efa9da4dee35c58d631616ba1ec0631e191266efb5e9843727ef986
|
4
|
+
data.tar.gz: 554483f838c01f913c5674c0ba42972b55244690b861d941f689a97d98fb2174
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eab5464cb0d4cc41b7f88e7fc299ade08ada9e2a9ce7362d7de8896d66a1ef6ea074a63b019fa0c89dabb7b4c97825ef05b9f2d728fdac9de5538211fc7b0ee4
|
7
|
+
data.tar.gz: fb5a2445d0fffc65c6ae6d01f9f861ef746cc2c3ad53dea8b351d61576defe54a0b52287df4a7ae5b9bda55051b476f7fdd97c5faa67ba857c299b46f39dfc1d
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -34,9 +34,10 @@ In the command line run the executable:
|
|
34
34
|
|
35
35
|
```
|
36
36
|
$ ceol + # turns the volume up by 1
|
37
|
-
$ ceol ++ # turns the volume up by 2
|
37
|
+
$ ceol ++ # turns the volume up by 2 and so on
|
38
38
|
$ ceol - # turns the volume down by 1
|
39
|
-
$ ceol -- # turns the volume down by 2
|
39
|
+
$ ceol -- # turns the volume down by 2 and so on
|
40
|
+
$ ceol off # powers off to standby
|
40
41
|
```
|
41
42
|
|
42
43
|
## Development
|
data/exe/ceol
CHANGED
@@ -5,13 +5,18 @@ require "ceol"
|
|
5
5
|
|
6
6
|
commands = ARGF.argv.first
|
7
7
|
Ceol::Controller.control do |controller|
|
8
|
-
commands
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
case commands
|
9
|
+
when "off"
|
10
|
+
controller.off
|
11
|
+
else
|
12
|
+
commands.each_char do |command|
|
13
|
+
case command
|
14
|
+
when "+"
|
15
|
+
controller.volume_up
|
16
|
+
when "-"
|
17
|
+
controller.volume_down
|
18
|
+
end
|
19
|
+
sleep(0.5)
|
14
20
|
end
|
15
|
-
sleep(0.5)
|
16
21
|
end
|
17
22
|
end
|
data/lib/ceol/controller.rb
CHANGED
data/lib/ceol/version.rb
CHANGED