From afffbf3a60cc06e9ac2d61ca1e9fa5f7728d0d2a Mon Sep 17 00:00:00 2001 From: Thibaut Date: Sat, 29 Aug 2015 11:38:11 -0400 Subject: [PATCH] Update Backbone.js documentation (1.2.2) --- lib/docs/filters/backbone/entries.rb | 4 ++-- lib/docs/scrapers/backbone.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/docs/filters/backbone/entries.rb b/lib/docs/filters/backbone/entries.rb index d637a46c..d04b20e9 100644 --- a/lib/docs/filters/backbone/entries.rb +++ b/lib/docs/filters/backbone/entries.rb @@ -30,8 +30,8 @@ module Docs name = node.at_css('.header').content.split.first # Underscore methods - if name == 'Underscore' - node.next_element.css('li').each do |li| + if name.start_with?('Underscore') + node.at_css('~ ul').css('li').each do |li| name = [type.downcase, li.at_css('a').content.split.first].join('.') id = name.parameterize li['id'] = id diff --git a/lib/docs/scrapers/backbone.rb b/lib/docs/scrapers/backbone.rb index e9442317..99fff2fd 100644 --- a/lib/docs/scrapers/backbone.rb +++ b/lib/docs/scrapers/backbone.rb @@ -3,7 +3,7 @@ module Docs self.name = 'Backbone.js' self.slug = 'backbone' self.type = 'underscore' - self.version = '1.2.1' + self.version = '1.2.2' self.base_url = 'http://backbonejs.org' self.links = { home: 'http://backbonejs.org/',