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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 420b9bd6fc5dbafac0f036eb07715d2d77daedb7
4
- data.tar.gz: 172dc8066ca4c0db96f745d43fd94576cdc018a6
3
+ metadata.gz: 6c8f3d9000920d2389d4186bdda7189cc2e13245
4
+ data.tar.gz: c5d1071b25bb7d34900a6e1948e832ca33316115
5
5
  SHA512:
6
- metadata.gz: ac8d990220ab7454854149385d8db8c43c718431152d8fa1f0987da0f9c40c2c7ddd5622d0b347d8602876aa1588cc340f04af1b95364da932c62a3b76bc30f9
7
- data.tar.gz: 9c351311143131cfd9d54474aaeeb0582f7f8eb403235a2b13593dd4f106fdae5bf63b154712e68f1810ab4060610391891d5266050a64de33a7cf906cbec5aa
6
+ metadata.gz: 16dd5499f514b02128431c8788d3731b7837835a11a2c1845b840a8d1d502655a6ede39577e47091cefffb2886fa3fd867a769d2b04c394c64fe530321be950b
7
+ data.tar.gz: 1638a02289cf8c75ede64f0424c1ed8c40250c67a446f28e8f43c74a65b849df823f84f1ebad04c6637d089f9391509674f575da6f72cf9667cdab7e4f4701cc
data/flickrchive.gemspec CHANGED
@@ -18,5 +18,5 @@ Gem::Specification.new do |spec|
18
18
  spec.required_ruby_version = '>= 1.9.3'
19
19
  spec.required_rubygems_version = '>= 1.3.5'
20
20
  spec.summary = spec.description
21
- spec.version = '0.0.5'
21
+ spec.version = '0.0.6'
22
22
  end
@@ -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
@@ -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))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flickrchive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Nolen