fixnames 0.5.0 → 0.5.1

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.
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "fixnames"
8
- s.version = "0.5.0"
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 = "2012-11-29"
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"]
@@ -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{^#{pfx}}"
217
- self.expunge = "^#{pfx}"
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
@@ -2,7 +2,7 @@ class Fixnames
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 5
5
- PATCH = 0
5
+ PATCH = 1
6
6
  BUILD = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
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.0
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: 2012-11-29 00:00:00.000000000 Z
12
+ date: 2013-02-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  type: :runtime