eventmachine 1.0.0.rc.4-x86-mingw32 → 1.0.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/eventmachine.gemspec +1 -1
- data/ext/rubymain.cpp +13 -13
- data/lib/em/version.rb +1 -1
- metadata +23 -15
data/eventmachine.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
|
16
16
|
s.add_development_dependency 'rake-compiler', '~> 0.8.1'
|
17
17
|
s.add_development_dependency 'yard', ">= 0.7.2"
|
18
|
-
|
18
|
+
s.add_development_dependency 'bluecloth'
|
19
19
|
|
20
20
|
s.summary = 'Ruby/EventMachine library'
|
21
21
|
s.description = "EventMachine implements a fast, single-threaded engine for arbitrary network
|
data/ext/rubymain.cpp
CHANGED
@@ -233,7 +233,7 @@ static VALUE t_add_oneshot_timer (VALUE self, VALUE interval)
|
|
233
233
|
{
|
234
234
|
const unsigned long f = evma_install_oneshot_timer (FIX2INT (interval));
|
235
235
|
if (!f)
|
236
|
-
rb_raise (rb_eRuntimeError, "ran out of timers; use #set_max_timers to increase limit");
|
236
|
+
rb_raise (rb_eRuntimeError, "%s", "ran out of timers; use #set_max_timers to increase limit");
|
237
237
|
return ULONG2NUM (f);
|
238
238
|
}
|
239
239
|
|
@@ -246,7 +246,7 @@ static VALUE t_start_server (VALUE self, VALUE server, VALUE port)
|
|
246
246
|
{
|
247
247
|
const unsigned long f = evma_create_tcp_server (StringValuePtr(server), FIX2INT(port));
|
248
248
|
if (!f)
|
249
|
-
rb_raise (rb_eRuntimeError, "no acceptor (port is in use or requires root privileges)");
|
249
|
+
rb_raise (rb_eRuntimeError, "%s", "no acceptor (port is in use or requires root privileges)");
|
250
250
|
return ULONG2NUM (f);
|
251
251
|
}
|
252
252
|
|
@@ -269,7 +269,7 @@ static VALUE t_start_unix_server (VALUE self, VALUE filename)
|
|
269
269
|
{
|
270
270
|
const unsigned long f = evma_create_unix_domain_server (StringValuePtr(filename));
|
271
271
|
if (!f)
|
272
|
-
rb_raise (rb_eRuntimeError, "no unix-domain acceptor");
|
272
|
+
rb_raise (rb_eRuntimeError, "%s", "no unix-domain acceptor");
|
273
273
|
return ULONG2NUM (f);
|
274
274
|
}
|
275
275
|
|
@@ -504,7 +504,7 @@ static VALUE t_connect_server (VALUE self, VALUE server, VALUE port)
|
|
504
504
|
try {
|
505
505
|
const unsigned long f = evma_connect_to_server (NULL, 0, StringValuePtr(server), NUM2INT(port));
|
506
506
|
if (!f)
|
507
|
-
rb_raise (EM_eConnectionError, "no connection");
|
507
|
+
rb_raise (EM_eConnectionError, "%s", "no connection");
|
508
508
|
return ULONG2NUM (f);
|
509
509
|
} catch (std::runtime_error e) {
|
510
510
|
rb_raise (EM_eConnectionError, "%s", e.what());
|
@@ -525,7 +525,7 @@ static VALUE t_bind_connect_server (VALUE self, VALUE bind_addr, VALUE bind_port
|
|
525
525
|
try {
|
526
526
|
const unsigned long f = evma_connect_to_server (StringValuePtr(bind_addr), NUM2INT(bind_port), StringValuePtr(server), NUM2INT(port));
|
527
527
|
if (!f)
|
528
|
-
rb_raise (EM_eConnectionError, "no connection");
|
528
|
+
rb_raise (EM_eConnectionError, "%s", "no connection");
|
529
529
|
return ULONG2NUM (f);
|
530
530
|
} catch (std::runtime_error e) {
|
531
531
|
rb_raise (EM_eConnectionError, "%s", e.what());
|
@@ -541,7 +541,7 @@ static VALUE t_connect_unix_server (VALUE self, VALUE serversocket)
|
|
541
541
|
{
|
542
542
|
const unsigned long f = evma_connect_to_unix_server (StringValuePtr(serversocket));
|
543
543
|
if (!f)
|
544
|
-
rb_raise (rb_eRuntimeError, "no connection");
|
544
|
+
rb_raise (rb_eRuntimeError, "%s", "no connection");
|
545
545
|
return ULONG2NUM (f);
|
546
546
|
}
|
547
547
|
|
@@ -553,7 +553,7 @@ static VALUE t_attach_fd (VALUE self, VALUE file_descriptor, VALUE watch_mode)
|
|
553
553
|
{
|
554
554
|
const unsigned long f = evma_attach_fd (NUM2INT(file_descriptor), watch_mode == Qtrue);
|
555
555
|
if (!f)
|
556
|
-
rb_raise (rb_eRuntimeError, "no connection");
|
556
|
+
rb_raise (rb_eRuntimeError, "%s", "no connection");
|
557
557
|
return ULONG2NUM (f);
|
558
558
|
}
|
559
559
|
|
@@ -703,7 +703,7 @@ static VALUE t_open_udp_socket (VALUE self, VALUE server, VALUE port)
|
|
703
703
|
{
|
704
704
|
const unsigned long f = evma_open_datagram_socket (StringValuePtr(server), FIX2INT(port));
|
705
705
|
if (!f)
|
706
|
-
rb_raise (rb_eRuntimeError, "no datagram socket");
|
706
|
+
rb_raise (rb_eRuntimeError, "%s", "no datagram socket");
|
707
707
|
return ULONG2NUM (f);
|
708
708
|
}
|
709
709
|
|
@@ -805,7 +805,7 @@ static VALUE t_invoke_popen (VALUE self, VALUE cmd)
|
|
805
805
|
int len = RARRAY (cmd)->len;
|
806
806
|
#endif
|
807
807
|
if (len >= 2048)
|
808
|
-
rb_raise (rb_eRuntimeError, "too many arguments to popen");
|
808
|
+
rb_raise (rb_eRuntimeError, "%s", "too many arguments to popen");
|
809
809
|
char *strings [2048];
|
810
810
|
for (int i=0; i < len; i++) {
|
811
811
|
VALUE ix = INT2FIX (i);
|
@@ -834,7 +834,7 @@ static VALUE t_read_keyboard (VALUE self)
|
|
834
834
|
{
|
835
835
|
const unsigned long f = evma_open_keyboard();
|
836
836
|
if (!f)
|
837
|
-
rb_raise (rb_eRuntimeError, "no keyboard reader");
|
837
|
+
rb_raise (rb_eRuntimeError, "%s", "no keyboard reader");
|
838
838
|
return ULONG2NUM (f);
|
839
839
|
}
|
840
840
|
|
@@ -921,7 +921,7 @@ t__epoll_set
|
|
921
921
|
static VALUE t__epoll_set (VALUE self, VALUE val)
|
922
922
|
{
|
923
923
|
if (t__epoll_p(self) == Qfalse)
|
924
|
-
rb_raise (EM_eUnsupported, "epoll is not supported on this platform");
|
924
|
+
rb_raise (EM_eUnsupported, "%s", "epoll is not supported on this platform");
|
925
925
|
|
926
926
|
evma_set_epoll (val == Qtrue ? 1 : 0);
|
927
927
|
return val;
|
@@ -958,7 +958,7 @@ t__kqueue_set
|
|
958
958
|
static VALUE t__kqueue_set (VALUE self, VALUE val)
|
959
959
|
{
|
960
960
|
if (t__kqueue_p(self) == Qfalse)
|
961
|
-
rb_raise (EM_eUnsupported, "kqueue is not supported on this platform");
|
961
|
+
rb_raise (EM_eUnsupported, "%s", "kqueue is not supported on this platform");
|
962
962
|
|
963
963
|
evma_set_kqueue (val == Qtrue ? 1 : 0);
|
964
964
|
return val;
|
@@ -996,7 +996,7 @@ static VALUE t_send_file_data (VALUE self, VALUE signature, VALUE filename)
|
|
996
996
|
|
997
997
|
int b = evma_send_file_data_to_connection (NUM2ULONG (signature), StringValuePtr(filename));
|
998
998
|
if (b == -1)
|
999
|
-
rb_raise(rb_eRuntimeError, "File too large. send_file_data() supports files under 32k.");
|
999
|
+
rb_raise(rb_eRuntimeError, "%s", "File too large. send_file_data() supports files under 32k.");
|
1000
1000
|
if (b > 0) {
|
1001
1001
|
char *err = strerror (b);
|
1002
1002
|
char buf[1024];
|
data/lib/em/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eventmachine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 23
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
9
|
- 0
|
10
|
-
|
11
|
-
- 4
|
12
|
-
version: 1.0.0.rc.4
|
10
|
+
version: 1.0.0
|
13
11
|
platform: x86-mingw32
|
14
12
|
authors:
|
15
13
|
- Francis Cianfrocca
|
@@ -18,8 +16,7 @@ autorequire:
|
|
18
16
|
bindir: bin
|
19
17
|
cert_chain: []
|
20
18
|
|
21
|
-
date: 2012-
|
22
|
-
default_executable:
|
19
|
+
date: 2012-09-08 00:00:00 Z
|
23
20
|
dependencies:
|
24
21
|
- !ruby/object:Gem::Dependency
|
25
22
|
name: rake-compiler
|
@@ -53,6 +50,20 @@ dependencies:
|
|
53
50
|
version: 0.7.2
|
54
51
|
type: :development
|
55
52
|
version_requirements: *id002
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: bluecloth
|
55
|
+
prerelease: false
|
56
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
hash: 3
|
62
|
+
segments:
|
63
|
+
- 0
|
64
|
+
version: "0"
|
65
|
+
type: :development
|
66
|
+
version_requirements: *id003
|
56
67
|
description: |-
|
57
68
|
EventMachine implements a fast, single-threaded engine for arbitrary network
|
58
69
|
communications. It's extremely easy to use in Ruby. EventMachine wraps all
|
@@ -253,7 +264,6 @@ files:
|
|
253
264
|
- lib/1.8/fastfilereaderext.so
|
254
265
|
- lib/1.9/fastfilereaderext.so
|
255
266
|
- lib/rubyeventmachine.rb
|
256
|
-
has_rdoc: true
|
257
267
|
homepage: http://rubyeventmachine.com
|
258
268
|
licenses: []
|
259
269
|
|
@@ -281,18 +291,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
281
291
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
282
292
|
none: false
|
283
293
|
requirements:
|
284
|
-
- - "
|
294
|
+
- - ">="
|
285
295
|
- !ruby/object:Gem::Version
|
286
|
-
hash:
|
296
|
+
hash: 3
|
287
297
|
segments:
|
288
|
-
-
|
289
|
-
|
290
|
-
- 1
|
291
|
-
version: 1.3.1
|
298
|
+
- 0
|
299
|
+
version: "0"
|
292
300
|
requirements: []
|
293
301
|
|
294
302
|
rubyforge_project: eventmachine
|
295
|
-
rubygems_version: 1.
|
303
|
+
rubygems_version: 1.8.24
|
296
304
|
signing_key:
|
297
305
|
specification_version: 3
|
298
306
|
summary: Ruby/EventMachine library
|