Unified · Split
| @@ -1,10 +1,6 @@ | ||
| 1 | 1 | module Docs |
| 2 | 2 | class Ember |
| 3 | 3 | class EntriesFilter < Docs::EntriesFilter |
| 4 | − def include_default_entry? | |
| 5 | − name != 'Handlebars Helpers' | |
| 6 | − end | |
| 7 | − | |
| 8 | 4 | def get_name |
| 9 | 5 | name = at_css('.api-header').content.split.first |
| 10 | 6 | # Remove "Ember." prefix if the next character is uppercase |
| @@ -13,16 +9,22 @@ module Docs · 2 unmodified lines | ||
| 13 | 9 | end |
| 14 | 10 | |
| 15 | 11 | def get_type |
| 12 | + group = if css('p').any? { |node| node.content.include?('PRIVATE') } | |
| 13 | + 'Private' | |
| 14 | + elsif css('p').any? { |node| node.content.include?('DEPRECATED') } | |
| 15 | + 'Deprecated' | |
| 16 | + end | |
| 17 | + | |
| 16 | 18 | if at_css('.api-header').content.include?('Module') |
| 17 | 19 | 'Modules' |
| 18 | 20 | elsif name.start_with? 'DS' |
| 19 | − 'Data' | |
| 21 | + group ? "Data (#{group})" : 'Data' | |
| 20 | 22 | elsif name.start_with? 'RSVP' |
| 21 | 23 | 'RSVP' |
| 22 | 24 | elsif name.start_with? 'Test' |
| 23 | 25 | 'Test' |
| 24 | 26 | else |
| 25 | − name | |
| 27 | + group || name | |
| 26 | 28 | end |
| 27 | 29 | end |
| 28 | 30 | |
| @@ -3,7 +3,7 @@ module Docs · 2 unmodified lines | ||
| 3 | 3 | self.name = 'Ember.js' |
| 4 | 4 | self.slug = 'ember' |
| 5 | 5 | self.type = 'ember' |
| 6 | − self.version = '1.12.0' | |
| 6 | + self.version = '1.13.3' | |
| 7 | 7 | self.base_url = 'http://emberjs.com/api/' |
| 8 | 8 | self.links = { |
| 9 | 9 | home: 'http://emberjs.com/', |
| @@ -20,27 +20,7 @@ module Docs · 10 unmodified lines | ||
| 20 | 20 | end |
| 21 | 21 | |
| 22 | 22 | # Duplicates |
| 23 | − options[:skip] = %w( | |
| 24 | − classes/String.html | |
| 25 | − data/classes/DS.html) | |
| 26 | − | |
| 27 | − # Private | |
| 28 | − options[:skip].concat %w( | |
| 29 | − classes/Backburner.html | |
| 30 | − classes/Ember.ComponentTemplateDeprecation.html | |
| 31 | − classes/Ember.ControllerContentModelAliasDeprecation.html | |
| 32 | − classes/Ember.Descriptor.html | |
| 33 | − classes/Ember.EachProxy.html | |
| 34 | − classes/Ember.EventDispatcher.html | |
| 35 | − classes/Ember.Map.html | |
| 36 | − classes/Ember.MapWithDefault.html | |
| 37 | − classes/Ember.OrderedSet.html | |
| 38 | − classes/Ember.TextSupport.html | |
| 39 | − classes/HandlebarsCompatibleHelper.html | |
| 40 | − classes/Libraries.html | |
| 41 | − data/classes/DS.ContainerProxy.html | |
| 42 | − data/classes/DS.DebugAdapter.html | |
| 43 | − data/classes/DS.RecordArrayManager.html) | |
| 23 | + options[:skip] = %w(classes/String.html data/classes/DS.html) | |
| 44 | 24 | |
| 45 | 25 | options[:skip_patterns] = [/\._/] |
| 46 | 26 | |