teamd-discover 0.1.1 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b223490c3d03679c2d5a67d20c1573144302a69e
4
- data.tar.gz: e1690bfe949131b08907fa862c8b4419481dd2f0
3
+ metadata.gz: 7688ecb167301f72681f6ebb8593547d94767155
4
+ data.tar.gz: 75a20094f5b7234258feb8c45c0e354bfa4cc9f4
5
5
  SHA512:
6
- metadata.gz: 219a6a33aa902eff04facf5ff6ac22a1b6f15737a378e9bf93a2b91c9c2c533fc50c4d1fbafff87fffd4974c907692c1d2ef64870e5b9794c660ddaeeeed9fc8
7
- data.tar.gz: 3109aac879119124986565956e44c11887a020932ec95b0d9018af53941119d37b5f68cf5bb9eb19559cb56b91e28ad358f8251c269980d673f449bbb6f49822
6
+ metadata.gz: 4d9e290a6241a7ffc23b1119e364b4574adb1debb0f96d481dfc8b4ab3f4649f8148ca8bfbf97bfb762ca9e321f643a1521af779280d3aded03a93fc4eb0791d
7
+ data.tar.gz: f3329372574ecb084a38c44b185e202e876214b9bdc001446ed73fb40e3637344508d1ac3333cf51806c4016cf7482edb0612a9d314dfde534aaae0f758385ae
@@ -7,7 +7,7 @@ module Teamd
7
7
  class Message
8
8
  class Packet < RecursiveOpenStruct
9
9
  def initialize params={}
10
- params[:tid] = Peer.tid
10
+ params["tid"] ||= Peer.tid
11
11
  super params
12
12
  end
13
13
  def pack
@@ -8,6 +8,7 @@ module Teamd
8
8
  @protocol ||= Protocol.new
9
9
  end
10
10
  def transmit message
11
+ puts ">> #{message}"
11
12
  into_network.push [message.pack,all]
12
13
  end
13
14
  def receive
@@ -15,6 +16,7 @@ module Teamd
15
16
  data,_ = from_network.pop
16
17
  packet = @protocol.unpack data
17
18
  next if packet.tid == Peer.tid
19
+ puts "<< #{packet}"
18
20
  return packet
19
21
  end
20
22
  end
@@ -1,5 +1,5 @@
1
1
  module Teamd
2
2
  module Discover
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teamd-discover
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathias Kaufmann