flickrchive 0.1.4 → 0.1.5

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: 87fd259995ee1d54016ca8feb3cece35ffdd9e56
4
- data.tar.gz: be8b9d3d135d459549f716848263d53a51090b72
3
+ metadata.gz: 0be7633dd7f0a9e2dce1fada350e49cbabfccd01
4
+ data.tar.gz: a67db4be1b1945e5c8cfc9f6aa545ee07917ce2d
5
5
  SHA512:
6
- metadata.gz: 74f5a889a4910982e30754b94483a02bcff3d000d767e3df0668ef7399b218ed8a8e7890fff241348d013b2a17dfc3fa47583817f842a6b51e0d1bc408190d50
7
- data.tar.gz: 185ca8ba838d22e3e5099544c289f571db7f93c7a32a52ed936a2d6309d573511150b1f5f3cb8c5b843781e3f2b46d05e7dba5c5741b573d859d0f9ce775c74a
6
+ metadata.gz: eafb024a97aae9f38f0c5b51f5b7faccefdf477d0d0bba78ee4a02621c003ee85d0abf4a9d57016394ab0ce456d91ccf3b74fe6da84379b03a1f9117d1e28baf
7
+ data.tar.gz: 0c8767f789823b4ff3b126f96fdf1947c26a6a1a204e8bf5a4893ec662623c4db369b29d652e0087891e709bb405c5e7daf79f2f6d986937c5b546d3229a04c4
data/flickrchive.gemspec CHANGED
@@ -19,5 +19,5 @@ Gem::Specification.new do |spec|
19
19
  spec.required_ruby_version = '>= 1.9.3'
20
20
  spec.required_rubygems_version = '>= 1.3.5'
21
21
  spec.summary = spec.description
22
- spec.version = '0.1.4'
22
+ spec.version = '0.1.5'
23
23
  end
@@ -24,6 +24,11 @@ module Flickrchive
24
24
  rescue EOFError
25
25
  Flickrchive.logger.info("Caught network EOFError. Retrying upload")
26
26
  retry
27
+ rescue JSON::ParserError
28
+ Flickrchive.logger.error("Received a non-parseable response. Flickr api service is likely unavailable.")
29
+ Flickrchive.logger.error("Sleeping 60 seconds and retrying..")
30
+ sleep 60
31
+ retry
27
32
  end
28
33
  Flickrchive.logger.info("Uploaded file: #{photo[:filename]}")
29
34
  photo[:flickr_id] = id
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.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Nolen