jenkins - Dashing (Ruby) Nokogiri LoadError -
i've been working on dashboard on dashing framework, , i'm trying make little crawler collect specific data on jenkins-ci, , pass number widget. here's crawler (it's stub, counts number of "p" elements on stub html page): require 'nokogiri' require 'open-uri' class activebuilds def initialize() @jenkins_page = nil @build_count = nil end # !stub! gets jenkins page parse xml on nokogiri @jenkins_page = nokogiri::html(open("http://localhost:80")) # !stub! counts number of 'p' items found on page @build_count = @jenkins_page.css("p").length # !stub! returns amount of active builds def amountofactivebuilds return @build_count end end and reference, not necessary, html page: <!doctype html> <html> <head> <meta charset="utf-8"> <title>number stub | project</title> ...