Skip to content

Commit df886bc

Browse files
authored
Update postgresql.rb
Add Postgres 16 and current. Update other version and mention EOL ones.
1 parent 3b433a2 commit df886bc

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

lib/docs/scrapers/postgresql.rb

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,52 +55,62 @@ class Postgresql < UrlScraper
5555
Licensed under the PostgreSQL License.
5656
HTML
5757

58+
version 'Latest' do
59+
self.release = '16.0'
60+
self.base_url = "https://www.postgresql.org/docs/latest/"
61+
end
62+
63+
version '16' do
64+
self.release = '16.0'
65+
self.base_url = "https://www.postgresql.org/docs/#{version}/"
66+
end
67+
5868
version '15' do
59-
self.release = '15.3'
69+
self.release = '15.4'
6070
self.base_url = "https://www.postgresql.org/docs/#{version}/"
6171
end
6272

6373
version '14' do
64-
self.release = '14.5'
74+
self.release = '14.9'
6575
self.base_url = "https://www.postgresql.org/docs/#{version}/"
6676
end
6777

6878
version '13' do
69-
self.release = '13.4'
79+
self.release = '13.12'
7080
self.base_url = "https://www.postgresql.org/docs/#{version}/"
7181
end
7282

7383
version '12' do
74-
self.release = '12.1'
84+
self.release = '12.16'
7585
self.base_url = "https://www.postgresql.org/docs/#{version}/"
7686
end
7787

7888
version '11' do
79-
self.release = '11.6'
89+
self.release = '11.21'
8090
self.base_url = "https://www.postgresql.org/docs/#{version}/"
8191
end
8292

8393
version '10' do
84-
self.release = '10.11'
94+
self.release = '10.23 (EOL)'
8595
self.base_url = "https://www.postgresql.org/docs/#{version}/"
8696
end
8797

8898
version '9.6' do
89-
self.release = '9.6.16'
99+
self.release = '9.6.24 (EOL)'
90100
self.base_url = "https://www.postgresql.org/docs/#{version}/"
91101

92102
html_filters.insert_before 'postgresql/extract_metadata', 'postgresql/normalize_class_names'
93103
end
94104

95105
version '9.5' do
96-
self.release = '9.5.20'
106+
self.release = '9.5.25 (EOL)'
97107
self.base_url = "https://www.postgresql.org/docs/#{version}/"
98108

99109
html_filters.insert_before 'postgresql/extract_metadata', 'postgresql/normalize_class_names'
100110
end
101111

102112
version '9.4' do
103-
self.release = '9.4.25'
113+
self.release = '9.4.26 (EOL)'
104114
self.base_url = "https://www.postgresql.org/docs/#{version}/"
105115

106116
html_filters.insert_before 'postgresql/extract_metadata', 'postgresql/normalize_class_names'

0 commit comments

Comments
 (0)