diff --git a/lib/docs/filters/coffeescript/entries.rb b/lib/docs/filters/coffeescript/entries.rb index e6653324..9201b9dd 100644 --- a/lib/docs/filters/coffeescript/entries.rb +++ b/lib/docs/filters/coffeescript/entries.rb @@ -22,9 +22,9 @@ module Docs ['Array slicing and splicing', 'slices', 'Language'], ['Ranges', 'slices', 'Language'], ['Expressions', 'expressions', 'Language'], - ['?', 'the-existential-operator', 'Operators'], - ['?=', 'the-existential-operator', 'Operators'], - ['?.', 'the-existential-operator', 'Operators'], + ['?', 'existential-operator', 'Operators'], + ['?=', 'existential-operator', 'Operators'], + ['?.', 'existential-operator', 'Operators'], ['class', 'classes', 'Statements'], ['extends', 'classes', 'Operators'], ['super', 'classes', 'Statements'], @@ -37,14 +37,14 @@ module Docs ['for...from', 'fat-arrow', 'Statements'], ['Embedded JavaScript', 'embedded', 'Language'], ['switch...when...else', 'switch', 'Statements'], - ['try...catch...finally', 'try', 'Statements'], + ['try...catch...finally', 'try-catch', 'Statements'], ['Chained comparisons', 'comparisons', 'Language'], ['#{} interpolation', 'strings', 'Language'], ['Block strings', 'strings', 'Language'], ['"""', 'strings', 'Language'], ['Block comments', 'strings', 'Language'], ['###', 'strings', 'Language'], - ['Tagged Template Literals', 'tagged-template-literals', 'Language'], + ['Tagged Template Literals', 'tagged-template-literals', 'Language'], ['Block regexes', 'regexes', 'Language'], ['///', 'regexes', 'Language'], ['Modules', 'modules', 'Language'], @@ -59,7 +59,7 @@ module Docs entries = ENTRIES.dup # Operators - css('.definitions td:first-child > code').each do |node| + at_css('#operators ~ table').css('td:first-child > code').each do |node| node.content.split(', ').each do |name| next if %w(true false yes no on off this).include?(name) name.sub! %r{\Aa (.+) b\z}, '\1' diff --git a/lib/docs/scrapers/coffeescript.rb b/lib/docs/scrapers/coffeescript.rb index 8cadc7eb..3e3b7448 100644 --- a/lib/docs/scrapers/coffeescript.rb +++ b/lib/docs/scrapers/coffeescript.rb @@ -2,7 +2,7 @@ module Docs class Coffeescript < UrlScraper self.name = 'CoffeeScript' self.type = 'coffeescript' - self.release = '1.12.3' + self.release = '1.12.5' self.base_url = 'http://coffeescript.org' self.links = { home: 'http://coffeescript.org',