Skip to content

Rewrite http:// URLs to https:// - #1669

Merged
lsegal merged 6 commits into
mainfrom
rewrite-http-https
Apr 9, 2026
Merged

Rewrite http:// URLs to https://#1669
lsegal merged 6 commits into
mainfrom
rewrite-http-https

Conversation

@lsegal

@lsegal lsegal commented Apr 9, 2026

Copy link
Copy Markdown
Owner

Description

Rewrite http:// to https://

@lsegal lsegal self-assigned this Apr 9, 2026
Copilot AI review requested due to automatic review settings April 9, 2026 17:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to modernize references by rewriting http:// URLs to https:// across the gemspec, docs, templates, and specs.

Changes:

  • Updated project metadata/documentation links from http:// to https://.
  • Updated various test fixtures/specs to expect https:// URLs.
  • Updated several templates and server messaging to display https:// URLs.

Reviewed changes

Copilot reviewed 34 out of 34 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
yard.gemspec Updates gem homepage URL to HTTPS.
templates/guide/layout/html/layout.erb Rewrites W3C identifiers/namespace to HTTPS (includes an XHTML namespace change).
templates/default/onefile/html/layout.erb Rewrites W3C identifiers/namespace to HTTPS (includes an XHTML namespace change).
lib/yard/server/templates/doc_server/library_list/html/library_list.erb Rewrites W3C identifiers/namespace to HTTPS (includes an XHTML namespace change).
lib/yard/server/rack_adapter.rb Changes the printed server URL scheme to HTTPS.
lib/yard/cli/diff.rb Uses HTTPS for rubygems download URLs.
lib/yard/server/library_version.rb Updates example download URL to HTTPS.
lib/yard/parser/ruby/ruby_parser.rb Updates referenced bug tracker URL to HTTPS.
lib/yard/i18n/pot_generator.rb Updates gettext manual URL to HTTPS.
lib/yard/i18n/locale.rb Updates IETF reference URL to HTTPS.
lib/yard/code_objects/proxy.rb Updates referenced gist URL to HTTPS.
lib/yard/templates/helpers/base_helper.rb Updates doc example URL to HTTPS.
lib/yard/tags/library.rb Updates doc example URLs to HTTPS.
README.md Updates badge/documentation links to HTTPS and changes yard server example URL to HTTPS.
docs/WhatsNew.md Updates various links to HTTPS and changes yard server default URL to HTTPS.
docs/Tags.md Updates yardoc.org/types link to HTTPS (and removes trailing blank line).
docs/GettingStarted.md Updates multiple reference/example URLs to HTTPS.
CONTRIBUTING.md Updates contributor reference links to HTTPS.
CHANGELOG.md Updates tadpole link to HTTPS.
spec/templates/tag_spec.rb Updates @see URL examples to HTTPS.
spec/templates/markup_processor_integrations/markdown_spec.rb Updates autolink expectation to HTTPS.
spec/templates/helpers/markup/rdoc_markup_spec.rb Updates href example to HTTPS.
spec/templates/helpers/html_syntax_highlight_helper_spec.rb Updates URL in syntax highlight expectation to HTTPS.
spec/templates/helpers/html_helper_spec.rb Updates various link expectations to HTTPS (introduces a duplicated “https” wording and duplicate assertion).
spec/templates/helpers/base_helper_spec.rb Updates URL scheme expectations to HTTPS.
spec/templates/examples/tag001.txt Updates fixture URLs to HTTPS.
spec/templates/examples/class001.txt Updates fixture URLs to HTTPS.
spec/templates/examples/class001.html Updates fixture URLs to HTTPS.
spec/templates/class_spec.rb Updates @see URL example to HTTPS.
spec/tags/library_spec.rb Updates URL parsing expectations to HTTPS.
spec/spec_helper.rb Updates RSpec reference links in comments to HTTPS.
spec/parser/examples/array.c.txt Updates embedded reference links to HTTPS.
spec/cli/diff_spec.rb Updates expected rubygems download URLs to HTTPS.
po/ja.po Updates many embedded URLs to HTTPS (also changes yard server default URL and contains a gist-id mismatch between msgid/msgstr).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 1 to +3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

Copilot AI Apr 9, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The XHTML namespace URI should remain http://www.w3.org/1999/xhtml. Changing xmlns to an https URL changes the document namespace and can break XHTML tooling/validation and consumers that expect the standard XHTML namespace.

Copilot uses AI. Check for mistakes.
Comment on lines 1 to +3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

Copilot AI Apr 9, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The XHTML namespace URI should remain http://www.w3.org/1999/xhtml. Switching the xmlns attribute to https://... changes the namespace (it’s an identifier, not a fetch URL) and can break XHTML consumers/validation.

Copilot uses AI. Check for mistakes.
Comment on lines 1 to +3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

Copilot AI Apr 9, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The XHTML namespace URI should remain http://www.w3.org/1999/xhtml. Updating the xmlns value to https://... changes the namespace and can break XHTML validation/consumers.

Copilot uses AI. Check for mistakes.
Comment thread lib/yard/server/rack_adapter.rb Outdated
Comment thread README.md Outdated
Comment thread docs/WhatsNew.md Outdated
Comment thread po/ja.po Outdated
Comment on lines +8233 to +8241
msgid ""
"The new `yard server` command spawns a documentation server that can serve\n"
"either documentation for a local project or installed RubyGems. The server\n"
"will host (by default) on http://localhost:8808."
"will host (by default) on https://localhost:8808."
msgstr ""
"新しい`yard server`コマンドは\n"
"ローカルプロジェクトや既存のRubyGems用の全てのドキュメントを提供できる\n"
"ドキュメントサーバーを生みだす。\n"
"サーバーはhttp://localhost:8808のホスト(デフォルトで)になる。"
"サーバーはhttps://localhost:8808のホスト(デフォルトで)になる。"

Copilot AI Apr 9, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The translated strings now state the default yard server URL is https://localhost:8808, but the server is plain HTTP by default. This should remain http://localhost:8808 (or be reworded to indicate HTTPS only applies with external TLS).

Copilot uses AI. Check for mistakes.
Comment thread spec/templates/helpers/html_helper_spec.rb Outdated
Comment thread spec/templates/helpers/html_helper_spec.rb Outdated
Comment thread po/ja.po
Comment on lines 14322 to +14327
# @note
#: ../lib/yard/code_objects/proxy.rb:218
msgid "this method fixes a bug in 1.9.2: http://gist.github.com/437136"
msgid "this method fixes a bug in 1.9.2: https://gist.github.com/437136"
msgstr ""
"このメソッドはバグを修正する。\n"
"(in 1.9.2: http://gist.github.com/4371369)"
"(in 1.9.2: https://gist.github.com/4371369)"

Copilot AI Apr 9, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The msgid URL (https://gist.github.com/437136) and the msgstr URL (https://gist.github.com/4371369) now disagree. This looks like a typo in one of the gist IDs; they should refer to the same URL so translations don’t diverge unexpectedly.

Copilot uses AI. Check for mistakes.
lsegal and others added 5 commits April 9, 2026 11:02
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@lsegal
lsegal merged commit c64104b into main Apr 9, 2026
28 of 48 checks passed
@lsegal
lsegal deleted the rewrite-http-https branch April 9, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants