pluto-update 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68de3691ae194862a74e9478d542fa5c606aa97e
4
- data.tar.gz: 480c6f296bfa83495481d3f3f10c6c8e66b4c23b
3
+ metadata.gz: b4f3fca682131a8aa9d60081466b12c4ec0b6cc9
4
+ data.tar.gz: 040a6c5e4fa0dede47c35da2217d890bf2791cae
5
5
  SHA512:
6
- metadata.gz: 42b5f6a7e8b03a82325ab4f5dedbabcdae1ccfe9e103c8d6b23d84efa948cdfd9e37b86ef67d5f05289e0002d1d7962eafd79a2bd2fa292df48786430ddfc189
7
- data.tar.gz: 22abcd241d7ae8a2e1565ef9a42e441c88eb8b4dfa0038f4e9f69d6d4ea8842dc104eaf697d5ef8fa561d87651a146aea1129bda7a56e38562bf75bcc6bdb13d
6
+ metadata.gz: 9d95b94f9e0ef5b9554c14af12be6bc04641405209299a4b069665710e90b5bf6b98138c3c25b6ed5e6f0d8f0bf401c6fb5009c95c5378f83c062bf4640c6979
7
+ data.tar.gz: 275a2b93af9508f35f3c57f76cc3fa7db2024a4f5f0362427ac56e3c662196fb97579900bbeae3997399b6fc44eb07f1e3e5bd9195ff74c6c738da29933d07d4
@@ -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
- feed_rec.update_attributes!( feed_attribs )
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
@@ -5,7 +5,7 @@ module PlutoUpdate
5
5
 
6
6
  MAJOR = 1
7
7
  MINOR = 1
8
- PATCH = 0
8
+ PATCH = 1
9
9
  VERSION = [MAJOR,MINOR,PATCH].join('.')
10
10
 
11
11
  def self.version
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.0
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-13 00:00:00.000000000 Z
11
+ date: 2014-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pluto-models