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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6eb1b012df90164f4d1efb48579907eb2ca50047
4
- data.tar.gz: fba600196d790a9aac413483fcbd6343bc67cefe
3
+ metadata.gz: 6bc68f3ad6c2e9ebaea146b8c42e8d1ed16b7201
4
+ data.tar.gz: b414992b4e50e186d8a4b5e38321f5145cebbc6f
5
5
  SHA512:
6
- metadata.gz: 042b94a80a9af8e94885735651f4e614330a8bd47751a861cf6803a55b5c71e216bc37330e4d8bd49135cc32cb0927111a3ac1dd52615938c9bf19760753d277
7
- data.tar.gz: 91da733bf2ba0eb51b81926ef0365735d0de7c8340408d78e730afeb7c5d113c6949ff290964e0036fc58920deeec31a9d101c98a9438a970be7ded1bc7af026
6
+ metadata.gz: 69deda40a9912c4b41ec4648e5aa0261b882556d33a1cf25c2d956c0c86c450557eb4cb32d2bffd6b915c848cc35db223be846757706bac43c45381dc5e0badc
7
+ data.tar.gz: ecf0733acdabc448cdf4a3a54302a5dd20677cdc2add48851d7e0407557941813fb53f029afd0fd3f49de61f9707f60ecd9090683e4965b60636f61c0a38c749
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- photo-helper (0.2.2)
4
+ photo-helper (0.2.3)
5
5
  ejson
6
6
  mimemagic
7
7
  mini_magick
@@ -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}/*.#{RAW_EXTENSION}"]
24
+ files = Dir["#{search_path}/*.#{RAW_EXTENSIONS}"]
25
25
 
26
26
  files.each do |file|
27
- jpeg_file_name = File.basename(file.to_s, RAW_EXTENSION) + JPEG_EXTENSION
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
 
@@ -1,3 +1,3 @@
1
1
  module KubeDeploy
2
- VERSION = "0.2.2"
2
+ VERSION = '0.2.3'.freeze
3
3
  end
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([])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: photo-helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Caldwell