Ruby uri.open с прокси

html = URI.open(
  "https://www.URL_YOU_WANT_TO_OPEN.com", 
  proxy_http_basic_authentication: [
    proxy_uri,
    "username",
    "password"
  ]
)

doc = Nokogiri::HTML(html, nil, 'utf-8')
Lioruby