em-udns 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/em-udns/resolver.rb +1 -17
- data/lib/em-udns/version.rb +1 -1
- metadata +3 -3
data/lib/em-udns/resolver.rb
CHANGED
@@ -7,28 +7,12 @@ module EventMachine::Udns
|
|
7
7
|
dns_open
|
8
8
|
end
|
9
9
|
|
10
|
-
def callback &block
|
11
|
-
@on_success_block = block
|
12
|
-
end
|
13
|
-
|
14
|
-
def errback &block
|
15
|
-
@on_error_block = block
|
16
|
-
end
|
17
|
-
|
18
10
|
|
19
11
|
private
|
20
|
-
|
12
|
+
|
21
13
|
def set_timer(timeout)
|
22
14
|
@timer = EM::Timer.new(timeout) { timeouts }
|
23
15
|
end
|
24
|
-
|
25
|
-
def do_success result
|
26
|
-
@on_success_block && @on_success_block.call(result)
|
27
|
-
end
|
28
|
-
|
29
|
-
def do_error error
|
30
|
-
@on_error_block && @on_error_block.call(error)
|
31
|
-
end
|
32
16
|
end
|
33
17
|
|
34
18
|
end
|
data/lib/em-udns/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
8
|
+
- 6
|
9
|
+
version: 0.3.6
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Inaki Baz Castillo
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2012-04-
|
17
|
+
date: 2012-04-11 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|