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.
@@ -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
@@ -1,5 +1,5 @@
1
1
  module EventMachine
2
2
  module Udns
3
- VERSION = "0.3.5"
3
+ VERSION = "0.3.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 5
9
- version: 0.3.5
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-09 00:00:00 +02:00
17
+ date: 2012-04-11 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies: []
20
20