ceol 0.2.0 → 0.4.0

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: 1baa6c460efa9da4dee35c58d631616ba1ec0631e191266efb5e9843727ef986
4
- data.tar.gz: 554483f838c01f913c5674c0ba42972b55244690b861d941f689a97d98fb2174
3
+ metadata.gz: c9433b31d86e7e3263fd4ea040b8cf8e7c9bbf8334215bde21c016d42467fd63
4
+ data.tar.gz: e0c70753f9305e7aadbf664b4304cff3c1003cd2ed16f45bb05ffa2db1edffec
5
5
  SHA512:
6
- metadata.gz: eab5464cb0d4cc41b7f88e7fc299ade08ada9e2a9ce7362d7de8896d66a1ef6ea074a63b019fa0c89dabb7b4c97825ef05b9f2d728fdac9de5538211fc7b0ee4
7
- data.tar.gz: fb5a2445d0fffc65c6ae6d01f9f861ef746cc2c3ad53dea8b351d61576defe54a0b52287df4a7ae5b9bda55051b476f7fdd97c5faa67ba857c299b46f39dfc1d
6
+ metadata.gz: d91fe168f9d9971d19f5d184f5a7ae5f3d5cdc35e5e9da5ecd1e29dcff8cdc0262b4cf778cf4e96324301f4fe497473e5d57cd16ae83fe85c2305e2de8372f65
7
+ data.tar.gz: b2e87869754eb2a450736316850c45d947ad5ae8fc411c4f814a6d97a0c17d470a16ad4e1c32c1e11f5ad836b247ef5c582f0f09cc3bad015f770b90356c5173
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.4.0] - 2022-10-19
4
+
5
+ - Add `digital` command to select digital in
6
+ - Add `analog` command to select analog 1 in
7
+
8
+ ## [0.3.0] - 2022-10-19
9
+
10
+ - Add `on` command to change power to on
11
+
3
12
  ## [0.2.0] - 2022-10-18
4
13
 
5
14
  - Add `off` command to change power to standby
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ceol (0.2.0)
4
+ ceol (0.4.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -24,6 +24,7 @@ GEM
24
24
 
25
25
  PLATFORMS
26
26
  x86_64-darwin-21
27
+ x86_64-linux
27
28
 
28
29
  DEPENDENCIES
29
30
  ceol!
data/README.md CHANGED
@@ -33,11 +33,14 @@ or define a `CEOL_IPADDR` environment variable with the ip address of your CEOL
33
33
  In the command line run the executable:
34
34
 
35
35
  ```
36
- $ ceol + # turns the volume up by 1
37
- $ ceol ++ # turns the volume up by 2 and so on
38
- $ ceol - # turns the volume down by 1
39
- $ ceol -- # turns the volume down by 2 and so on
40
- $ ceol off # powers off to standby
36
+ $ ceol + # turns the volume up by 1
37
+ $ ceol ++ # turns the volume up by 2 and so on
38
+ $ ceol - # turns the volume down by 1
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
42
+ $ ceol digital # select digital in
43
+ $ ceol analog # select analog 1 in
41
44
  ```
42
45
 
43
46
  ## Development
data/exe/ceol CHANGED
@@ -8,6 +8,12 @@ Ceol::Controller.control do |controller|
8
8
  case commands
9
9
  when "off"
10
10
  controller.off
11
+ when "on"
12
+ controller.on
13
+ when "digital"
14
+ controller.digital_in
15
+ when "analog"
16
+ controller.analog_1
11
17
  else
12
18
  commands.each_char do |command|
13
19
  case command
@@ -28,10 +28,22 @@ module Ceol
28
28
  connection.close unless connection.nil?
29
29
  end
30
30
 
31
+ def analog_1
32
+ write("SIAUXB")
33
+ end
34
+
35
+ def digital_in
36
+ write("SIAUXD")
37
+ end
38
+
31
39
  def off
32
40
  write("PWSTANDBY")
33
41
  end
34
42
 
43
+ def on
44
+ write("PWON")
45
+ end
46
+
35
47
  def volume_down
36
48
  write("MVDOWN")
37
49
  end
data/lib/ceol/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ceol
4
- VERSION = "0.2.0"
4
+ VERSION = "0.4.0"
5
5
  end
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.2.0
4
+ version: 0.4.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-18 00:00:00.000000000 Z
11
+ date: 2022-10-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: