ceol 0.1.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +1 -1
- data/README.md +4 -2
- data/exe/ceol +14 -7
- data/lib/ceol/controller.rb +8 -0
- data/lib/ceol/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: 7f5270a72554e6f6c47975ff23108c9b2f68bd25a9defed6af4310f493658e4b
|
4
|
+
data.tar.gz: 78100a81474ea01504fc6310175adc39800b4d25f7e1c6c3b0b9eab82646a4b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6fa2f044d759c413ac9a1a0b5185b6373c00c3a099608804ed4e43c11a3b510a927b523aef2df082f14b02be9c37b4af757065fba04481595ce57df7e444e3c
|
7
|
+
data.tar.gz: 5ebdbd450bc1e442aaaca87f632331cf744f9660902ad549b175b9a0352143d74eae4beb6cb1c08ac1d3505f545b74fbff419dc27ddfa5b8f141c84697e13b85
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -34,9 +34,11 @@ 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
|
41
|
+
$ ceol on # powers on from standby
|
40
42
|
```
|
41
43
|
|
42
44
|
## Development
|
data/exe/ceol
CHANGED
@@ -5,13 +5,20 @@ 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
|
+
when "on"
|
12
|
+
controller.on
|
13
|
+
else
|
14
|
+
commands.each_char do |command|
|
15
|
+
case command
|
16
|
+
when "+"
|
17
|
+
controller.volume_up
|
18
|
+
when "-"
|
19
|
+
controller.volume_down
|
20
|
+
end
|
21
|
+
sleep(0.5)
|
14
22
|
end
|
15
|
-
sleep(0.5)
|
16
23
|
end
|
17
24
|
end
|
data/lib/ceol/controller.rb
CHANGED
data/lib/ceol/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ceol
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rasmus Bang Grouleff
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-10-
|
11
|
+
date: 2022-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|