You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2023/09/15 12:57:50 UTC
[whimsy] branch master updated (3cccafb1 -> 1ceac83d)
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
from 3cccafb1 Allow for invalid chars in metadata
new d687a2af Only list active cultures
new 1ceac83d Force https
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
lib/whimsy/asf/petri.rb | 9 +++++----
tools/site-scan.rb | 2 ++
2 files changed, 7 insertions(+), 4 deletions(-)
[whimsy] 01/02: Only list active cultures
Posted by se...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
commit d687a2af127ee4d2311f79fd06ae009b24557227
Author: Sebb <se...@apache.org>
AuthorDate: Fri Sep 15 13:56:58 2023 +0100
Only list active cultures
---
lib/whimsy/asf/petri.rb | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/lib/whimsy/asf/petri.rb b/lib/whimsy/asf/petri.rb
index a78b05b1..aa0c589e 100644
--- a/lib/whimsy/asf/petri.rb
+++ b/lib/whimsy/asf/petri.rb
@@ -29,15 +29,16 @@ module ASF
hash.each { |name, value| instance_variable_set("@#{name}", value) }
end
- # Array of all Petri culture entries
+ # Array of all active Petri culture entries
def self.list
@list = []
response = Net::HTTP.get_response(URI(PETRI_INFO))
response.value() # Raises error if not OK
yaml = YAML.safe_load(response.body, permitted_classes: [Symbol])
# @mentors = yaml['mentors']
- yaml['cultures'].each do |proj|
- @list << new(proj)
+ # Active cultures are listed under projects
+ yaml['projects'].each do |proj|
+ @list << new(yaml['cultures'][proj])
end
@list
end
@@ -49,4 +50,4 @@ if __FILE__ == $0
p e
p e.website
end
-end
\ No newline at end of file
+end
[whimsy] 02/02: Force https
Posted by se...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
commit 1ceac83d26108d399ee1caffdc32b837ea2a648e
Author: Sebb <se...@apache.org>
AuthorDate: Fri Sep 15 13:57:44 2023 +0100
Force https
---
tools/site-scan.rb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/site-scan.rb b/tools/site-scan.rb
index 7210af07..0f2000fb 100755
--- a/tools/site-scan.rb
+++ b/tools/site-scan.rb
@@ -57,6 +57,8 @@ end
# @see SiteStandards for definitions of what we should scan for (in general)
def parse(id, site, name)
data = {}
+ # force https to avoid issue with cache (sites should use https anyway)
+ site.sub!(%r{^http:},'https:')
SiteStandards::COMMON_CHECKS.each_key do |k|
data[k.to_sym] = nil
end