photo-helper 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/photo-helper/generate.rb +2 -2
- data/lib/photo-helper/version.rb +1 -1
- data/lib/photo_helper.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: 6bc68f3ad6c2e9ebaea146b8c42e8d1ed16b7201
|
4
|
+
data.tar.gz: b414992b4e50e186d8a4b5e38321f5145cebbc6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69deda40a9912c4b41ec4648e5aa0261b882556d33a1cf25c2d956c0c86c450557eb4cb32d2bffd6b915c848cc35db223be846757706bac43c45381dc5e0badc
|
7
|
+
data.tar.gz: ecf0733acdabc448cdf4a3a54302a5dd20677cdc2add48851d7e0407557941813fb53f029afd0fd3f49de61f9707f60ecd9090683e4965b60636f61c0a38c749
|
data/Gemfile.lock
CHANGED
@@ -21,10 +21,10 @@ module PhotoHelper
|
|
21
21
|
|
22
22
|
Dir.mkdir(jpeg_path) unless File.exist?(jpeg_path)
|
23
23
|
|
24
|
-
files = Dir["#{search_path}/*.#{
|
24
|
+
files = Dir["#{search_path}/*.#{RAW_EXTENSIONS}"]
|
25
25
|
|
26
26
|
files.each do |file|
|
27
|
-
jpeg_file_name = File.basename(file.to_s,
|
27
|
+
jpeg_file_name = File.basename(file.to_s, ".*") + JPEG_EXTENSION
|
28
28
|
next if File.exist? File.join(search_path, jpeg_file_name)
|
29
29
|
puts file
|
30
30
|
|
data/lib/photo-helper/version.rb
CHANGED
data/lib/photo_helper.rb
CHANGED
@@ -11,8 +11,8 @@ require 'photo-helper/compress'
|
|
11
11
|
require 'photo-helper/smugmug'
|
12
12
|
|
13
13
|
# todo: move to config file
|
14
|
-
# RAW_EXTENSION = "ORF"
|
15
14
|
RAW_EXTENSION = "dng"
|
15
|
+
RAW_EXTENSIONS = RAW_EXTENSION.concat(["ORF"])
|
16
16
|
JPEG_EXTENSION = "JPG"
|
17
17
|
JPEG_EXTENSIONS = ["JPG", "jpg", "jpeg"]
|
18
18
|
IMAGE_EXTENSIONS = JPEG_EXTENSIONS.concat([])
|