imagebackup 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/imagebackup/version.rb +1 -1
- data/lib/methods/display_help.rb +3 -1
- data/lib/methods/get_dates.rb +1 -1
- data/tests/bad_exif/DSC03688.JPG +0 -0
- data/tests/corrupt/test.cr2 +0 -0
- data/tests/truncated/IMG_9372.CR2 +0 -0
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd7c8c3c129159a97484da5bb908d53d4732f7d62754aa950b455b21047d9904
|
4
|
+
data.tar.gz: 2ab54045838160a0fe384dc5c1f602096169cfee255f5a4042b5775cf88d188f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d025d9de6cc28d483ccd329a500e90205aacf203be878a84c85c334f81216985c1d4c8ddf6e5e1f44842eec4656f02ba03b105ca4d9b3b6cf28db3996353f509
|
7
|
+
data.tar.gz: ae161b5e67047f1650b8ee70cb8769730c2a9c37e3cb1e9af68cbad08cee1bf4d45c1f95d0d24653822324f6288cc3a8bb9fb51161f396deaf3613e2b43a13e5
|
data/lib/imagebackup/version.rb
CHANGED
data/lib/methods/display_help.rb
CHANGED
@@ -22,8 +22,10 @@ def display_help(err=nil,color=nil)
|
|
22
22
|
but ensure there's a blank line at the end or this program
|
23
23
|
may behave badly.
|
24
24
|
|
25
|
-
-m
|
25
|
+
-m, --move Will move (deleting the original), which is probably not a
|
26
26
|
good idea in most cases but still useful at times.
|
27
|
+
-l, --link Create symbolic links instead of copying or moving
|
28
|
+
actual files. Useful for large videos.
|
27
29
|
|
28
30
|
Usage:
|
29
31
|
|
data/lib/methods/get_dates.rb
CHANGED
@@ -10,7 +10,7 @@ def get_dates(file)
|
|
10
10
|
date = probe.format.tags[:creation_time].split('T')[0]
|
11
11
|
rescue StandardError
|
12
12
|
fileobj = File.new(file)
|
13
|
-
date = "#{fileobj.stat.ctime.year}-#{fileobj.stat.ctime.month}-#{fileobj.stat.ctime.day}"
|
13
|
+
date = "#{"%04d" % fileobj.stat.ctime.year}-#{"%02d" % fileobj.stat.ctime.month}-#{"%02d" % fileobj.stat.ctime.day}"
|
14
14
|
end
|
15
15
|
end
|
16
16
|
date
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: imagebackup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- adrian-sal-kennedy
|
@@ -77,6 +77,9 @@ files:
|
|
77
77
|
- lib/methods/copy_pic.rb
|
78
78
|
- lib/methods/display_help.rb
|
79
79
|
- lib/methods/get_dates.rb
|
80
|
+
- tests/bad_exif/DSC03688.JPG
|
81
|
+
- tests/corrupt/test.cr2
|
82
|
+
- tests/truncated/IMG_9372.CR2
|
80
83
|
homepage: https://github.com/adrian-sal-kennedy/imagebackup
|
81
84
|
licenses:
|
82
85
|
- MIT
|