File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed
assets/javascripts/templates/pages Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -188,9 +188,9 @@ credits = [
188
188
' https://raw.githubusercontent.com/jashkenas/coffeescript/master/LICENSE'
189
189
], [
190
190
' Composer' ,
191
- ' 2012-2018 Nils Adermann, Jordi Boggiano' ,
191
+ ' Nils Adermann, Jordi Boggiano' ,
192
192
' MIT' ,
193
- ' https://github. com/composer/composer/blob /master/LICENSE'
193
+ ' https://raw.githubusercontent. com/composer/composer/master/LICENSE'
194
194
], [
195
195
' Cordova' ,
196
196
' 2012-2018 The Apache Software Foundation' ,
Original file line number Diff line number Diff line change @@ -3,15 +3,12 @@ class Composer
3
3
class EntriesFilter < Docs ::EntriesFilter
4
4
def get_name
5
5
title = at_css ( 'h1' ) . content
6
-
7
6
title = "#{ Integer ( subpath [ 1 ] ) + 1 } . #{ title } " if type == 'Book'
8
-
9
7
title
10
8
end
11
9
12
10
def get_type
13
11
return 'Articles' if subpath . start_with? ( 'articles/' )
14
-
15
12
'Book'
16
13
end
17
14
Original file line number Diff line number Diff line change 1
1
module Docs
2
2
class Composer < UrlScraper
3
- self . name = 'Composer'
4
3
self . type = 'simple'
5
-
4
+ self . release = '1.9.0'
5
+ self . base_url = 'https://getcomposer.org/doc/'
6
6
self . links = {
7
7
home : 'https://getcomposer.org' ,
8
8
code : 'https://github.com/composer/composer'
9
9
}
10
10
11
11
html_filters . push 'composer/clean_html' , 'composer/entries'
12
12
13
- self . release = '1.7.2'
14
- self . base_url = 'https://getcomposer.org/doc/'
15
-
16
13
options [ :container ] = '#main'
17
14
18
15
options [ :skip_patterns ] = [
@@ -23,5 +20,9 @@ class Composer < UrlScraper
23
20
© Nils Adermann, Jordi Boggiano< br >
24
21
Licensed under the MIT License.
25
22
HTML
23
+
24
+ def get_latest_version ( opts )
25
+ get_latest_github_release ( 'composer' , 'composer' , opts )
26
+ end
26
27
end
27
28
end
You can’t perform that action at this time.
0 commit comments