muzak 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -5
- data/bin/muzak-cmd +19 -0
- data/lib/muzak/const.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fab733031bed6bcb2bcc63c925077d9d4180af32
|
4
|
+
data.tar.gz: 8f68076bbc2b28e030c2a549b8cb38e47afa0685
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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.
|
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-
|
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
|