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 +4 -4
- data/Gemfile.lock +2 -2
- data/lib/helpers/smugmug_album.rb +6 -5
- data/lib/photo-helper/smugmug.rb +1 -3
- data/lib/photo-helper/version.rb +1 -1
- metadata +2 -3
- data/jpegs/.17Aug12-toronto-1879JPG.JPG.7TsUr-zCnC +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5d0d656ff37572deaa6a1e06b118efc532f8e0b
|
4
|
+
data.tar.gz: 32221b5f0aac2f132f98c43ad8d6aa3c732cf886
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b5c37cbaaffa1abf77535670b119cded135f1b05b2edcf55cc010aaf0ebf17da72a1447f6d1ed1689920a009f72e6650238669c88f2683e8e8e5d4a96c4e6b3
|
7
|
+
data.tar.gz: 9468c883001c4b722889052185c21e8a834a34804532395491abfc30d702cdd4bf55416417d40b13f5044d242d379c4ebd667ec410a5242d178e931675c675ee
|
data/Gemfile.lock
CHANGED
@@ -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:
|
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:
|
202
|
+
@smugmug.update_images(pictures, album[:id], headers, workers: 4, filename_as_title: true)
|
203
203
|
end
|
204
204
|
|
205
|
-
def upload_dl(
|
206
|
-
album = if
|
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
|
data/lib/photo-helper/smugmug.rb
CHANGED
@@ -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)
|
data/lib/photo-helper/version.rb
CHANGED
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.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:
|
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
|
File without changes
|