communicator 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/communicator.gemspec +1 -1
- data/lib/communicator/active_record_integration.rb +3 -0
- data/lib/communicator/inbound_message.rb +4 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.8
|
data/communicator.gemspec
CHANGED
@@ -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
|
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:
|
4
|
+
hash: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 8
|
10
|
+
version: 0.1.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Christoph Olszowka
|