{"action":"created","issue":{"url":"https://api.github.com/repos/briandfoy/net-mac-vendor/issues/12","repository_url":"https://api.github.com/repos/briandfoy/net-mac-vendor","labels_url":"https://api.github.com/repos/briandfoy/net-mac-vendor/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/briandfoy/net-mac-vendor/issues/12/comments","events_url":"https://api.github.com/repos/briandfoy/net-mac-vendor/issues/12/events","html_url":"https://github.com/briandfoy/net-mac-vendor/issues/12","id":130858857,"number":12,"title":"more on load_cache","user":{"login":"ssbertilson","id":1521734,"avatar_url":"https://avatars.githubusercontent.com/u/1521734?v=3","gravatar_id":"","url":"https://api.github.com/users/ssbertilson","html_url":"https://github.com/ssbertilson","followers_url":"https://api.github.com/users/ssbertilson/followers","following_url":"https://api.github.com/users/ssbertilson/following{/other_user}","gists_url":"https://api.github.com/users/ssbertilson/gists{/gist_id}","starred_url":"https://api.github.com/users/ssbertilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssbertilson/subscriptions","organizations_url":"https://api.github.com/users/ssbertilson/orgs","repos_url":"https://api.github.com/users/ssbertilson/repos","events_url":"https://api.github.com/users/ssbertilson/events{/privacy}","received_events_url":"https://api.github.com/users/ssbertilson/received_events","type":"User","site_admin":false},"labels":[{"id":453148772,"url":"https://api.github.com/repos/briandfoy/net-mac-vendor/labels/Hacktoberfest","name":"Hacktoberfest","color":"ff5500","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-02-02T23:53:12Z","updated_at":"2016-11-14T16:00:41Z","closed_at":"2016-11-14T16:00:41Z","body":"I have had some issues due to \\r not being removed from every line (I see them when I use wget to retrieve using the built-in URL.  Also a previous fix only took \\r into account when separating vendor entries).\n\nHad to use a previously supplied load_cache patch so that the cache would load properly.\n\nI also made the beginning of file cleanup in load_cache a little more flexible so that I could hand it the oui.txt that commonly shows up on Linux distributions (sometimes packaged as \"hwdata\").\n\n```\n--- /usr/local/lib/perl5/site_perl/5.14.2/Net/MAC/Vendor.pm     2015-11-22 22:49:55.000000000 -0600\n+++ /home/ssb/Net/MAC/Vendor.pm     2016-02-02 17:24:41.394857487 -0600\n@@ -68,7 +68,7 @@\n use Mojo::URL;\n use Mojo::UserAgent;\n\n-our $VERSION = '1.26';\n+our $VERSION = '1.26ssb';\n\n =item run( @macs )\n\n@@ -375,7 +375,7 @@\n    my $oui = shift;\n    return [] unless $oui;\n    $oui =~ s|</?b>||g;\n-   my @lines = map { s/^\\s+//; $_ ? $_ : () } split /$/m, $oui;\n+   my @lines = map { s/^\\s+//; $_ ? $_ : () } split /\\r*$/m, $oui;\n    splice @lines, 1, 1, ();\n\n    $lines[0] =~ s/\\S+\\s+\\S+\\s+//;\n@@ -465,13 +465,15 @@\n    # and another newline\n    my $CRLF = qr/(?:\\r?\\n)/;\n    my @entries = split /[\\t ]* $CRLF [\\t ]* $CRLF/x, $data;\n-   shift @entries;\n+   while ($entries[0] !~ /^\\s*[\\da-f]{2}-[\\da-f]{2}-[\\da-f]{2}\\s+/ims) {\n+           shift @entries;\n+           }\n\n    my $count = '';\n    foreach my $entry ( @entries ) {\n            $entry =~ s/^\\s+//;\n            my $oui = substr $entry, 0, 8;\n-           __PACKAGE__->add_to_cache( parse_oui( $entry ) );\n+           __PACKAGE__->add_to_cache( $oui, parse_oui( $entry ) );\n            }\n\n    return 1;\n```\n"},"comment":{"url":"https://api.github.com/repos/briandfoy/net-mac-vendor/issues/comments/260376128","html_url":"https://github.com/briandfoy/net-mac-vendor/issues/12#issuecomment-260376128","issue_url":"https://api.github.com/repos/briandfoy/net-mac-vendor/issues/12","id":260376128,"user":{"login":"briandfoy","id":22255,"avatar_url":"https://avatars.githubusercontent.com/u/22255?v=3","gravatar_id":"","url":"https://api.github.com/users/briandfoy","html_url":"https://github.com/briandfoy","followers_url":"https://api.github.com/users/briandfoy/followers","following_url":"https://api.github.com/users/briandfoy/following{/other_user}","gists_url":"https://api.github.com/users/briandfoy/gists{/gist_id}","starred_url":"https://api.github.com/users/briandfoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/briandfoy/subscriptions","organizations_url":"https://api.github.com/users/briandfoy/orgs","repos_url":"https://api.github.com/users/briandfoy/repos","events_url":"https://api.github.com/users/briandfoy/events{/privacy}","received_events_url":"https://api.github.com/users/briandfoy/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T16:00:41Z","updated_at":"2016-11-14T16:00:41Z","body":"I think this is mostly fixed by #15. If not, please send a pull request."}}
{"actor":{"display_login":"briandfoy"}}