From 6d0436f98f77897a8f8a7daed46248fab2b51ab3 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 28 Nov 2021 13:24:08 +0100 Subject: [PATCH] Update Groovy documentation (3.0.9) Fixes #1662. --- lib/docs/filters/groovy/entries.rb | 3 ++- lib/docs/scrapers/groovy.rb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/docs/filters/groovy/entries.rb b/lib/docs/filters/groovy/entries.rb index 8f80971f..bf467f4b 100755 --- a/lib/docs/filters/groovy/entries.rb +++ b/lib/docs/filters/groovy/entries.rb @@ -16,7 +16,8 @@ module Docs def additional_entries entries = [] css('.method, .element, .field, .enum_constant').each do |node| - entries << [@name + '.' + node['id'], node['id']] + # Fix useless functions with arg249 https://docs.groovy-lang.org/3.0.9/html/gapi/org/codehaus/groovy/runtime/ArrayUtil.html + entries << [@name + '.' + node['id'], node['id']] if node['id'].length <= 192 end css('.constructor').each do |node| entries << [node['id'], node['id']] diff --git a/lib/docs/scrapers/groovy.rb b/lib/docs/scrapers/groovy.rb index ebd4242c..be0e24a0 100755 --- a/lib/docs/scrapers/groovy.rb +++ b/lib/docs/scrapers/groovy.rb @@ -24,7 +24,7 @@ module Docs HTML version '3.0' do - self.release = '3.0.7' + self.release = '3.0.9' self.base_url = "https://docs.groovy-lang.org/#{self.release}/html/gapi/" end