-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathbower.rb
More file actions
27 lines (23 loc) · 638 Bytes
/
bower.rb
File metadata and controls
27 lines (23 loc) · 638 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
module Docs
class Bower < UrlScraper
self.name = 'Bower'
self.type = 'simple'
self.release = '1.8.4'
self.base_url = 'https://bower.io/docs/'
self.root_path = 'api'
self.links = {
home: 'https://bower.io/',
code: 'https://github.com/bower/bower'
}
html_filters.push 'bower/clean_html', 'bower/entries'
options[:trailing_slash] = false
options[:skip] = %w(tools about)
options[:attribution] = <<-HTML
© 2018 Bower contributors<br>
Licensed under the MIT License.
HTML
def get_latest_version(opts)
get_npm_version('bower', opts)
end
end
end