packet_head 1.0.0 → 1.0.1

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: 25b74dce257ed07975fcbb353df3ae2939f2ba47
4
- data.tar.gz: 59ac181c1cd47cbe1ec8b3ef456a829045a9421b
3
+ metadata.gz: c008365b6121b1b6b6b318c8e4d0c3237dbf69f1
4
+ data.tar.gz: d47d97d8b7e4c64f7b3c3fa5a192d1b82dc5c637
5
5
  SHA512:
6
- metadata.gz: 21adf96b0de75493809a2e626c1a2e23aeb818096f6b0dfba283217bde626d2d065b64c4ae70e471059c99074725dc7253435305c71cf579120c8acb6ceceda3
7
- data.tar.gz: 62a3e083ccff78cb9af56088c77d42ad6f82cdba0b23a6ae54d77398c91edef8f1c30365f19240fb3c034b34b0d36fcc4a9876adc7b1e89cd6703784280a03f0
6
+ metadata.gz: 5e03562d4aabbb50ee5505dae8ce8273a8d284ad7b2c8c5417b8cc5d2a44e398a0f2088c59c6214b8ddc446042dc8883b193cdbd28030275a06e08f93cb8f420
7
+ data.tar.gz: f7ac741b72369e27c38f02907e02e1a9ced4e21d7d6826d6462ec82b9676c9403b366316141ed97b26f38a533d1faa3200307ad60895b91b59fa5f46b68bebbf
@@ -1,3 +1,3 @@
1
1
  module PacketHead
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
data/lib/packet_head.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'pry'
1
2
  require "packetgen"
2
3
  require "command_lion"
3
4
  require "colorize"
@@ -9,7 +10,7 @@ module PacketHead
9
10
 
10
11
  CommandLion::App.run do
11
12
  name "Packet Head".colorize(:yellow)
12
- version "1.0.0"
13
+ version PacketHead::VERSION
13
14
  description "Streaming captured packet headers straight to the command-line."
14
15
 
15
16
  command :capture do
@@ -22,7 +23,7 @@ module PacketHead
22
23
  loop do
23
24
  while packet = capture.next
24
25
  begin
25
- PacketGen.parse(packet).headers.map(&:class).map {|h| h.to_s.split("::").last }.join(" - ")
26
+ puts PacketGen.parse(packet).headers.map(&:class).map {|h| h.to_s.split("::").last }.join(" - ")
26
27
  rescue
27
28
  # some error, yolo
28
29
  nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: packet_head
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kent 'picat' Gruber