spfy 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -3
- data/lib/spfy.rb +1 -1
- data/lib/spfy/optionreader.rb +7 -2
- data/spfy.gemspec +2 -2
- metadata +3 -3
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#Spfy ("spiffy")
|
2
2
|
|
3
3
|
##Overview
|
4
|
-
**Spfy** is a command-line tool for generating XSPF playlists from metadata stored in several popular audio formats, developed entirely in [Ruby](http://www.ruby-lang.org/).
|
4
|
+
**Spfy** is a command-line tool for generating [XSPF](http://xspf.org/) playlists from metadata stored in several popular audio formats, and is developed entirely in [Ruby](http://www.ruby-lang.org/). It takes one or more local directory paths as input, extracts metadata tags from any audio files that it encounters, and generates a valid XSPF playlist.
|
5
5
|
|
6
6
|
##Installation
|
7
7
|
[TagLib](http://developer.kde.org/~wheeler/taglib.html) is required for spfy to work. Follow the steps below (taken from the [taglib-ruby installation guide](http://robinst.github.com/taglib-ruby/)) to install the necessary files for your respective system type:
|
@@ -13,12 +13,12 @@
|
|
13
13
|
> | Brew | `brew install taglib` |
|
14
14
|
> | MacPorts | `sudo port install taglib` |
|
15
15
|
|
16
|
-
|
16
|
+
Spfy can then be installed with the following command:
|
17
17
|
|
18
18
|
gem install spfy
|
19
19
|
|
20
20
|
##Using spfy
|
21
|
-
By default, spfy will output a formatted
|
21
|
+
By default, spfy will output a formatted XSPF playlist to the standard output stream that will include _location_, _title_, _artist_, and _album_ elements for each audio file where available.
|
22
22
|
|
23
23
|
The general syntax for spfy is `spfy [options] dir1 ... dirN`, where _dir1 ... dirN_ is one or more paths to directories containing audio files.
|
24
24
|
|
data/lib/spfy.rb
CHANGED
data/lib/spfy/optionreader.rb
CHANGED
@@ -34,8 +34,13 @@ class OptionReader
|
|
34
34
|
opts = OptionParser.new do |opts|
|
35
35
|
opts.banner = "Usage: #{File.basename($0)} [options] dir1 ... dirN"
|
36
36
|
|
37
|
+
opts.separator ""
|
38
|
+
|
39
|
+
opts.separator "#{File.basename($0).capitalize} supports multiple directory paths and traverses each directory recursively."
|
40
|
+
opts.separator "Non-audio files are ignored and will not impact #{File.basename($0)}'s output."
|
41
|
+
|
37
42
|
opts.separator ""
|
38
|
-
opts.separator "Output:"
|
43
|
+
opts.separator "Output options:"
|
39
44
|
|
40
45
|
opts.on("-o", "--output FILE", "File to output XSPF data to") do |out|
|
41
46
|
options.output << out
|
@@ -58,7 +63,7 @@ class OptionReader
|
|
58
63
|
end
|
59
64
|
|
60
65
|
opts.separator ""
|
61
|
-
opts.separator "
|
66
|
+
opts.separator "Misc options:"
|
62
67
|
|
63
68
|
opts.on("-v", "--version", "Display version information") do
|
64
69
|
puts "#{File.basename($0).capitalize} #{$version} Copyright (c) 2012 Marc Ransome <marc.ransome@fidgetbox.co.uk>"
|
data/spfy.gemspec
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
|
22
22
|
Gem::Specification.new do |s|
|
23
23
|
s.name = 'spfy'
|
24
|
-
s.version = '0.1.
|
24
|
+
s.version = '0.1.6'
|
25
25
|
s.date = '2012-05-06'
|
26
26
|
s.summary = 'XSPF playlist generator'
|
27
27
|
s.description = 'Spfy is a simple command-line tool for generating XSPF playlists from metadata stored in several popular audio formats.'
|
@@ -30,5 +30,5 @@ Gem::Specification.new do |s|
|
|
30
30
|
s.files = `git ls-files`.split("\n")
|
31
31
|
s.executables << 'spfy'
|
32
32
|
s.add_runtime_dependency 'taglib-ruby', '>= 0.5.0'
|
33
|
-
s.homepage = 'http://github.com/
|
33
|
+
s.homepage = 'http://marcransome.github.com/spfy'
|
34
34
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spfy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -41,7 +41,7 @@ files:
|
|
41
41
|
- lib/spfy/optionreader.rb
|
42
42
|
- license.txt
|
43
43
|
- spfy.gemspec
|
44
|
-
homepage: http://github.com/
|
44
|
+
homepage: http://marcransome.github.com/spfy
|
45
45
|
licenses: []
|
46
46
|
post_install_message:
|
47
47
|
rdoc_options: []
|
@@ -61,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
61
|
version: '0'
|
62
62
|
requirements: []
|
63
63
|
rubyforge_project:
|
64
|
-
rubygems_version: 1.8.
|
64
|
+
rubygems_version: 1.8.24
|
65
65
|
signing_key:
|
66
66
|
specification_version: 3
|
67
67
|
summary: XSPF playlist generator
|