@@ -8,8 +8,6 @@ class Vue < UrlScraper
88 code : 'https://github.com/vuejs/vue'
99 }
1010
11- html_filters . push 'vue/entries' , 'vue/clean_html'
12-
1311 options [ :only_patterns ] = [ /guide\/ / , /api\/ / ]
1412 options [ :skip ] = %w( guide/team.html )
1513 options [ :replace_paths ] = { 'guide/' => 'guide/index.html' }
@@ -19,22 +17,32 @@ class Vue < UrlScraper
1917 Licensed under the MIT License.
2018 HTML
2119
20+ version '3' do
21+ self . release = '3.0.5'
22+ self . base_url = 'https://v3.vuejs.org/'
23+ self . root_path = 'guide/introduction.html'
24+ self . initial_paths = %w( api/ )
25+ html_filters . push 'vue/entries_v3' , 'vue/clean_html'
26+ end
27+
2228 version '2' do
23- self . release = '2.6.10 '
29+ self . release = '2.6.12 '
2430 self . base_url = 'https://vuejs.org/v2/'
2531 self . root_path = 'guide/index.html'
2632 self . initial_paths = %w( api/ )
33+ html_filters . push 'vue/entries' , 'vue/clean_html'
2734 end
2835
2936 version '1' do
3037 self . release = '1.0.28'
3138 self . base_url = 'https://v1.vuejs.org'
3239 self . root_path = '/guide/index.html'
3340 self . initial_paths = %w( /api/index.html )
41+ html_filters . push 'vue/entries' , 'vue/clean_html'
3442 end
3543
3644 def get_latest_version ( opts )
37- get_latest_github_release ( 'vuejs ', 'vue- next', opts )
45+ get_npm_version ( 'vue ', opts , ' next')
3846 end
3947 end
4048end
0 commit comments