A working netrc reader and parser for Ruby.
require 'netrcx'
# Read from default location
netrc = Netrcx.read
# Read the default entry (if set)
netrc.default # => #<Netrcx::Entry default=true, login="me">
# Find a specific entry
netrc['github.com'] # => #<Netrcx::Entry default=false, host=github.com, login="s3cret/t0ken">