celluloid-io 0.15.0.pre → 0.15.0.pre2

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: 7ba7ea0fac5d91976c3b8a556686e8d4b778fc7b
4
- data.tar.gz: 65297d64467f098af4097564c9b266b83d273b09
3
+ metadata.gz: 4fd7024e299147ac233d199743eae6d27fbe4f9b
4
+ data.tar.gz: 39310b9e0888ad28b884fb4560198d987b185833
5
5
  SHA512:
6
- metadata.gz: 65b04ba6086bf29c11e8b12faf2d7f674660be68b67c77161d4658b7248885602f7cb3dff056af97355ba9e3ab9a3d32e9879e65468f344a3cff19bc65856a99
7
- data.tar.gz: af01de9578c5408dea445db8ff076d75e75bc3ddca754c4c07895f486c9fed15bd10beab6f3808f2d291be38994e3d6e3af389ed88a7eb813cb8339b26c94840
6
+ metadata.gz: 431de754d9119f7a8182d32ac25732b21e94b5ed16c6a965aac79d883557a95afd7add7c5ccc2ef413eef2a9911bf72ec0fc77aa62a9a0f25640a4161cc53275
7
+ data.tar.gz: 6dd6bbaeac11287d392e077dd7e31abab56594976394d3962d452ce3843ff7f18f03c315397c26129b3a983875cdb708aef346f2b3cb672a547d1bfbea28f930
data/CHANGES.md CHANGED
@@ -1,7 +1,8 @@
1
- 0.15.0.pre (2013-08-21)
2
- -----------------------
1
+ 0.15.0.pre2 (2013-08-29)
2
+ ------------------------
3
3
  * Improved DNS resolver with less NIH and more Ruby stdlib goodness
4
4
  * Better match Ruby stdlib TCPServer API
5
+ * Add missing #send and #recv on Celluloid::IO::TCPSocket
5
6
  * Add missing #setsockopt method on Celluloid::IO::TCPServer
6
7
  * Add missing #peeraddr method on Celluloid::IO::SSLSocket
7
8
 
data/celluloid-io.gemspec CHANGED
@@ -2,6 +2,9 @@
2
2
  require File.expand_path('../lib/celluloid/io/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
+ gem.name = "celluloid-io"
6
+ gem.version = Celluloid::IO::VERSION
7
+ gem.license = 'MIT'
5
8
  gem.authors = ["Tony Arcieri"]
6
9
  gem.email = ["tony.arcieri@gmail.com"]
7
10
  gem.description = "Evented IO for Celluloid actors"
@@ -11,9 +14,7 @@ Gem::Specification.new do |gem|
11
14
  gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
12
15
  gem.files = `git ls-files`.split("\n")
13
16
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
14
- gem.name = "celluloid-io"
15
17
  gem.require_paths = ["lib"]
16
- gem.version = Celluloid::IO::VERSION
17
18
 
18
19
  gem.add_dependency 'celluloid', '>= 0.15.0.pre'
19
20
  gem.add_dependency 'nio4r', '>= 0.5.0'
@@ -99,6 +99,19 @@ module Celluloid
99
99
  def to_io
100
100
  @socket
101
101
  end
102
+
103
+ # Receives a message
104
+ def recv(maxlen, flags = nil)
105
+ raise NotImplementedError, "flags not supported" if flags && !flags.zero?
106
+ readpartial(maxlen)
107
+ end
108
+
109
+ # Send a message
110
+ def send(msg, flags, dest_sockaddr = nil)
111
+ raise NotImplementedError, "dest_sockaddr not supported" if dest_sockaddr
112
+ raise NotImplementedError, "flags not supported" unless flags.zero?
113
+ write(msg)
114
+ end
102
115
  end
103
116
  end
104
117
  end
@@ -1,5 +1,5 @@
1
1
  module Celluloid
2
2
  module IO
3
- VERSION = "0.15.0.pre"
3
+ VERSION = "0.15.0.pre2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: celluloid-io
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0.pre
4
+ version: 0.15.0.pre2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Arcieri
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-22 00:00:00.000000000 Z
11
+ date: 2013-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: celluloid
@@ -164,7 +164,8 @@ files:
164
164
  - tasks/benchmarks.task
165
165
  - tasks/rspec.task
166
166
  homepage: http://github.com/celluloid/celluloid-io
167
- licenses: []
167
+ licenses:
168
+ - MIT
168
169
  metadata: {}
169
170
  post_install_message:
170
171
  rdoc_options: []