photo-helper 0.4 → 0.4.1

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: 80cbb16dcdcf8f7cbadcf310bd1cb9817783660e
4
- data.tar.gz: 1b343c9d6eed2fa4b8a0c228b17724c0f9214343
3
+ metadata.gz: 8ec3e9e1562752fcbbdf79717053488c895c92a1
4
+ data.tar.gz: ad357a7c48240effc0f59fbe315038f1f7d269d0
5
5
  SHA512:
6
- metadata.gz: 779dd813a904a2e01ba4b452f1c772b47ff0b551befcdf89592bea2fa92adbbfadc3833b2943f6a076da023baee960443e336df7402b4373e1c85ca87a90c8d5
7
- data.tar.gz: 877c46eadf49655521a78bf16e993ebf067f465d3298bdc397572a87e8a1631ddad1a9aff638e95bc62a35b876ba481165f69d52ace8867a1f5476d5b8216b81
6
+ metadata.gz: 69e5c8bc34c0087068cb3a4966baf008b4538e7788f276f42e3917bac6ffeb775652a2fd50981139454e4634363133022ec951529b6b14e2435d4cbe766644a5
7
+ data.tar.gz: 2251fb172352ccef02af24f1bb775a05b51b0db82a344ca4a7c7ba82601f8933c8b3eed2dfbd6d2226b8f683b93eab4364e368c8ffea9f1486ea3c6b47f5a75e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- photo-helper (0.4)
4
+ photo-helper (0.4.1)
5
5
  ejson
6
6
  mimemagic
7
7
  mini_magick
@@ -61,6 +61,7 @@ class SmugmugAlbumHelper
61
61
  def album_name
62
62
  parse_path
63
63
  if @year && @month && @location
64
+ @location = @location.gsub(/[-_]/, ' ')
64
65
  album_name_short = "#{@location} #{@month} #{@year}"
65
66
  File.join(@year, @month, album_name_short)
66
67
  else
@@ -69,7 +70,7 @@ class SmugmugAlbumHelper
69
70
  end
70
71
 
71
72
  def image_list
72
- Dir[File.join(@search_path, "/**/*.{#{@search_extensions.join(',')}}")].reject { |p| FileHelper.ingore_file?(p)}
73
+ Dir[File.join(@search_path, "/**/*.{#{@search_extensions.join(',')}}")].reject { |p| FileHelper.ingore_file?(p) }
73
74
  end
74
75
 
75
76
  def exported_list
@@ -174,7 +175,6 @@ class SmugmugAlbumHelper
174
175
  update(album, images, keywords)
175
176
  end
176
177
  # puts "delete #{to_delete.count}???"
177
-
178
178
  if delete && to_delete.any?
179
179
  puts "Deleting #{to_delete.count} images"
180
180
  to_delete.each do |uploaded|
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module PhotoHelper
3
- VERSION = '0.4'
3
+ VERSION = '0.4.1'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: photo-helper
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.4'
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Caldwell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-12-06 00:00:00.000000000 Z
11
+ date: 2017-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler