ceol 0.1.0 → 0.2.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: 2919719bf08d45b38cebb55b6c8ec3c00a1c1b6356950a1e8aa0c632759c18fe
4
- data.tar.gz: 70736b960b02f0269e88196e38058fe368083ae5329f0e888a01056f62de0ec8
3
+ metadata.gz: 1baa6c460efa9da4dee35c58d631616ba1ec0631e191266efb5e9843727ef986
4
+ data.tar.gz: 554483f838c01f913c5674c0ba42972b55244690b861d941f689a97d98fb2174
5
5
  SHA512:
6
- metadata.gz: 8a231f385b7891f4535782c9c3c89b2000bea031dff30bffd72f21de12a97c361d9fc572a3e3d65d11bfa54d6f4e1023334d90726bb10319cc3f5b4d5d3bcb6e
7
- data.tar.gz: ffb5accc47b7df505ebdceb9759db92237bdfe74a2bc8644a63af4c1f2eec2e48204a335939a9c255c6512781874bd0a4b74d49ffb2e7f77b3cb6dd4769f110f
6
+ metadata.gz: eab5464cb0d4cc41b7f88e7fc299ade08ada9e2a9ce7362d7de8896d66a1ef6ea074a63b019fa0c89dabb7b4c97825ef05b9f2d728fdac9de5538211fc7b0ee4
7
+ data.tar.gz: fb5a2445d0fffc65c6ae6d01f9f861ef746cc2c3ad53dea8b351d61576defe54a0b52287df4a7ae5b9bda55051b476f7fdd97c5faa67ba857c299b46f39dfc1d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.0] - 2022-10-18
4
+
5
+ - Add `off` command to change power to standby
6
+
3
7
  ## [0.1.0] - 2022-10-18
4
8
 
5
9
  - Initial release
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ceol (0.1.0)
4
+ ceol (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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.each_char do |command|
9
- case command
10
- when "+"
11
- controller.volume_up
12
- when "-"
13
- controller.volume_down
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
@@ -28,6 +28,10 @@ module Ceol
28
28
  connection.close unless connection.nil?
29
29
  end
30
30
 
31
+ def off
32
+ write("PWSTANDBY")
33
+ end
34
+
31
35
  def volume_down
32
36
  write("MVDOWN")
33
37
  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.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ceol
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rasmus Bang Grouleff