roopap 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: 4e2206ba4cf87b2886bced9a3908d4ed3f508dca
4
- data.tar.gz: 398a643e62e33c25ae2b2b042f79d4984481696b
3
+ metadata.gz: d6ac579de7168a9d5246e411bd15fb26e61e5a72
4
+ data.tar.gz: 2b1ac479d21076e58815abbcc898adee79ba246a
5
5
  SHA512:
6
- metadata.gz: d0a3cb521a0c8a110f7ff21cec93a11deb6c3da8376983d9e25de89e85f3b6fcf8f4e1347cc9baef31f780589fe047d04fc564b17c3383ed73edfffcf8193eee
7
- data.tar.gz: 53b5413d4ef439c899bd56f0edcfd14029edb8c17b236cb74807cee3c15f71e086a1cb52fc0149f335bd1c1788c1d9fcb05d453b59835b6583d8aa2226847ab0
6
+ metadata.gz: a83dc9d84382eeced69a946b83ec7963a69a044767b167e5132c4bfc1ab0eacab33693b1c933d5a2ea15a58dbf875ff353f938d69ea4c2ebdd93b6a126a21848
7
+ data.tar.gz: 716f0e16532acaeaa7e725be30da85e56f697ed5d35ed8063fcb4d7dd5d583df6ecd0680edf97f98bb6b97d15482a45c6320749325e388b0189453d825d58d8a
@@ -32,7 +32,9 @@ module Roopap
32
32
  end
33
33
 
34
34
  def dest_for(filepath, root)
35
- time = EXIFR::JPEG.new(filepath).date_time
35
+ photo = EXIFR::JPEG.new(filepath)
36
+ time = photo.date_time_original
37
+ time = photo.date_time if (time.nil? || time == '')
36
38
  dir_name = time.utc.strftime('%Y-%m')
37
39
  File.join(root, dir_name)
38
40
  end
@@ -1,3 +1,3 @@
1
1
  module Roopap
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roopap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nuttanart Pornprasitsakul