flickrchive 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/flickrchive.gemspec +1 -1
- data/lib/flickrchive/execute.rb +2 -1
- data/lib/flickrchive/prepare.rb +1 -0
- 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: 6c8f3d9000920d2389d4186bdda7189cc2e13245
|
4
|
+
data.tar.gz: c5d1071b25bb7d34900a6e1948e832ca33316115
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16dd5499f514b02128431c8788d3731b7837835a11a2c1845b840a8d1d502655a6ede39577e47091cefffb2886fa3fd867a769d2b04c394c64fe530321be950b
|
7
|
+
data.tar.gz: 1638a02289cf8c75ede64f0424c1ed8c40250c67a446f28e8f43c74a65b849df823f84f1ebad04c6637d089f9391509674f575da6f72cf9667cdab7e4f4701cc
|
data/flickrchive.gemspec
CHANGED
data/lib/flickrchive/execute.rb
CHANGED
@@ -3,11 +3,12 @@ module Flickrchive
|
|
3
3
|
def execute
|
4
4
|
get_sets
|
5
5
|
self.db.load
|
6
|
+
to_upload = []
|
6
7
|
self.db.synchronize do
|
7
8
|
to_upload = self.db.reject { |k,v| v[:flickr_id] }
|
8
9
|
Flickrchive.logger.debug("Grabbing un-uploaded photos from db.")
|
9
10
|
end
|
10
|
-
to_upload.each do |v|
|
11
|
+
to_upload.each do |k,v|
|
11
12
|
upload_photo(v)
|
12
13
|
add_to_set(v)
|
13
14
|
end
|
data/lib/flickrchive/prepare.rb
CHANGED
@@ -6,6 +6,7 @@ module Flickrchive
|
|
6
6
|
module Prepare
|
7
7
|
def prepare
|
8
8
|
fm = FileMagic.new
|
9
|
+
Flickrchive.logger.info("Recursively inspecting directory for images, this may take awhile...")
|
9
10
|
files = FileList.new("#{self.directory}/**/*") do |fl|
|
10
11
|
self.excludes.each do |exclude_matcher|
|
11
12
|
fl.exclude(Regexp.new(exclude_matcher))
|