cloudi 1.5.1 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/lib/cloudi.rb +13 -4
- metadata +10 -10
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/cloudi.rb
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
#
|
5
5
|
# BSD LICENSE
|
6
6
|
#
|
7
|
-
# Copyright (c) 2011-
|
7
|
+
# Copyright (c) 2011-2016, Michael Truog <mjtruog at gmail dot com>
|
8
8
|
# All rights reserved.
|
9
9
|
#
|
10
10
|
# Redistribution and use in source and binary forms, with or without
|
@@ -301,6 +301,11 @@ module CloudI
|
|
301
301
|
return poll_request(nil, false)
|
302
302
|
end
|
303
303
|
|
304
|
+
def null_response(command, name, pattern, request_info, request,
|
305
|
+
timeout, priority, trans_id, pid)
|
306
|
+
return ''
|
307
|
+
end
|
308
|
+
|
304
309
|
def callback(command, name, pattern, request_info, request,
|
305
310
|
timeout, priority, trans_id, pid)
|
306
311
|
request_time_start = nil
|
@@ -309,9 +314,12 @@ module CloudI
|
|
309
314
|
@request_timeout = timeout
|
310
315
|
end
|
311
316
|
function_queue = @callbacks.fetch(pattern, nil)
|
312
|
-
|
313
|
-
|
314
|
-
|
317
|
+
if function_queue.nil?
|
318
|
+
function = method(:null_response)
|
319
|
+
else
|
320
|
+
function = function_queue.shift
|
321
|
+
function_queue.push(function)
|
322
|
+
end
|
315
323
|
case command
|
316
324
|
when MESSAGE_SEND_ASYNC
|
317
325
|
begin
|
@@ -695,6 +703,7 @@ module CloudI
|
|
695
703
|
raise 'Assertion failed !' unless yield # if $DEBUG
|
696
704
|
end
|
697
705
|
|
706
|
+
private :null_response
|
698
707
|
private :callback
|
699
708
|
private :handle_events
|
700
709
|
private :poll_request
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 1.5.
|
9
|
+
- 3
|
10
|
+
version: 1.5.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Truog
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
36
36
|
bTD/aw==
|
37
37
|
-----END CERTIFICATE-----
|
38
38
|
|
39
|
-
date:
|
39
|
+
date: 2016-09-15 00:00:00 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: erlang_rb
|
@@ -53,12 +53,12 @@ dependencies:
|
|
53
53
|
version: "1.5"
|
54
54
|
- - ">="
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
hash:
|
56
|
+
hash: 5
|
57
57
|
segments:
|
58
58
|
- 1
|
59
59
|
- 5
|
60
|
-
-
|
61
|
-
version: 1.5.
|
60
|
+
- 3
|
61
|
+
version: 1.5.3
|
62
62
|
type: :runtime
|
63
63
|
version_requirements: *id001
|
64
64
|
- !ruby/object:Gem::Dependency
|
@@ -76,12 +76,12 @@ dependencies:
|
|
76
76
|
version: "1.5"
|
77
77
|
- - ">="
|
78
78
|
- !ruby/object:Gem::Version
|
79
|
-
hash:
|
79
|
+
hash: 5
|
80
80
|
segments:
|
81
81
|
- 1
|
82
82
|
- 5
|
83
|
-
-
|
84
|
-
version: 1.5.
|
83
|
+
- 3
|
84
|
+
version: 1.5.3
|
85
85
|
type: :development
|
86
86
|
version_requirements: *id002
|
87
87
|
description: Ruby CloudI API
|
metadata.gz.sig
CHANGED
Binary file
|