carnivore-actor 0.1.12 → 0.1.14

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: fb1057a399efe96eef36d07d09ca377f2d90c100
4
- data.tar.gz: 398370d82a74db022db395848c33c46914a6d76d
3
+ metadata.gz: 7aea02da9d1c775f114f5409807c06ba9ea6ebed
4
+ data.tar.gz: 8223abf7aacc8ca8a5c887db4c54ba6cfba605d1
5
5
  SHA512:
6
- metadata.gz: f3d08fee7c69adc38e8a41167aa28ab7cbffef1c9f5febcc99ab7a601986fe463a787bec1f8f22d6db7ae6f9c9760ef3ba295cf578af1dec035579c1de26f8ed
7
- data.tar.gz: f355b6287fb45a0340e0ec54966d54fadd6f3c636cbe55b6ca3ed0afc793aa23176752e03b3ab002a146e1933701a210f31a528bfdde8ce64d0e09b4098fbf3b
6
+ metadata.gz: 36458f16c3d195a9989e178e4aec90b5e6730e0a7b61c26af96c3bcb9edc8e4c3e9e52a166f0215a5a55dd84e72b9c50afa3b7d83abcaf51ef7ec24aabd9d2ed
7
+ data.tar.gz: f82eb95476ed3082a61027b67e6acc96ef16cb73e45ee971a27ca27bdae01cbaa6ac64f60b124864ae06efff1a0975e6dbe693d41379bab04298de8e2999a0ec
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # V0.1.14
2
+ * Only run conversion when unpacked if available
3
+
1
4
  # v0.1.12
2
5
  * On remote only perform single dump
3
6
 
@@ -10,6 +10,6 @@ Gem::Specification.new do |s|
10
10
  s.description = 'Carnivore actor source'
11
11
  s.license = 'Apache 2.0'
12
12
  s.require_path = 'lib'
13
- s.add_dependency 'carnivore', '> 0.1.10'
14
- s.files = Dir['**/*']
13
+ s.add_dependency 'carnivore', '> 0.1.10', '< 2.0'
14
+ s.files = Dir['lib/**/*'] + %w(carnivore-actor.gemspec README.md CHANGELOG.md)
15
15
  end
@@ -45,7 +45,8 @@ module Carnivore
45
45
  msgs = @messages.dup
46
46
  @messages.clear
47
47
  msgs.map do |s|
48
- MultiJson.load(s).to_smash
48
+ s = MultiJson.load(s)
49
+ s.respond_to?(:to_smash) ? s.to_smash : s
49
50
  end
50
51
  end
51
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.12')
4
+ VERSION = Gem::Version.new('0.1.14')
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.12
4
+ version: 0.1.14
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-30 00:00:00.000000000 Z
11
+ date: 2015-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carnivore
@@ -17,6 +17,9 @@ dependencies:
17
17
  - - ">"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.1.10
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '2.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,6 +27,9 @@ dependencies:
24
27
  - - ">"
25
28
  - !ruby/object:Gem::Version
26
29
  version: 0.1.10
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '2.0'
27
33
  description: Carnivore actor source
28
34
  email: code@chrisroberts.org
29
35
  executables: []
@@ -31,17 +37,11 @@ extensions: []
31
37
  extra_rdoc_files: []
32
38
  files:
33
39
  - CHANGELOG.md
34
- - CONTRIBUTING.md
35
- - Gemfile
36
- - Gemfile.lock
37
- - LICENSE
38
40
  - README.md
39
41
  - carnivore-actor.gemspec
40
42
  - lib/carnivore-actor.rb
41
43
  - lib/carnivore-actor/actor.rb
42
44
  - lib/carnivore-actor/version.rb
43
- - test/spec.rb
44
- - test/specs/actor.rb
45
45
  homepage: https://github.com/carnivore-rb/carnivore-actor
46
46
  licenses:
47
47
  - Apache 2.0
data/CONTRIBUTING.md DELETED
@@ -1,25 +0,0 @@
1
- # Contributing
2
-
3
- ## Branches
4
-
5
- ### `master` branch
6
-
7
- The master branch is the current stable released version.
8
-
9
- ### `develop` branch
10
-
11
- The develop branch is the current edge of development.
12
-
13
- ## Pull requests
14
-
15
- * https://github.com/carnivore-rb/carnivore-actor/pulls
16
-
17
- Please base all pull requests of the `develop` branch. Merges to
18
- `master` only occur through the `develop` branch. Pull requests
19
- based on `master` will likely be cherry picked.
20
-
21
- ## Issues
22
-
23
- Need to report an issue? Use the github issues:
24
-
25
- * https://github.com/carnivore-rb/carnivore-actor/issues
data/Gemfile DELETED
@@ -1,3 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
data/Gemfile.lock DELETED
@@ -1,28 +0,0 @@
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!
data/LICENSE DELETED
@@ -1,13 +0,0 @@
1
- Copyright 2014 Chris Roberts
2
-
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
6
-
7
- http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.
data/test/spec.rb DELETED
@@ -1 +0,0 @@
1
- require 'carnivore/spec_helper'
data/test/specs/actor.rb DELETED
@@ -1,47 +0,0 @@
1
- require 'minitest/autorun'
2
- require 'carnivore-actor'
3
-
4
- describe 'Carnivore::Source::Actor' do
5
-
6
- describe 'Building an Actor based source' do
7
-
8
- it 'returns the source' do
9
- Carnivore::Source.build(:type => :actor, :args => {:name => :actor_source})
10
- t = Thread.new{ Carnivore.start! }
11
- source_wait
12
- Carnivore::Supervisor.supervisor[:actor_source].wont_be_nil
13
- t.terminate
14
- end
15
-
16
- end
17
-
18
- describe 'Actor source based communication' do
19
- before do
20
- @source1 = []
21
- @source2 = []
22
- MessageStore.init
23
- Carnivore::Source.build(:type => :actor, :args => {:name => :actor_source}).add_callback(:store) do |message|
24
- MessageStore.messages.push(message[:message])
25
- end
26
- @runner = Thread.new{ Carnivore.start! }
27
- source_wait
28
- end
29
-
30
- after do
31
- @runner.terminate
32
- end
33
-
34
- describe 'message transmissions' do
35
- it 'should accept message transmits' do
36
- Carnivore::Supervisor.supervisor[:actor_source].transmit('test message')
37
- end
38
-
39
- it 'should receive messages' do
40
- Carnivore::Supervisor.supervisor[:actor_source].transmit('test message 2')
41
- source_wait{ MessageStore.messages.include?('test message 2') }
42
- MessageStore.messages.must_include 'test message 2'
43
- end
44
- end
45
- end
46
-
47
- end