imagebackup 0.3.2 → 0.3.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: adbf3e8724183017c88e48e354363cbe74c985d3585cb9665346f32516a5338e
4
- data.tar.gz: 7b74e6acd3b81d47af8cbbe0aca1620d8eab1af475aed59954457671eb0cb021
3
+ metadata.gz: fd7c8c3c129159a97484da5bb908d53d4732f7d62754aa950b455b21047d9904
4
+ data.tar.gz: 2ab54045838160a0fe384dc5c1f602096169cfee255f5a4042b5775cf88d188f
5
5
  SHA512:
6
- metadata.gz: af4f028e7386a4e42d2cf3fa29d9526af6757e77de10a04d677863f2137cc47babc849aa1c6b39c51a81bf96a3ecb2ea9a9df7164e205e0526c7c3663d2be7a0
7
- data.tar.gz: e65c8cf849463f16aaaaa165c5ede4b0d649736272215c65d90797431bfb3e028069f4dd2c3113aadbb7615beb0eab357805cc7ee74aa45c9920d9ec05cee673
6
+ metadata.gz: d025d9de6cc28d483ccd329a500e90205aacf203be878a84c85c334f81216985c1d4c8ddf6e5e1f44842eec4656f02ba03b105ca4d9b3b6cf28db3996353f509
7
+ data.tar.gz: ae161b5e67047f1650b8ee70cb8769730c2a9c37e3cb1e9af68cbad08cee1bf4d45c1f95d0d24653822324f6288cc3a8bb9fb51161f396deaf3613e2b43a13e5
@@ -1,3 +1,3 @@
1
1
  module Imagebackup
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
3
3
  end
@@ -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 Will move (deleting the original), which is probably not a
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
 
@@ -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
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.2
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