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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36945d2d841d5d9a08f82b25e0ec8751f4b182b7
4
- data.tar.gz: 58353a8bb4cd13dacf2bf7b345089125abc14f60
3
+ metadata.gz: ac2d0d61e2dff50112628668860e456e77ac6861
4
+ data.tar.gz: 6fe1e2517efeea5b9a08c2d30632204b4a2015b6
5
5
  SHA512:
6
- metadata.gz: e3f0949c7bfc9dcc806e3d01334084e3566ef2a2f9969b82b8cb5ece5a8d39382d9bc7cbde1a4751eae730795ed790b4af5ba4395f23d4adf9f32f0b23064f1c
7
- data.tar.gz: 5bc46fb98664573dcd85d4ffeaf1715d694e2f5d38729930dd39e604ce5277eab68d55455bfaeaa5157bfe2563df26ade41c1d61235c7767d950b07a7d9dcedd
6
+ metadata.gz: 8d07b5411007569681632e6a51eca858a28f52f082db98ba9a366b678241766a2c3c62ced0fb278abebc54bddc35e273a5eda030e4ec64bff4af2d150d7eb11b
7
+ data.tar.gz: 645498a58393b836a9f33bb0c6ea98a8dbc9ba3996f8af17876ce3adc71bcc7c707838aa5a4395436032ee6e701f075c929af2ee5888ef553e50587d7f75fd04
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # v0.3.10
2
+ * Do not reset comms for local loop back to prevent looping aliases
3
+ * Allow content to be provided and auto nest
4
+
1
5
  # v0.3.8
2
6
  * Re-add config file for libraries doing direct loading
3
7
  * Ensure source teardown does not hang
@@ -47,7 +47,6 @@ module Carnivore
47
47
  [].tap do |register|
48
48
  Source.sources.each do |source|
49
49
  register << Thread.new do
50
- source.klass.reset_comms!
51
50
  supervisor.supervise_as(
52
51
  source.source_hash[:name],
53
52
  source.klass,
@@ -358,10 +358,18 @@ module Carnivore
358
358
  def format(msg)
359
359
  actor = Carnivore::Supervisor.supervisor[name]
360
360
  if(actor)
361
- Message.new(
362
- :message => msg,
363
- :source => actor.current_actor
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
@@ -1,4 +1,4 @@
1
1
  module Carnivore
2
2
  # Current version of library
3
- VERSION = Gem::Version.new('0.3.8')
3
+ VERSION = Gem::Version.new('0.3.10')
4
4
  end
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.8
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-03-04 00:00:00.000000000 Z
11
+ date: 2015-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: celluloid