carnivore-actor 0.1.6 → 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f42594687f33bcfc8230c7ce96416dc372d0448
4
- data.tar.gz: 01be22fa8872968b05b4a37f936dfc059f3e8231
3
+ metadata.gz: a5f596043cc1c8aa428a25ad4cf72814b6f3ba42
4
+ data.tar.gz: 8080852a0dca2ea00f13cb47f5bff271b0b1b78a
5
5
  SHA512:
6
- metadata.gz: 5a9e90d5171ec49b6d045f4a36b182088c24e0723c0ce03077015c046a0a40292db2847657ed3cb9c7b4f50f0148eb10fe910cb22a63060e24d28d5c7d36df31
7
- data.tar.gz: a1369e1e95f3e899278e6d13bb18a0ee2467dae01bd5575b246a0c3081f9285cc2707a1d0e7ed5b738261ee6dfa7e47b091e5e0894ad2e2c662ccf92f21982c5
6
+ metadata.gz: a0e895bb4c5e0a52f0c2c2bd9f18b4bfd4cde757f04b33938c35b545935a83f3336642b6219523a9c94bde825570811513ce26982f646d254a34e4e05b25d52f
7
+ data.tar.gz: cf9e5fcce1cb7ecc3445db64405870f7f580c7dbbc802059b9eaf34c18c331a210c22afa65c83fb994b1071d4dc7d84bb0fa2ca8304422ba5eb21ec3c928e281
@@ -1,3 +1,6 @@
1
+ # v0.1.8
2
+ * Dump to JSON on transmit and load from JSON on receive
3
+
1
4
  # v0.1.6
2
5
  * Fix argument key check
3
6
 
@@ -0,0 +1,28 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ carnivore-actor (0.1.7)
5
+ carnivore (> 0.1.10)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ carnivore (0.2.10)
11
+ celluloid
12
+ hashie
13
+ mixlib-config
14
+ multi_json
15
+ celluloid (0.16.0)
16
+ timers (~> 4.0.0)
17
+ hashie (3.3.1)
18
+ hitimes (1.2.2)
19
+ mixlib-config (2.1.0)
20
+ multi_json (1.10.1)
21
+ timers (4.0.1)
22
+ hitimes
23
+
24
+ PLATFORMS
25
+ ruby
26
+
27
+ DEPENDENCIES
28
+ carnivore-actor!
Binary file
@@ -29,10 +29,12 @@ module Carnivore
29
29
  # is made to "remote" source instead of self (jackal hack)
30
30
  def transmit(payload, *args)
31
31
  if(arguments[:remote_name])
32
- Carnivore::Supervisor.supervisor[arguments[:remote_name]].transmit(payload)
32
+ Carnivore::Supervisor.supervisor[arguments[:remote_name]].transmit(
33
+ MultiJson.dump(payload)
34
+ )
33
35
  true
34
36
  else
35
- @messages << payload
37
+ @messages << MultiJson.dump(payload)
36
38
  signal(:available_messages)
37
39
  true
38
40
  end
@@ -44,7 +46,7 @@ module Carnivore
44
46
  def current_messages
45
47
  msgs = @messages.dup
46
48
  @messages.clear
47
- msgs
49
+ msgs.map(&:to_smash)
48
50
  end
49
51
  end
50
52
  end
@@ -1,6 +1,6 @@
1
1
  module Carnivore
2
2
  module Actor
3
3
  # Current version of library
4
- VERSION = Gem::Version.new('0.1.6')
4
+ VERSION = Gem::Version.new('0.1.8')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carnivore-actor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-03 00:00:00.000000000 Z
11
+ date: 2014-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carnivore
@@ -33,9 +33,11 @@ files:
33
33
  - CHANGELOG.md
34
34
  - CONTRIBUTING.md
35
35
  - Gemfile
36
+ - Gemfile.lock
36
37
  - LICENSE
37
38
  - README.md
38
39
  - carnivore-actor-0.1.4.gem
40
+ - carnivore-actor-0.1.6.gem
39
41
  - carnivore-actor.gemspec
40
42
  - lib/carnivore-actor.rb
41
43
  - lib/carnivore-actor/actor.rb