carnivore 0.3.8 → 0.3.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/carnivore/runner.rb +0 -1
- data/lib/carnivore/source.rb +12 -4
- data/lib/carnivore/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: ac2d0d61e2dff50112628668860e456e77ac6861
|
4
|
+
data.tar.gz: 6fe1e2517efeea5b9a08c2d30632204b4a2015b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d07b5411007569681632e6a51eca858a28f52f082db98ba9a366b678241766a2c3c62ced0fb278abebc54bddc35e273a5eda030e4ec64bff4af2d150d7eb11b
|
7
|
+
data.tar.gz: 645498a58393b836a9f33bb0c6ea98a8dbc9ba3996f8af17876ce3adc71bcc7c707838aa5a4395436032ee6e701f075c929af2ee5888ef553e50587d7f75fd04
|
data/CHANGELOG.md
CHANGED
data/lib/carnivore/runner.rb
CHANGED
data/lib/carnivore/source.rb
CHANGED
@@ -358,10 +358,18 @@ module Carnivore
|
|
358
358
|
def format(msg)
|
359
359
|
actor = Carnivore::Supervisor.supervisor[name]
|
360
360
|
if(actor)
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
361
|
+
if(msg.is_a?(Hash) && msg.keys.map(&:to_s).sort == ['content', 'raw'])
|
362
|
+
Message.new(
|
363
|
+
:message => msg[:raw],
|
364
|
+
:content => msg[:content],
|
365
|
+
:source => actor.current_actor
|
366
|
+
)
|
367
|
+
else
|
368
|
+
Message.new(
|
369
|
+
:message => msg,
|
370
|
+
:source => actor.current_actor
|
371
|
+
)
|
372
|
+
end
|
365
373
|
else
|
366
374
|
abort "Failed to locate self in registry (#{name})"
|
367
375
|
end
|
data/lib/carnivore/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carnivore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Roberts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: celluloid
|