ledenet_api 0.1.10 → 0.1.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 788238a6a101328d12d991337e74b6c5daa52317
4
- data.tar.gz: b954e162a74ca71aab925612afea38585ee79dbb
3
+ metadata.gz: b8e62ef0ba30a878e092cfc6b9c00a9285e52fb2
4
+ data.tar.gz: 012b023d53d167c133d93a2da22a3963b069cc27
5
5
  SHA512:
6
- metadata.gz: ea6ee5167cfc63434bf154533124b78155748309b50f1d3bcf1ccfbc8afe24fc866c0ab1db52fab885fd32f9facb6add49aa444f275fc5b5ef20d2156fef3f33
7
- data.tar.gz: 8e7fbce8f8eb9bb61b574c8285f6f6104c632485b514b70b72683a03a51da99133efcfede9128f3620d5c4709eb794e203e971b6578e988175817849eeaca519
6
+ metadata.gz: 3f8f635dd04466eed819bea8e0d1f752665332974eec01f9612e65052faee166695449c0154a39397ef7ee9bcd47c1ab414405d423ef59474a5212c6f14fb38e
7
+ data.tar.gz: e203a19cc9ea01064fdccbb7564a434a958372166eaa06a754b8137bd5b1a5d8e93bda880915d4868603a7461d79b879eae0956d6e53ee6c965a9750c2343b8b
@@ -47,8 +47,11 @@ module LEDENET
47
47
  data = send_socket.recv(1024)
48
48
 
49
49
  device = LEDENET::Device.new(data)
50
- discovered_devices.push(device)
51
- discovered_models.add(device.model)
50
+
51
+ if device.ip and device.hw_addr and device.model
52
+ discovered_devices.push(device)
53
+ discovered_models.add(device.model)
54
+ end
52
55
  end
53
56
  end
54
57
  rescue Timeout::Error
@@ -1,3 +1,3 @@
1
1
  module LEDENET
2
- VERSION = '0.1.10'
2
+ VERSION = '0.1.11'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ledenet_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Mullins