discovery 0.0.1 → 0.0.2

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/discovery/udp.rb +4 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 204a4d851db30ec0c717303d933b3a2f02aa8ef4
4
- data.tar.gz: fee2b6b4a7b55e80cf87f8a535c3ff1d42487c73
3
+ metadata.gz: b0da22b162169c405e21fe71620cbdd47591bd00
4
+ data.tar.gz: 6bec05a6127412c10797e56bb2b0ce53616c5229
5
5
  SHA512:
6
- metadata.gz: 98eee54e5dd469906d625ab2a25f5040a1b58d2cbb36dcde8f048fb93e323660767e196314ecbd7c0a667c6bef79facab4000d51a813810a59cb4287444e9c0b
7
- data.tar.gz: d8f6778c0b2a8b56a48ca568043acc770ef664c9a4522a6d6927868c924bd89c497e252e962e681d8654ad86f2e3887103500eb0691fbe2e8dbf9c019631054f
6
+ metadata.gz: f12098126007448a0c6d0ec72efdc126550b8d0fe47c65fca9d46d65492edbd6464285c3440aec525dac11e209721242e76eaf92163811e368f45dbac33205d9
7
+ data.tar.gz: f57f9a99314e0760679d8e882c3a0706ec946c7c5c6fd8e3057c484703096322afe8e7b7881a00313cc60cec2f2aec52c3dc8264ac3ed27e85607a21d2a48de8
data/lib/discovery/udp.rb CHANGED
@@ -27,6 +27,10 @@ module Discovery
27
27
  end
28
28
  end
29
29
 
30
+ # Halt the discovery thread started by listen,
31
+ # but do not unregister the callback
32
+ def self.halt; @thread.kill; end
33
+
30
34
  # Return the info hash of the next DDDP beacon detected - blocking
31
35
  # Optional :timeout keyword argument specifies maximum time to block
32
36
  def self.next_beacon timeout:nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: discovery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe McIlvain