roto 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/roto.rb +2 -2
- 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: 33439089ba717d9d0a229c1f8441084c964a9bf4
|
4
|
+
data.tar.gz: 42120af7dbc27a533e666d09e21fa2d35079ca12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f327f1ad83cf8ee4da8613a3f31700c80ab8a032f19fcc47967304a6fb4d85aa02df4a3f06d211b205611215546d2bdc7cb4af05e14268e4c200a800e77d367
|
7
|
+
data.tar.gz: 10c79b6d56d04735c56a3e39f156ff5763e71aa093abf908969516d749ddfaccc391635c549b4189142c57e2e66502c88b34e0bfde19c02e612286735acf0098
|
data/lib/roto.rb
CHANGED
@@ -28,7 +28,7 @@ class Roto
|
|
28
28
|
@files.each do |file|
|
29
29
|
begin
|
30
30
|
if @rename_duplicates
|
31
|
-
ext = File.
|
31
|
+
ext = File.extname(file); name = File.basename(file, ext)
|
32
32
|
FileUtils.mv("#{file}", "#{destination}/#{name}_#{Time.now.to_i}#{ext}")
|
33
33
|
else
|
34
34
|
FileUtils.mv("#{file}", "#{destination}")
|
@@ -45,7 +45,7 @@ class Roto
|
|
45
45
|
@files.each do |file|
|
46
46
|
begin
|
47
47
|
if @rename_duplicates
|
48
|
-
ext = File.
|
48
|
+
ext = File.extname(file); name = File.basename(file, ext)
|
49
49
|
FileUtils.cp("#{file}", "#{destination}/#{name}_#{Time.now.to_i}#{ext}")
|
50
50
|
else
|
51
51
|
FileUtils.cp("#{file}", "#{destination}")
|