muzak 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/bin/muzak-index +2 -2
  3. data/bin/muzak-setup +32 -0
  4. data/lib/muzak.rb +1 -1
  5. metadata +19 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f2d902814de164474bfcfb6594e108e6efcbc308
4
- data.tar.gz: 7917ab0f979ac3cca21f2c0d4b098c17304066cc
3
+ metadata.gz: 809d9fd5e4afee2f04affc8214c4f7c5a7980aa7
4
+ data.tar.gz: bacfe904636a5b9614082341d7a3d6b7358c691e
5
5
  SHA512:
6
- metadata.gz: 82ae4432087633d48ada6368d3b85dc40404d4c1733c484f11e11d8e35d4df917b13ff7f71e5e089b756d4165831cb67db60b1ecb97f121a547aff1b71d9b44b
7
- data.tar.gz: b84a9015cb9bcbf4b52f206c7dc5b7770ee75a8a9de1ab7cf8cb103fbc5ccb244996b963affbe326fe8b84a96220e8c979429f652fed161143dcd49c7a06b0f8
6
+ metadata.gz: 4afbbbf920fb553fbdd6cc19dc443a02c2425b5d919e735c7f8bd6988f9a2f9630fe5cf7f049e1f361633020b9e7c2864107d1b9dc5f474c7f0b0ea3e334d515
7
+ data.tar.gz: e99922aa6b052e5aa4799040b1f58cab6fc76617e5b199931f2983b06510a2c6d16ffd1823884a1cc5cf22d950bc5bcee54aea31c803ec9ecc72e8c1a8e1abc9
data/bin/muzak-index CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  require "muzak"
4
4
 
5
- VERSION = 1
5
+ VERSION = 2
6
6
 
7
7
  OPTS = {
8
8
  deep: !!(ARGV.delete("--deep") || ARGV.delete("-d")),
@@ -13,7 +13,7 @@ OPTS = {
13
13
 
14
14
  def help
15
15
  puts <<~EOS
16
- Usage: #{$PROGRAM_NAME} [options] <tree> [index]
16
+ Usage: #{$PROGRAM_NAME} [options] [tree] [index]
17
17
 
18
18
  Options:
19
19
  --deep, -d Build a "deep" index (contains metadata)
data/bin/muzak-setup ADDED
@@ -0,0 +1,32 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "tty-prompt"
4
+ require "muzak"
5
+
6
+ VERSION = 1
7
+
8
+ prompt = TTY::Prompt.new
9
+
10
+ puts <<~EOS
11
+ Welcome to muzak's interactive setup.
12
+ This script is useful primarily for first-time users.
13
+ This WILL rewrite your configuration, so be careful about using it.
14
+ EOS
15
+
16
+ exit unless prompt.yes?("Continue?")
17
+
18
+ Muzak::Config.music = prompt.ask("Where is your music?",
19
+ default: Muzak::Config.music)
20
+
21
+ Muzak::Config.player = prompt.select("Select your player:",
22
+ Muzak::Player::PLAYER_NAMES)
23
+
24
+ puts <<~EOS
25
+ Congratulations! You should be (nearly) ready to use muzak.
26
+ The only thing remaining is to run the indexer:
27
+ muzak-index [--deep]
28
+ See the muzak-index's --help flag for more information on options.
29
+ Once the indexer finishes, just start the daemon:
30
+ muzakd
31
+ Once running, you'll be able to muzak through muzak-cmd and muzak-dmenu!
32
+ EOS
data/lib/muzak.rb CHANGED
@@ -12,5 +12,5 @@ require_relative "muzak/instance"
12
12
  # The primary namespace for muzak.
13
13
  module Muzak
14
14
  # Muzak's current version
15
- VERSION = "0.3.5".freeze
15
+ VERSION = "0.3.6".freeze
16
16
  end
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.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Woodruff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-24 00:00:00.000000000 Z
11
+ date: 2017-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: taglib-ruby
@@ -58,6 +58,20 @@ dependencies:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
60
  version: 0.0.7
61
+ - !ruby/object:Gem::Dependency
62
+ name: tty-prompt
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: 0.10.0
68
+ type: :runtime
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: 0.10.0
61
75
  description: A library for controlling playlists and media players.
62
76
  email: william@tuffbizz.com
63
77
  executables:
@@ -65,6 +79,7 @@ executables:
65
79
  - muzak-cmd
66
80
  - muzak-dmenu
67
81
  - muzak-index
82
+ - muzak-setup
68
83
  extensions: []
69
84
  extra_rdoc_files: []
70
85
  files:
@@ -76,6 +91,7 @@ files:
76
91
  - bin/muzak-cmd
77
92
  - bin/muzak-dmenu
78
93
  - bin/muzak-index
94
+ - bin/muzak-setup
79
95
  - bin/muzakd
80
96
  - lib/muzak.rb
81
97
  - lib/muzak/album.rb
@@ -117,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
133
  version: '0'
118
134
  requirements: []
119
135
  rubyforge_project:
120
- rubygems_version: 2.5.2
136
+ rubygems_version: 2.6.8
121
137
  signing_key:
122
138
  specification_version: 4
123
139
  summary: muzak - A metamusic player.