fixnames 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/fixnames.gemspec +2 -2
- data/lib/fixnames/option.rb +3 -2
- data/lib/fixnames/version.rb +1 -1
- metadata +2 -2
data/fixnames.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "fixnames"
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Brent Sanders"]
|
12
|
-
s.date = "
|
12
|
+
s.date = "2013-02-25"
|
13
13
|
s.description = "Cleans up filenames so they can easily be used\nin scripts, without annoyances such as spaces or other bad characters"
|
14
14
|
s.email = "git@thoughtnoise.net"
|
15
15
|
s.executables = ["fixnames", "fixdirs"]
|
data/lib/fixnames/option.rb
CHANGED
@@ -212,9 +212,10 @@ module Fixnames
|
|
212
212
|
def expunge_common_prefix!
|
213
213
|
pfx = Dir['*'].abbrev.keys.min_by{ |k| k.length }.chop
|
214
214
|
if pfx && pfx.length > 0
|
215
|
+
re = "^#{Regexp.escape(pfx)}"
|
215
216
|
STDERR.puts "DWIM-WARN: No REGEX was given to -x/--expunge"
|
216
|
-
STDERR.puts "DWIM-WARN: Will expunge the common prefix: %r{
|
217
|
-
self.expunge =
|
217
|
+
STDERR.puts "DWIM-WARN: Will expunge the common prefix: %r{#{re}}"
|
218
|
+
self.expunge = re
|
218
219
|
end
|
219
220
|
end
|
220
221
|
end
|
data/lib/fixnames/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fixnames
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-02-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
type: :runtime
|