From 4908b827c1e292174cf63681bc7c9fbe45a35856 Mon Sep 17 00:00:00 2001 From: Thibaut Date: Sat, 1 Nov 2014 10:18:18 -0400 Subject: [PATCH] Update Angular.js documentation (1.3.1) --- lib/docs/filters/angular/clean_urls.rb | 4 ++-- lib/docs/scrapers/angular.rb | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/docs/filters/angular/clean_urls.rb b/lib/docs/filters/angular/clean_urls.rb index 35da8f2c..fcb493e3 100644 --- a/lib/docs/filters/angular/clean_urls.rb +++ b/lib/docs/filters/angular/clean_urls.rb @@ -2,8 +2,8 @@ module Docs class Angular class CleanUrlsFilter < Filter def call - html.gsub! 'angularjs.org/1.3.0/docs/partials/api/', 'angularjs.org/1.3.0/docs/api/' - html.gsub! %r{angularjs.org/1.3.0/docs/api/(.+?)\.html}, 'angularjs.org/1.3.0/docs/api/\1' + html.gsub! 'angularjs.org/1.3.1/docs/partials/api/', 'angularjs.org/1.3.1/docs/api/' + html.gsub! %r{angularjs.org/1.3.1/docs/api/(.+?)\.html}, 'angularjs.org/1.3.1/docs/api/\1' html end end diff --git a/lib/docs/scrapers/angular.rb b/lib/docs/scrapers/angular.rb index a069119b..6f7f530a 100644 --- a/lib/docs/scrapers/angular.rb +++ b/lib/docs/scrapers/angular.rb @@ -3,8 +3,8 @@ module Docs self.name = 'Angular.js' self.slug = 'angular' self.type = 'angular' - self.version = '1.3.0' - self.base_url = 'https://code.angularjs.org/1.3.0/docs/partials/api/' + self.version = '1.3.1' + self.base_url = 'https://code.angularjs.org/1.3.1/docs/partials/api/' html_filters.push 'angular/clean_html', 'angular/entries', 'title' text_filters.push 'angular/clean_urls' @@ -52,7 +52,7 @@ module Docs def get_root_page_body require 'capybara' Capybara.current_driver = :selenium - Capybara.visit('https://code.angularjs.org/1.3.0/docs/api') + Capybara.visit('https://code.angularjs.org/1.3.1/docs/api') Capybara.find('.side-navigation')['innerHTML'] end end