Skip to content

Commit

Permalink
Update to improved URI parse function; test on asf listing
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneCurcuru committed Dec 11, 2024
1 parent e7175ae commit 8a9ba48
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions _data/sponsorships/asf.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
"apple.com",
"aws.amazon.com",
"facebook.com",
"geico.com",
"google.com",
"huawei.com",
"microsoft.com",
"news.apache.org",
"visa.com",
"yahooinc.com"
],
"second": [
Expand All @@ -19,11 +21,11 @@
"confluent.io",
"ibm.com",
"union-investment.de",
"visa.com",
"workday.com"
],
"third": [
"aetna.com",
"americanexpress.com",
"capitalone.com",
"indeed.com",
"lycorp.co.jp",
Expand All @@ -50,7 +52,6 @@
"cloudbees.com",
"dlapiper.com",
"gradle.com",
"leaseweb.com",
"jfrog.com",
"microsoft.com",
"osuosl.org",
Expand Down Expand Up @@ -83,5 +84,5 @@
"surfnet.nl",
"virtru.com"
],
"parseDate": "20240926"
"parseDate": "20241211"
}
2 changes: 1 addition & 1 deletion assets/ruby/sponsor_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def parse_subpages(existing_sponsors, sponsorship)
sponsors[level] << itm
else
begin
doc = Nokogiri::HTML5(URI.open("#{rooturl}#{itm}").read)
doc = Nokogiri::HTML5(URI.parse("#{rooturl}#{itm}").open.read)
node = doc.at_css(selector)
if node
sponsors[level] << normalize_href(node['href'])
Expand Down

0 comments on commit 8a9ba48

Please sign in to comment.