HTTParty is a Ruby gem that wraps Net::HTTP with a friendly DSL:
require 'httparty'
HTTParty.get('https://example.com',
http_proxyaddr: 'gateway.proxied.com',
http_proxyport: 1080,
scheme: 'socks5h'
)
The socks5h scheme routes both HTTP and DNS through Proxied's carrier IPs.