NAME
macaddr
DESCRIPTION
cross platform mac address determination for ruby
URI
http://github.com/steakknife/macaddr
(previously)
http://github.com/ahoward/macaddr
http://rubyforg.org/projects/codeforpeople
INSTALL
cd ${TMPDIR-/tmp}
git clone https://github.com/steakknife/macaddr
cd macaddr
gem build *.gemspec
gem install *.gem
Install Gemfile 1.9+
gem 'macaddr', git: 'https://github.com/steakknife/macaddr.git'
Install Gemfile 1.8+
gem 'macaddr', git => 'https://github.com/steakknife/macaddr.git'
HISTORY
Even newer:
- #ifaddrs - list all Ifaddr's
- #iface_macs - Hash with all interfaces to mac addresses
New:
- Get rid of systemu, only use Ruby's Socket.getifaddrs
- Actually implement array of all macs as #addrs
1.7.x:
- added a Gemfile for easier testing/dev with Bundler
- added an example .rvmrc file that will setup for ruby 1.9.3
- updated systemu gem to ~>2.4.0 to work with ruby 1.9.3
1.1.0:
- added dependancy on systemu to work around butt-licky windoze io
capture: http://redmine.ruby-lang.org/issues/show/3215
1.0.0:
- rdoc added
- eric hodel kicks ass. to find why, see
http://drawohara.com/post/44678286/eric-hodel-kicks-ass
SYNOPSIS
require 'macaddr'
Mac.addr #=> first mac addr on your system
Mac.addrs #=> all mac addrs on your system