muzak 0.0.2 → 0.0.3

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -5
  3. data/bin/muzak-cmd +19 -0
  4. data/lib/muzak/const.rb +1 -1
  5. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8e876cf1c3b780e3df5a034b8bd0b39929d29488
4
- data.tar.gz: a07901cc1392f0da1a57b5dee944dc3c79cbc800
3
+ metadata.gz: fab733031bed6bcb2bcc63c925077d9d4180af32
4
+ data.tar.gz: 8f68076bbc2b28e030c2a549b8cb38e47afa0685
5
5
  SHA512:
6
- metadata.gz: addec21a1b711fef4737b67a709b042bb9e5418414a9a540b8f28de953294b6758d0cb2fa25d71c65cc037e5fb67e9abe94581167c57cd702e7a16f7f7b18a32
7
- data.tar.gz: 65d2e9edd5c2698f243bf92ff6d5b79ef6d963b4b4ef898dbc923a0f3fe092ab140740d307f7beddb8ae6e6bdc8be598d6f2ac3dd0c3aad0f0fa052a2a546221
6
+ metadata.gz: fb0fea1f58fc6606bb77b835badbe15737c0bfe79812cd1c1a76a466cba3db1b157aeec3ae0a800498d8003c27c71044cc99e2f829882b7d53a406c8325ce4a0
7
+ data.tar.gz: ac06c4c539899e62aa6677dda19e9a414fec7fb2195a8c9940c82141ad7501fffb1eb3962a3b6ba2ad3a8d81efdbfec08cc1d0fb35d79346d29d81c2e7649110
data/README.md CHANGED
@@ -18,21 +18,23 @@ Muzak is still a work in process. Don't expect stability or pleasant output.
18
18
  On the command-line:
19
19
 
20
20
  ```shell
21
- $ ruby -Ilib muzak.rb # flags: --verbose, --debug
21
+ $ ruby -Ilib bin/muzak.rb # flags: --verbose, --debug
22
22
  muzak> help
23
23
  ```
24
24
 
25
25
  Daemonized:
26
26
 
27
27
  ```shell
28
- $ ruby -Ilib muzakd.rb
29
- echo "command" > ~/.config/muzak/muzak.fifo
28
+ $ ruby -Ilib bin/muzakd.rb
29
+ $ echo "command" > ~/.config/muzak/muzak.fifo
30
+ $ ruby -Ilib bin/muzak-cmd "command"
30
31
  ```
31
32
 
32
33
  ### TODO
33
34
 
35
+ * GUI "frontend"?
36
+ * optional "deep" index containing ID3 tags
37
+ * isolation of art and music output (`Muzak::ArtProvider`?)
34
38
  * current indexing/sorting logic is terrible
35
- * index's timestamp should be used for automatic reindexing
36
- * album art logic for `mpv` is funky
37
39
  * all the documentation
38
40
  * readline's tab complete is terrible with spaces (maybe use `bond`?)
data/bin/muzak-cmd ADDED
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "muzak"
4
+
5
+ def fatal(msg)
6
+ puts "Fatal: #{msg}"
7
+ exit 1
8
+ end
9
+
10
+ fifo_path = File.join(Muzak::CONFIG_DIR, "muzak.fifo")
11
+
12
+ fatal "Is muzakd running?" unless File.exist?(fifo_path)
13
+
14
+ File.open(fifo_path, "w") do |io|
15
+ # we don't actually need to do this, but let's be verbose for the user
16
+ fatal "Unknown command." unless Muzak::Cmd.commands.include?(ARGV.first)
17
+
18
+ io.puts ARGV.join(" ")
19
+ end
data/lib/muzak/const.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Muzak
2
- VERSION = "0.0.2".freeze
2
+ VERSION = "0.0.3".freeze
3
3
 
4
4
  CONFIG_DIR = File.expand_path("~/.config/muzak").freeze
5
5
  CONFIG_FILE = File.join(CONFIG_DIR, "muzak.yml").freeze
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: muzak
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Woodruff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-07 00:00:00.000000000 Z
11
+ date: 2016-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: taglib-ruby
@@ -29,12 +29,14 @@ email: william@tuffbizz.com
29
29
  executables:
30
30
  - muzak
31
31
  - muzakd
32
+ - muzak-cmd
32
33
  extensions: []
33
34
  extra_rdoc_files: []
34
35
  files:
35
36
  - LICENSE
36
37
  - README.md
37
38
  - bin/muzak
39
+ - bin/muzak-cmd
38
40
  - bin/muzakd
39
41
  - lib/muzak.rb
40
42
  - lib/muzak/album.rb