taffy 1.3.1 → 1.3.2
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.
- checksums.yaml +4 -4
- data/bin/taffy +3 -4
- data/taffy.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7d644a16238a79b0c5af671a80d85b762743ed26237ee6f10de84e3143f335c
|
4
|
+
data.tar.gz: '08127e50105fcb07976bf45f4372348285d91d85811ed03b7cf3e04fb6a50f10'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 954d73838f92851014724273e9a56fa643b0152ddc5b0aa8c95f99e6e6ec1cc9ba7db21a531a0e4761e10721a338be2e5ceffa0b51b84dccb46a8191da59918f
|
7
|
+
data.tar.gz: a527a5f2a2017dc996d7e60c07b5d09164c635f61a53df5c280a7d67fa94730e3fda8c78e7684c3fe66086915911622945f14e7bd0fac67bf6ae86ff63fd61e1
|
data/bin/taffy
CHANGED
@@ -5,7 +5,7 @@ require 'shellwords'
|
|
5
5
|
|
6
6
|
require 'taglib'
|
7
7
|
|
8
|
-
VERSION = [1, 3,
|
8
|
+
VERSION = [1, 3, 2]
|
9
9
|
|
10
10
|
FIELDS = [
|
11
11
|
['l', 'album', String],
|
@@ -139,7 +139,8 @@ def rename(tag, spec)
|
|
139
139
|
tag_string = tag_string.rjust(2, '0') if f[1] == 'track'
|
140
140
|
spec.gsub!(/%(\W|_)?(#{f[0]}|#{f[0].upcase})/) do |match|
|
141
141
|
sub = $2 == f[0] ? tag_string.downcase : tag_string
|
142
|
-
|
142
|
+
sub = sub.shellescape.gsub(/(\\.)|[\/:]/, $1 || '')
|
143
|
+
sub == '' ? '_' : sub
|
143
144
|
end
|
144
145
|
end
|
145
146
|
|
@@ -180,8 +181,6 @@ ARGV.each do |filename|
|
|
180
181
|
|
181
182
|
if rename_spec
|
182
183
|
name = rename(fileref.tag, rename_spec) + File.extname(filename)
|
183
|
-
name.gsub!('/', '-') # problematic on unix
|
184
|
-
name.gsub!(':', '') # problematic on windows
|
185
184
|
path = File.join(File.dirname(filename), name)
|
186
185
|
if File.exist?(path)
|
187
186
|
warn("Cannot rename; file exists: #{name}")
|
data/taffy.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'taffy'
|
3
|
-
s.version = '1.3.
|
4
|
-
s.date = '2018-
|
3
|
+
s.version = '1.3.2'
|
4
|
+
s.date = '2018-04-02'
|
5
5
|
s.summary = 'A command-line audio tagging tool'
|
6
6
|
s.description = "A command-line tool for reading and writing audio \
|
7
7
|
metadata.".squeeze(' ')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: taffy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mulcahy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: taglib-ruby
|