From 6bb9114a50157e0cdab0fda596747e7bcdc13bbc Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 5 Dec 2021 01:21:59 +0100 Subject: [PATCH] Unwrap "" version --- lib/docs/scrapers/esbuild.rb | 8 +++----- lib/docs/scrapers/vite.rb | 10 ++++------ 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/lib/docs/scrapers/esbuild.rb b/lib/docs/scrapers/esbuild.rb index c495518e..5484f155 100644 --- a/lib/docs/scrapers/esbuild.rb +++ b/lib/docs/scrapers/esbuild.rb @@ -16,11 +16,9 @@ module Docs Licensed under the MIT License. HTML - version do - self.release = '0.14.2' - self.base_url = 'https://esbuild.github.io/' - html_filters.push 'esbuild/clean_html', 'esbuild/entries' - end + self.release = '0.14.2' + self.base_url = 'https://esbuild.github.io/' + html_filters.push 'esbuild/clean_html', 'esbuild/entries' def get_latest_version(opts) get_npm_version('esbuild', opts) diff --git a/lib/docs/scrapers/vite.rb b/lib/docs/scrapers/vite.rb index 4af8b895..c6514e65 100644 --- a/lib/docs/scrapers/vite.rb +++ b/lib/docs/scrapers/vite.rb @@ -16,12 +16,10 @@ module Docs Licensed under the MIT License. HTML - version do - self.release = '2.6.14' - self.base_url = 'https://vitejs.dev/' - self.initial_paths = %w(guide/) - html_filters.push 'vue/entries_v3', 'vue/clean_html' - end + self.release = '2.6.14' + self.base_url = 'https://vitejs.dev/' + self.initial_paths = %w(guide/) + html_filters.push 'vue/entries_v3', 'vue/clean_html' def get_latest_version(opts) get_npm_version('vite', opts)