dcell 0.13.0.pre → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
data/.coveralls.yml ADDED
@@ -0,0 +1 @@
1
+ service-name: travis-pro
data/.gitignore CHANGED
@@ -4,3 +4,4 @@ Gemfile.lock
4
4
  pkg/*
5
5
  tmp/*
6
6
  zookeeper/*
7
+ coverage
data/.travis.yml CHANGED
@@ -1,5 +1,8 @@
1
+ before_install: sudo apt-get install libzmq3-dev
2
+
1
3
  rvm:
2
4
  - 1.9.3
5
+ - 2.0.0
3
6
  - ruby-head
4
7
  - jruby-19mode
5
8
  - jruby-head
@@ -7,8 +10,10 @@ rvm:
7
10
 
8
11
  matrix:
9
12
  allow_failures:
10
- # rbx seems to be losing exception messages o_O
11
- - rvm: rbx-19mode
13
+ - rvm: ruby-head
14
+ - rvm: jruby-head
15
+ - rvm: jruby-19mode
16
+ - rvm: rbx-19mode # rbx seems to be losing exception messages o_O
12
17
 
13
18
  notifications:
14
19
  irc: "irc.freenode.org#celluloid"
data/CHANGES.md CHANGED
@@ -1,10 +1,9 @@
1
- 0.13.0.pre
2
- ----------
1
+ 0.13.0
2
+ ------
3
3
  * First semi-stable release in nearly forever! Yay!
4
4
  * Rip out the unstable gossip system, replace the original Zookeeper and
5
5
  Redis adapters.
6
6
  * Compatibility fixes with newer versions of the Celluloid suite
7
- * Switch default port to 7890 (7777 is heavily used by other programs)
8
7
 
9
8
  0.10.0
10
9
  ------
data/Gemfile CHANGED
@@ -1,13 +1,14 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- #gem 'celluloid', :git => 'git://github.com/celluloid/celluloid'
4
- #gem 'celluloid-io', :git => 'git://github.com/celluloid/celluloid-io'
5
- #gem 'celluloid-zmq', :git => 'git://github.com/celluloid/celluloid-zmq'
6
- #gem 'reel', :git => 'git://github.com/celluloid/reel'
3
+ #gem 'celluloid', github: 'celluloid/celluloid'
4
+ #gem 'celluloid-io', github: 'celluloid/celluloid-io'
5
+ #gem 'celluloid-zmq', github: 'celluloid/celluloid-zmq'
6
+ #gem 'reel', github: 'celluloid/reel'
7
7
 
8
- #gem 'ffi-rzmq', :git => 'git://github.com/chuckremes/ffi-rzmq.git'
8
+ #gem 'ffi-rzmq', github: 'chuckremes/ffi-rzmq'
9
9
 
10
- gem 'jruby-openssl', :platform => :jruby
10
+ gem 'jruby-openssl', platform: :jruby
11
+ gem 'coveralls', require: false
11
12
 
12
13
  # Specify your gem's dependencies in dcell.gemspec
13
14
  gemspec
data/README.md CHANGED
@@ -1,8 +1,10 @@
1
1
  ![DCell](https://github.com/celluloid/dcell/raw/master/logo.png)
2
2
  =====
3
+ [![Gem Version](https://badge.fury.io/rb/dcell.png)](http://rubygems.org/gems/dcell)
3
4
  [![Build Status](https://secure.travis-ci.org/celluloid/dcell.png?branch=master)](http://travis-ci.org/celluloid/dcell)
4
5
  [![Dependency Status](https://gemnasium.com/celluloid/dcell.png)](https://gemnasium.com/celluloid/dcell)
5
- [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/celluloid/dcell)
6
+ [![Code Climate](https://codeclimate.com/github/celluloid/dcell.png)](https://codeclimate.com/github/celluloid/dcell)
7
+ [![Coverage Status](https://coveralls.io/repos/celluloid/dcell/badge.png?branch=master)](https://coveralls.io/r/celluloid/dcell)
6
8
 
7
9
  > "Objects can message objects transparently that live on other machines
8
10
  > over the network, and you don't have to worry about the networking gunk,
@@ -43,7 +43,7 @@ class AsyncPerformanceTest
43
43
  end
44
44
 
45
45
  def run
46
- @n.times { @receiver.increment! }
46
+ @n.times { @receiver.async.increment }
47
47
  wait :complete
48
48
  end
49
49
 
@@ -16,7 +16,7 @@ class AsyncReceiver
16
16
 
17
17
  def increment
18
18
  @count += 1
19
- @actor.complete! if @count == @n
19
+ @actor.async.complete if @count == @n
20
20
  @count
21
21
  end
22
22
  end
data/dcell.gemspec CHANGED
@@ -16,8 +16,8 @@ Gem::Specification.new do |gem|
16
16
  gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
17
  gem.require_paths = ["lib"]
18
18
 
19
- gem.add_runtime_dependency "celluloid", ">= 0.13.0.pre"
20
- gem.add_runtime_dependency "celluloid-zmq", ">= 0.13.0.pre"
19
+ gem.add_runtime_dependency "celluloid", ">= 0.13.0"
20
+ gem.add_runtime_dependency "celluloid-zmq", ">= 0.13.0"
21
21
  gem.add_runtime_dependency "reel"
22
22
  gem.add_runtime_dependency "redis"
23
23
  gem.add_runtime_dependency "redis-namespace"
data/lib/dcell.rb CHANGED
@@ -27,7 +27,7 @@ require 'dcell/celluloid_ext'
27
27
  module DCell
28
28
  class NotConfiguredError < RuntimeError; end # Not configured yet
29
29
 
30
- DEFAULT_PORT = 7890 # Default DCell port
30
+ DEFAULT_PORT = 7777 # Default DCell port
31
31
  @config_lock = Mutex.new
32
32
 
33
33
  class << self
@@ -36,7 +36,7 @@ module DCell
36
36
  # Configure DCell with the following options:
37
37
  #
38
38
  # * id: to identify the local node, defaults to hostname
39
- # * addr: 0MQ address of the local node (e.g. tcp://4.3.2.1:7890)
39
+ # * addr: 0MQ address of the local node (e.g. tcp://4.3.2.1:7777)
40
40
  # *
41
41
  def setup(options = {})
42
42
  # Stringify keys :/
data/lib/dcell/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module DCell
2
- VERSION = "0.13.0.pre"
2
+ VERSION = "0.13.0"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'rubygems'
2
- require 'bundler'
3
- Bundler.setup
2
+ require 'bundler/setup'
3
+ require 'coveralls'
4
+ Coveralls.wear!
4
5
 
5
6
  require 'dcell'
6
7
  Dir['./spec/support/*.rb'].map { |f| require f }
@@ -17,4 +18,4 @@ RSpec.configure do |config|
17
18
  config.after(:suite) do
18
19
  TestNode.stop
19
20
  end
20
- end
21
+ end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dcell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0.pre
5
- prerelease: 7
4
+ version: 0.13.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Tony Arcieri
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-14 00:00:00.000000000 Z
12
+ date: 2013-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: celluloid
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.13.0.pre
21
+ version: 0.13.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
- version: 0.13.0.pre
29
+ version: 0.13.0
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: celluloid-zmq
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - ! '>='
36
36
  - !ruby/object:Gem::Version
37
- version: 0.13.0.pre
37
+ version: 0.13.0
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
- version: 0.13.0.pre
45
+ version: 0.13.0
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: reel
48
48
  requirement: !ruby/object:Gem::Requirement
@@ -131,6 +131,7 @@ executables: []
131
131
  extensions: []
132
132
  extra_rdoc_files: []
133
133
  files:
134
+ - .coveralls.yml
134
135
  - .gitignore
135
136
  - .rspec
136
137
  - .travis.yml
@@ -209,13 +210,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
209
210
  version: '0'
210
211
  segments:
211
212
  - 0
212
- hash: -1249899003760905439
213
+ hash: 3616164111420951130
213
214
  required_rubygems_version: !ruby/object:Gem::Requirement
214
215
  none: false
215
216
  requirements:
216
- - - ! '>'
217
+ - - ! '>='
217
218
  - !ruby/object:Gem::Version
218
- version: 1.3.1
219
+ version: '0'
220
+ segments:
221
+ - 0
222
+ hash: 3616164111420951130
219
223
  requirements: []
220
224
  rubyforge_project:
221
225
  rubygems_version: 1.8.23