fned 0.0.1 → 0.0.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.
- data/lib/fned/filename_edit.rb +5 -1
- data/lib/fned/version.rb +1 -1
- metadata +2 -2
data/lib/fned/filename_edit.rb
CHANGED
|
@@ -29,6 +29,10 @@ module Fned
|
|
|
29
29
|
parser.on("-r", "--recursive", "rename files in all subdirectories") do |v|
|
|
30
30
|
options[:recursive] = true
|
|
31
31
|
end
|
|
32
|
+
|
|
33
|
+
parser.on("-sSEPARATOR", "--separator=SEPARATOR", "separator between line number and filename") do |v|
|
|
34
|
+
options[:separator] = v
|
|
35
|
+
end
|
|
32
36
|
end
|
|
33
37
|
|
|
34
38
|
begin
|
|
@@ -105,7 +109,7 @@ module Fned
|
|
|
105
109
|
dir = path.dirname
|
|
106
110
|
end
|
|
107
111
|
|
|
108
|
-
items_new = EditList.new.edit(items, comments)
|
|
112
|
+
items_new = EditList.new(@options).edit(items, comments)
|
|
109
113
|
|
|
110
114
|
items_new.map.with_index do |path, index|
|
|
111
115
|
# TODO: Pathname#dirname + path breaks if path contains ..
|
data/lib/fned/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fned
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
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-01-
|
|
12
|
+
date: 2012-01-16 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: fned allows you to use your favorite $EDITOR to edit filenames
|
|
15
15
|
email: matled@gmx.net
|