(packaging) Remove createpackage.sh from facter

This shell script has been replaced and superceded by the packaging rake tasks.
Running `rake package:bootstrap` followed by `rake package:apple` will build a
dmg locally in a similar manner to this script.
(Maint) Ignore Gemfile.local

This ignores the Gemfile.local so that specific gems like fuubar can be applied.
Merge pull request #492 from ferventcoder/maint/stable/ignore_gemfile_local

(Maint) Ignore Gemfile.local
(packaging) Remove PackageInfo.plist, it is no longer used by packaging.
Merge pull request #490 from haus/remove_createpackage_sh

(packaging) Remove createpackage.sh from facter
(Bug #21762) Update facter to support F19

This commit modifies the bild_defaults file to include fedora 19 in
the final mocks list. It also removes the ruby(abi) requirement, as
F19 no longer provides it.
Merge pull request #480 from melissaanne/maint/stable/re-47_f19-updates

(Bug #21762) update facter for f19 updates
ip address fact that return full ifconfig output

On system with non english locale, the ip address fact return full ifconfig
output.
(refactor) Simplify ipaddress fact specs
(maint) Stub extraneous facts when testing ifconfig

If the higher weight ifconfig fact fails to resolve, Facter will try to
determine the IP address by resolving the hostname. When testing to
ensure that the ifconfig based resolution returns nil, the resolution
fact will be called and return an unexpected value. This commit stubs
the hostname fact when testing the ifconfig ipaddress resolution to
ensure the tests behave consistently.
Merge branch 'pull-476' into stable

This closes GH-476
Maint: Don't load facts twice during specs

Previously, the spec_helper was prepending facter's lib directory to the
$LOAD_PATH, which had the side-effect of causing the zfs and zpool commands
to be executed 5 times, not 3 (as specified in the comments).

Originally, this was noticed because we were having to add `.at_least_once`
to expectations even though the method should have only been called once.

This commit changes the spec_helper to no longer prepend facter's top-level
lib directory to the LOAD_PATH. In doing so, it causes the virtual fact
resolutions to be evaluated in a different order than the virtual tests
expected. In particular, the tests we're trying to verify the more-specific
resolution, but were actually running with the more generic one.

This commit adds a higher weight to the more specific virtual facts,
since that's the expected behavior, and it ensures the tests reliably
test the resolution they are trying to set their expectations on.

Paired-with: Patrick Carlisle <patrick@puppetlabs.com>
(#16668) Use WMI to collect IPv4 address

Previously, we were calling `IPSocket.getaddress(Socket.gethostname)` to
resolve the `ipaddress` fact on Windows, but using WMI-based methods
to resolve other IP related facts, e.g. interfaces. This led to inconsistent
information -- ipaddress from one interface, netmask from another.

This commit introduces a `get_preferred_network_adapters` method that
returns an ordered list of WIN32OLE objects that wrap
Win32_NetworkAdapterConfiguration objects. The list is ordered by the
IPConnectionMetric. If two interfaces have the same metric, e.g. host with
multiple NICs, then the order is based on the adapter bindings[1].

It is possible for a network adapter configuration to contain IPv4 and/or
IPv6 addresses, but only the former will be considered valid for the
ipaddress fact.

[1] http://support.microsoft.com/kb/894564
(#16668) Use WMI to collect netmask fact

Previously, Windows hosts didn't report the netmask fact.
(#16668) Use WMI to collect macaddress fact

Previously, facter would report on the first macaddress associated
with any interface that had IP enabled. This could easily be an
interface with a high cost metric, or an IPv6 only interface.

This commit refactors the macaddress fact to use the same ordered list
of network adapters as is done for ipaddress, to ensure we return a
consistent set of facts.
(#16668) Use WMI to collect IPv6 address

Previously, we were using netsh.exe to collect the ipaddress6 fact, but it
relied on en_US output that wasn't internationalizable.

This commit uses WMI, like the ipaddress fact, and handles issues like
multiple NICs, both IPv4 and IPv6 IP addresses on a single NIC,
per-interface metrics, and the binding order of interfaces.
(#21518) Use WMI to collect per-interface facts

Previously, we used netsh.exe to collect the interfaces fact, and the
derived per-interface facts on Windows. However, netsh.exe is not
available on plain 2003 servers, and the facts relied on netsh.exe
outputting en_US text.

This commit refactors the method to use WMI instead, which does not
have these issues.
(#16665) Remove references to netsh

We no longer use netsh to collect IP related facts on Windows. This
commit removes references to it.
Maint: Simplify how interfaces are enumerated

Previously, we were enumerating each WIN32OLE object, only to have the
caller append the yielded object to an array and then call Enumerable
methods on the array.

This commit simplifies the method to return an Array of WIN32OLE objects,
so the caller can call Enumerable methods directly on it.
(#16668) Support IPv6 adapter binding order

Previously, if multiple interfaces had the same IP connection metric,
then we would always use the IPv4 specific adapter binding order, which
could be incorrect when reporting IPv6 IP related facts.

This commit adds a method for returning the ordered list of interfaces
supporting IPv6, and updates the various facts to use the appropriate
IPv4 or IPv6 method.