0.01
No commit activity in last 3 years
No release in over 3 years
based on @ahoward's macaddr gem
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 2.14.1

Runtime

~> 2.5.0
 Project Readme

MacAddress

mac-address gem is a clone of @ahoward's macaddr gem, and is a suitable drop-in replacement.

The purpose of this fork is to fix version 1.6.2, which failed to list its dependencies, and to simplify the development and test environments to allow easier contribution.

Installation

Add this line to your application's Gemfile:

gem 'mac-address'

And then execute:

$ bundle

Or install it yourself as:

$ gem install mac-address

Usage

MacAddress gives you access to your MAC addresses.

require 'mac-address'

MacAddress.address
#=> 'c8:bc:c8:9b:28:b1'
MacAddress.address.list
#=> ['c8:bc:c8:9b:28:b1', 'd0:4e:f1:68:29:79'] 

Or, you can use this as a drop-in replacement for the macaddr gem:

require 'macaddr'

Mac.address
#=> 'c8:bc:c8:9b:28:b1'
Mac.address.list
#=> ['c8:bc:c8:9b:28:b1', 'd0:4e:f1:68:29:79'] 

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request