lifx_dash 0.2.1 → 0.2.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: cde4d1d84b135cf5d326504c0851f8703fb5f7d7
4
- data.tar.gz: ced93f39fdbcc107870e8969dcab429006090874
3
+ metadata.gz: 71e8096ab107491a5769ef20a0e57919caca9ee8
4
+ data.tar.gz: beda3fc02671cae6908888d9bd81ce7bd455c35a
5
5
  SHA512:
6
- metadata.gz: 185f41631bc572c42f5bc173cd8ebc5ab569bf5214be48a439d8178c46fc0a2be790bd2e9962396c5d4decbea072861e8b21a9445650f8b8821a3c690f3be699
7
- data.tar.gz: 37d3db26fe370bd8fd8b20945b85bc99abe815f134bf63418900dade12f720d92225db1541b10c1e2b3a6dc35973711126325455ddd27f5d5fb4ebc71a31be71
6
+ metadata.gz: 447623c5a5ee31fabf5a4ec727a721173617b3e31e5dd8675400258feeb390cf391c4d824f5ebb99bb36e0b49fdb12da6cca47fbe00c33c4cda553fdf4bb32ca
7
+ data.tar.gz: 412c16946e1810679813ab21a50ee4286a82c480020cf1883dd077333b272870975b16bb14fcdca8783d2d1581961ec977e8d4be95232a90e4b8418c1c8198a0
@@ -24,7 +24,7 @@ module LifxDash
24
24
  capturer.stream.each do |packet|
25
25
  pkt = PacketFu::IPPacket.parse(packet)
26
26
  # only consider the first packet sent
27
- if pkt.ip_id == 1
27
+ if pkt && pkt.ip_id == 1
28
28
  mac = PacketFu::EthHeader.str2mac(pkt.eth_src)
29
29
  block.call(pkt, mac) if block
30
30
  end
@@ -1,3 +1,3 @@
1
1
  module LifxDash
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lifx_dash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Hutchinson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-30 00:00:00.000000000 Z
11
+ date: 2017-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli