spfy 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/lib/spfy.rb +4 -4
- data/lib/spfy/optionreader.rb +1 -1
- data/spfy.gemspec +2 -2
- metadata +5 -9
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZWYwZjMxOGMyZjUyYzlhZGU2MDc0NTllYTFiMGUzMWMyNTY0YWY3Nw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MWUyMGIyZTQwNGUwNGU4M2IwNWQyOTNkY2FjZDljZjRlYmQwMzkzOA==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
Y2MzMzQzZmYwOGJmYmU1OTRiNzNiMDRlYmE3ZTlkOGRhZDRkZTJmYjNlNzFm
|
10
|
+
MjNjMmM2ZWQ0ZmZiNTZiNzIzNTkxM2VlNDIyMmIyNThmYzQxMzQ1MWZkMjM5
|
11
|
+
MjRmYWVkMjI5MzRhMDgxZWI4YmY5ZWU3OGI3MjIyOTVlZDA4MWE=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YmY2OTZmZmQ1ODJkZDc5ZTFhMDc4YzM2YzY2MTA2ZjMwYzNjZGFkMjVlOGFi
|
14
|
+
NTA2YWM0YWEyM2ZkY2Q5NzBiN2EyYTliNzAwZWIyMjc3OGJiZjdkNmMyMTE0
|
15
|
+
YWEzYmRhNTMwMTI5Yjg4NzMxYTk1Mjk2MGNkNTljZjkxZDQzMDM=
|
data/lib/spfy.rb
CHANGED
@@ -26,10 +26,10 @@ require "taglib"
|
|
26
26
|
require 'find'
|
27
27
|
require 'uri'
|
28
28
|
|
29
|
-
$spfy_version = "0.2.1"
|
30
|
-
|
31
29
|
# The main Spfy class
|
32
30
|
class Spfy
|
31
|
+
|
32
|
+
VERSION = "0.2.2"
|
33
33
|
|
34
34
|
##
|
35
35
|
# Starts the XSPF generator.
|
@@ -114,7 +114,7 @@ class Spfy
|
|
114
114
|
|
115
115
|
if !options.hide_location
|
116
116
|
# generate a percent encoded string from the local path
|
117
|
-
encoded_path = URI.escape(path)
|
117
|
+
encoded_path = URI.escape(path).sub("%5C", "/")
|
118
118
|
xmlFile.write("\t\t\t<location>file://#{encoded_path}</location>\n")
|
119
119
|
end
|
120
120
|
|
@@ -187,7 +187,7 @@ class Spfy
|
|
187
187
|
puts "\t\t<track>\n"
|
188
188
|
|
189
189
|
if !options.hide_location
|
190
|
-
encoded_path = URI.escape(path)
|
190
|
+
encoded_path = URI.escape(path).sub("%5C", "/")
|
191
191
|
puts "\t\t\t<location>file://#{encoded_path}</location>\n"
|
192
192
|
end
|
193
193
|
|
data/lib/spfy/optionreader.rb
CHANGED
@@ -78,7 +78,7 @@ class OptionReader
|
|
78
78
|
opts.separator "Misc options:"
|
79
79
|
|
80
80
|
opts.on("-v", "--version", "Display version information") do
|
81
|
-
puts "#{File.basename($0).capitalize} #{
|
81
|
+
puts "#{File.basename($0).capitalize} #{Spfy::VERSION} Copyright (c) 2012 Marc Ransome <marc.ransome@fidgetbox.co.uk>"
|
82
82
|
puts "This program comes with ABSOLUTELY NO WARRANTY, use it at your own risk."
|
83
83
|
puts "This is free software, and you are welcome to redistribute it under"
|
84
84
|
puts "certain conditions; see LICENSE.txt for details."
|
data/spfy.gemspec
CHANGED
@@ -21,8 +21,8 @@
|
|
21
21
|
|
22
22
|
Gem::Specification.new do |s|
|
23
23
|
s.name = 'spfy'
|
24
|
-
s.version = '0.2.
|
25
|
-
s.date = '
|
24
|
+
s.version = '0.2.2'
|
25
|
+
s.date = '2013-02-26'
|
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.'
|
28
28
|
s.authors = ["Marc Ransome"]
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spfy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Marc Ransome
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-02-26 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: taglib-ruby
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ! '>='
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ! '>='
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -44,26 +41,25 @@ files:
|
|
44
41
|
homepage: http://marcransome.github.com/spfy
|
45
42
|
licenses:
|
46
43
|
- GPL-3
|
44
|
+
metadata: {}
|
47
45
|
post_install_message:
|
48
46
|
rdoc_options: []
|
49
47
|
require_paths:
|
50
48
|
- lib
|
51
49
|
required_ruby_version: !ruby/object:Gem::Requirement
|
52
|
-
none: false
|
53
50
|
requirements:
|
54
51
|
- - ! '>='
|
55
52
|
- !ruby/object:Gem::Version
|
56
53
|
version: '0'
|
57
54
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
55
|
requirements:
|
60
56
|
- - ! '>='
|
61
57
|
- !ruby/object:Gem::Version
|
62
58
|
version: '0'
|
63
59
|
requirements: []
|
64
60
|
rubyforge_project:
|
65
|
-
rubygems_version:
|
61
|
+
rubygems_version: 2.0.0
|
66
62
|
signing_key:
|
67
|
-
specification_version:
|
63
|
+
specification_version: 4
|
68
64
|
summary: XSPF playlist generator
|
69
65
|
test_files: []
|