FancyPixel / mac_addresses

Ruby Gem for cross platform mac addresses determination

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MacAddresses Logo

This Gem has been created with the intention of making it simple to determine MAC addresses. Heavily inspired by macaddr

Installation

Add this line to your application's Gemfile:

gem 'mac_addresses'

And then execute:

$ bundle

Or install it yourself as:

$ gem install mac_addresses

Usage

First you have to fetch MAC addresses:

MacAddresses.fetch  # this also returns the list of addresses

Then you can access the cached addresses with:

MacAddresses.list

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/FancyPixel/mac_addresses. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

Development

After checking out the repo, run bin/setup to install dependencies. Then, run bundle exec rspec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install.

License

The gem is available as open source under the terms of the MIT License.

About

Ruby Gem for cross platform mac addresses determination

License:MIT License


Languages

Language:Ruby 98.8%Language:Shell 1.2%