File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ def initial_urls
36
36
37
37
def get_latest_version ( opts )
38
38
doc = fetch_doc ( 'https://crystal-lang.org/' , opts )
39
- doc . at_css ( '.latest-release' ) . content . scan ( /([0-9.]+)/ ) [ 0 ] [ 0 ]
39
+ doc . at_css ( '.latest-release-info > a > strong ' ) . content . scan ( /([0-9.]+)/ ) [ 0 ] [ 0 ]
40
40
end
41
41
end
42
42
end
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ class Docker < UrlScraper
96
96
97
97
def get_latest_version ( opts )
98
98
doc = fetch_doc ( 'https://docs.docker.com/engine/release-notes/' , opts )
99
- latest_version = doc . at_css ( '.content > section > h2 ' ) . content . strip
99
+ latest_version = doc . at_css ( '.DocSearch- content > h2 > a ' ) . content . strip
100
100
latest_version . rpartition ( ' ' ) [ -1 ]
101
101
end
102
102
end
Original file line number Diff line number Diff line change @@ -74,8 +74,8 @@ class Node < UrlScraper
74
74
end
75
75
76
76
def get_latest_version ( opts )
77
- doc = fetch_doc ( 'https:// nodejs.org/en/ ', opts )
78
- doc . at_css ( '#home-intro > .home-downloadblock:last-of-type > a' ) [ 'data-version '] [ 1 ..-1 ]
77
+ tags = get_github_tags ( ' nodejs' , 'node ', opts )
78
+ tags [ 0 ] [ 'name '] [ 1 ..-1 ]
79
79
end
80
80
end
81
81
end
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ class Octave < UrlScraper
51
51
52
52
def get_latest_version ( opts )
53
53
doc = fetch_doc ( 'https://octave.org/doc/interpreter/' , opts )
54
- doc . at_css ( 'h1 ' ) . content . scan ( /([0-9.]+)/ ) [ 0 ] [ 0 ]
54
+ doc . at_css ( '#SEC_Top + p ' ) . content . scan ( /([0-9.]+)/ ) [ 1 ] [ 0 ] [ 0 ..- 2 ]
55
55
end
56
56
57
57
end
Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ class Phalcon < UrlScraper
31
31
end
32
32
33
33
def get_latest_version ( opts )
34
- doc = fetch_doc ( 'https://docs.phalconphp.com/ ', opts )
35
- doc . at_css ( '.header__lang.expand > div > ul > li > a' ) . content
34
+ tags = get_github_tags ( 'phalcon' , 'cphalcon ', opts )
35
+ tags [ 0 ] [ 'name' ] [ 1 ..- 1 ]
36
36
end
37
37
end
38
38
end
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class SanctuaryTypeClasses < Github
23
23
HTML
24
24
25
25
def get_latest_version ( opts )
26
- get - npm - version ( "sanctuary-type-classes" , opts )
26
+ get_npm_version ( "sanctuary-type-classes" , opts )
27
27
end
28
28
end
29
29
end
You can’t perform that action at this time.
0 commit comments