From 05d5b9396770a06ebc38184cc4e4abd1c434e9ae Mon Sep 17 00:00:00 2001 From: Thibaut Date: Sat, 11 Jul 2015 11:13:15 -0400 Subject: [PATCH] Update Ember.js documentation (1.13.3) --- lib/docs/filters/ember/entries.rb | 14 ++++++++------ lib/docs/scrapers/ember.rb | 24 ++---------------------- 2 files changed, 10 insertions(+), 28 deletions(-) diff --git a/lib/docs/filters/ember/entries.rb b/lib/docs/filters/ember/entries.rb index 7753c7fb..5fd08a59 100644 --- a/lib/docs/filters/ember/entries.rb +++ b/lib/docs/filters/ember/entries.rb @@ -1,10 +1,6 @@ module Docs class Ember class EntriesFilter < Docs::EntriesFilter - def include_default_entry? - name != 'Handlebars Helpers' - end - def get_name name = at_css('.api-header').content.split.first # Remove "Ember." prefix if the next character is uppercase @@ -13,16 +9,22 @@ module Docs end def get_type + group = if css('p').any? { |node| node.content.include?('PRIVATE') } + 'Private' + elsif css('p').any? { |node| node.content.include?('DEPRECATED') } + 'Deprecated' + end + if at_css('.api-header').content.include?('Module') 'Modules' elsif name.start_with? 'DS' - 'Data' + group ? "Data (#{group})" : 'Data' elsif name.start_with? 'RSVP' 'RSVP' elsif name.start_with? 'Test' 'Test' else - name + group || name end end diff --git a/lib/docs/scrapers/ember.rb b/lib/docs/scrapers/ember.rb index 110684d0..d60ec826 100644 --- a/lib/docs/scrapers/ember.rb +++ b/lib/docs/scrapers/ember.rb @@ -3,7 +3,7 @@ module Docs self.name = 'Ember.js' self.slug = 'ember' self.type = 'ember' - self.version = '1.12.0' + self.version = '1.13.3' self.base_url = 'http://emberjs.com/api/' self.links = { home: 'http://emberjs.com/', @@ -20,27 +20,7 @@ module Docs end # Duplicates - options[:skip] = %w( - classes/String.html - data/classes/DS.html) - - # Private - options[:skip].concat %w( - classes/Backburner.html - classes/Ember.ComponentTemplateDeprecation.html - classes/Ember.ControllerContentModelAliasDeprecation.html - classes/Ember.Descriptor.html - classes/Ember.EachProxy.html - classes/Ember.EventDispatcher.html - classes/Ember.Map.html - classes/Ember.MapWithDefault.html - classes/Ember.OrderedSet.html - classes/Ember.TextSupport.html - classes/HandlebarsCompatibleHelper.html - classes/Libraries.html - data/classes/DS.ContainerProxy.html - data/classes/DS.DebugAdapter.html - data/classes/DS.RecordArrayManager.html) + options[:skip] = %w(classes/String.html data/classes/DS.html) options[:skip_patterns] = [/\._/]