communicator 0.1.7 → 0.1.8

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.7
1
+ 0.1.8
data/communicator.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{communicator}
8
- s.version = "0.1.7"
8
+ s.version = "0.1.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Christoph Olszowka"]
@@ -48,6 +48,9 @@ module Communicator::ActiveRecordIntegration
48
48
  end
49
49
  self.updated_from_message = true
50
50
  save!
51
+ rescue => err
52
+ Communicator.logger.warn "Failed to process message on #{self.class} ##{id}! Errors: #{self.errors.to_s}"
53
+ raise err
51
54
  end
52
55
  end
53
56
  end
@@ -51,6 +51,9 @@ class Communicator::InboundMessage < ActiveRecord::Base
51
51
  Communicator.receiver_for(source).find_or_initialize_by_id(content["id"]).process_message(content)
52
52
  self.processed_at = Time.now
53
53
  self.save!
54
- Communicator.logger.info "Processed inbound message #{id} successfully"
54
+ Communicator.logger.info "Processed inbound message ##{id} successfully"
55
+ rescue => err
56
+ Communicator.logger.warn "Failed to store inbound message ##{id}! Errors: #{self.errors.to_s}"
57
+ raise err
55
58
  end
56
59
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: communicator
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 7
10
- version: 0.1.7
9
+ - 8
10
+ version: 0.1.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Christoph Olszowka