examples/no_class.rb in wombat-2.1.0 vs examples/no_class.rb in wombat-2.1.1

- old
+ new

@@ -4,38 +4,38 @@ data = Wombat.crawl do base_url "http://www.github.com" path "/" headline "xpath=//h1" - what_is "css=.column.secondary p", :html + subheading "css=p.subheading" - explore "xpath=//ul/li[2]/a" do |e| - e.gsub(/Explore/, "LOVE") - end + what_is "css=.teaser h3", :list - benefits do - team_mgmt "css=.column.leftmost h3" - code_review "css=.column.leftmid h3" - hosting "css=.column.rightmid h3" - collaboration "css=.column.rightmost h3" - - links do - team_mgmt "xpath=//div[@class='column leftmost']//a/@href" + links do + explore 'xpath=//*[@id="wrapper"]/div[1]/div/ul/li[1]/a' do |e| + e.gsub(/Explore/, "Love") end + + search 'css=.search' + features 'css=.features' + blog 'css=.blog' end end =begin pp data { - "headline"=>"1,900,094\n people hosting over\n 3,371,168\n repositories", - "what_is"=>"GitHub is the best way to collaborate with others. Fork, send pull requests and manage all your <strong>public</strong> and <strong>private</strong> git repositories.", - "explore"=>"LOVE GitHub", - "benefits"=> { - "team_mgmt"=>"Team management", - "code_review"=>"Code review", - "hosting"=>"Reliable code hosting", - "collaboration"=>"Open source collaboration", - "links"=>{"team_mgmt"=>"/features/projects/collaboration"} + "headline"=>"Build software better, together.", + "subheading"=> + "Powerful collaboration, review, and code management for open source and private development projects.", + "what_is"=> + ["Great collaboration starts with communication.", + "Manage and contribute from all your devices.", + "The world’s largest open source community."], + "links"=> + {"explore"=>"Love GitHub", + "search"=>"Search", + "features"=>"Features", + "blog"=>"Blog" } } =end \ No newline at end of file