photo-helper 0.4.1 → 0.4.2

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: 8ec3e9e1562752fcbbdf79717053488c895c92a1
4
- data.tar.gz: ad357a7c48240effc0f59fbe315038f1f7d269d0
3
+ metadata.gz: e5d0d656ff37572deaa6a1e06b118efc532f8e0b
4
+ data.tar.gz: 32221b5f0aac2f132f98c43ad8d6aa3c732cf886
5
5
  SHA512:
6
- metadata.gz: 69e5c8bc34c0087068cb3a4966baf008b4538e7788f276f42e3917bac6ffeb775652a2fd50981139454e4634363133022ec951529b6b14e2435d4cbe766644a5
7
- data.tar.gz: 2251fb172352ccef02af24f1bb775a05b51b0db82a344ca4a7c7ba82601f8933c8b3eed2dfbd6d2226b8f683b93eab4364e368c8ffea9f1486ea3c6b47f5a75e
6
+ metadata.gz: 4b5c37cbaaffa1abf77535670b119cded135f1b05b2edcf55cc010aaf0ebf17da72a1447f6d1ed1689920a009f72e6650238669c88f2683e8e8e5d4a96c4e6b3
7
+ data.tar.gz: 9468c883001c4b722889052185c21e8a834a34804532395491abfc30d702cdd4bf55416417d40b13f5044d242d379c4ebd667ec410a5242d178e931675c675ee
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- photo-helper (0.4.1)
4
+ photo-helper (0.4.2)
5
5
  ejson
6
6
  mimemagic
7
7
  mini_magick
@@ -66,4 +66,4 @@ DEPENDENCIES
66
66
  rubocop
67
67
 
68
68
  BUNDLED WITH
69
- 1.16.0
69
+ 1.16.1
@@ -190,7 +190,7 @@ class SmugmugAlbumHelper
190
190
  headers = {}
191
191
  headers["X-Smug-Keywords"] = keywords.join(",") unless keywords.nil?
192
192
 
193
- @smugmug.upload_images(pictures, album[:id], headers, workers: 8, filename_as_title: true)
193
+ @smugmug.upload_images(pictures, album[:id], headers, workers: 4, filename_as_title: true)
194
194
  end
195
195
 
196
196
  def update(album, pictures, keywords = nil)
@@ -199,12 +199,13 @@ class SmugmugAlbumHelper
199
199
  headers = {}
200
200
  headers["X-Smug-Keywords"] = keywords.join(",") unless keywords.nil?
201
201
 
202
- @smugmug.update_images(pictures, album[:id], headers, workers: 8, filename_as_title: true)
202
+ @smugmug.update_images(pictures, album[:id], headers, workers: 4, filename_as_title: true)
203
203
  end
204
204
 
205
- def upload_dl(album_name = nil)
206
- album = if album
207
- @smugmug.get_or_create_album(album_name)
205
+ def upload_dl(album_name_override = nil)
206
+ album = if album_name_override
207
+ # @smugmug.get_or_create_album(album_name)
208
+ @smugmug.get_or_create_album(album_name_override)
208
209
  else
209
210
  @dl_album
210
211
  end
@@ -19,13 +19,11 @@ module PhotoHelper
19
19
 
20
20
  if options[:recursive]
21
21
  SmugmugAlbumHelper.recursive_sync(search_path)
22
-
23
22
  return
24
23
  end
25
24
 
26
- puts("\n")
27
25
  if album_name
28
- @smugmug = SmugmugAlbumHelper.new(search_path)
26
+ @smugmug = SmugmugAlbumHelper.new(search_path, album_name)
29
27
  @smugmug.upload_dl(album_name)
30
28
  else
31
29
  SmugmugAlbumHelper.sync(search_path)
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module PhotoHelper
3
- VERSION = '0.4.1'
3
+ VERSION = '0.4.2'
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.1
4
+ version: 0.4.2
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-29 00:00:00.000000000 Z
11
+ date: 2018-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -225,7 +225,6 @@ files:
225
225
  - bin/setup
226
226
  - bin/smugmug
227
227
  - exe/photo-helper
228
- - jpegs/.17Aug12-toronto-1879JPG.JPG.7TsUr-zCnC
229
228
  - lib/helpers/file_helper.rb
230
229
  - lib/helpers/image_helper.rb
231
230
  - lib/helpers/printer.rb