renumber 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/renumber +9 -7
- data/lib/renumber/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ee2cc8b4b0f147292e35b9dfb8b8de9ab3d7a86
|
4
|
+
data.tar.gz: 591257939f5087292c8551d3ebd1365d8a8ce678
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3399e28fa76689175ac89a6700c23a3bcb9e85c24d874ba8e47b5ccc7db765f888a3f0bf95c0d6bb490d6b979c31c8b6284cf6630d3d29af5587c62c92fc4120
|
7
|
+
data.tar.gz: a0f903e44516b9e38be26821e8ffc182523d897f0971947a90e9d50c5773c6a62874566338bb30d28779390d31136961165ee36445881c0b5aa7f9b16ee5d1f4
|
data/bin/renumber
CHANGED
@@ -1,12 +1,14 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
puts 'Usage: renumber directory_name [prefix] [suffix]' and exit unless ARGV[0]
|
4
|
-
|
5
3
|
require 'renumber'
|
6
4
|
include Renumber
|
7
5
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
6
|
+
if ARGV[0].nil?
|
7
|
+
puts 'Usage: renumber directory_name [prefix] [suffix]'
|
8
|
+
else
|
9
|
+
begin
|
10
|
+
change_files ARGV[0], ARGV[1], ARGV[2]
|
11
|
+
rescue ArgumentError => e
|
12
|
+
puts e.message
|
13
|
+
end
|
14
|
+
end
|
data/lib/renumber/version.rb
CHANGED