pluto-update 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pluto/update/fetcher.rb +14 -1
- data/lib/pluto/update/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4f3fca682131a8aa9d60081466b12c4ec0b6cc9
|
4
|
+
data.tar.gz: 040a6c5e4fa0dede47c35da2217d890bf2791cae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d95b94f9e0ef5b9554c14af12be6bc04641405209299a4b069665710e90b5bf6b98138c3c25b6ed5e6f0d8f0bf401c6fb5009c95c5378f83c062bf4640c6979
|
7
|
+
data.tar.gz: 275a2b93af9508f35f3c57f76cc3fa7db2024a4f5f0362427ac56e3c662196fb97579900bbeae3997399b6fc44eb07f1e3e5bd9195ff74c6c738da29933d07d4
|
data/lib/pluto/update/fetcher.rb
CHANGED
@@ -184,7 +184,20 @@ class Fetcher
|
|
184
184
|
puts "http header - last-modified: #{response.header['last-modified']} - #{response.header['last-modified'].class.name}"
|
185
185
|
## end
|
186
186
|
|
187
|
-
|
187
|
+
### note: might crash w/ encoding errors when saving in postgress
|
188
|
+
## e.g. PG::CharacterNotInRepertoire: ERROR: ...
|
189
|
+
## catch error, log it and continue for now
|
190
|
+
#
|
191
|
+
# in the future check for different charset than utf-8 ?? possible?? how to deal with non-utf8 charsets??
|
192
|
+
|
193
|
+
begin
|
194
|
+
feed_rec.update_attributes!( feed_attribs )
|
195
|
+
rescue Exception => e
|
196
|
+
# log db error; and continue
|
197
|
+
puts "*** error: updating feed database record '#{feed_key}' - #{e.to_s}"
|
198
|
+
Activity.create!( text: "*** error: updating feed database record '#{feed_key}' - #{e.to_s}" )
|
199
|
+
end
|
200
|
+
|
188
201
|
|
189
202
|
logger.debug "feed_xml:"
|
190
203
|
logger.debug feed_xml[ 0..300 ] # get first 300 chars
|
data/lib/pluto/update/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pluto-update
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pluto-models
|