celluloid-io 0.15.0.pre → 0.15.0.pre2
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 +4 -4
- data/CHANGES.md +3 -2
- data/celluloid-io.gemspec +3 -2
- data/lib/celluloid/io/tcp_socket.rb +13 -0
- data/lib/celluloid/io/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4fd7024e299147ac233d199743eae6d27fbe4f9b
|
|
4
|
+
data.tar.gz: 39310b9e0888ad28b884fb4560198d987b185833
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 431de754d9119f7a8182d32ac25732b21e94b5ed16c6a965aac79d883557a95afd7add7c5ccc2ef413eef2a9911bf72ec0fc77aa62a9a0f25640a4161cc53275
|
|
7
|
+
data.tar.gz: 6dd6bbaeac11287d392e077dd7e31abab56594976394d3962d452ce3843ff7f18f03c315397c26129b3a983875cdb708aef346f2b3cb672a547d1bfbea28f930
|
data/CHANGES.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
0.15.0.
|
|
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
|
data/lib/celluloid/io/version.rb
CHANGED
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.
|
|
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-
|
|
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: []
|