ahoward / macaddr

cross platform mac address determination for ruby
Other
47 stars 41 forks source link

1.8.0 refactor and allow for Mac.addr.list to work via Mac::from_getifaddrs #37

Open travishooper opened 5 years ago

travishooper commented 5 years ago

I was having some issues around running Mac.addr.list. I saw the issue was that list method wasn't being defined on the Mac.addr return value when it used Mac.from_getifaddrs to set the value. So I fixed that, and also did a bit of refactoring to get a better feel for what all is happening while maintaining the original API.

This should fix issue https://github.com/ahoward/macaddr/issues/26

Test and works on OSX and Fedora 31, both using Ruby 2.6.3.