WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

rubycentral/rubyforge-redirects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RubyForge redirects

A project to redirect broken rubyforge.org URLs still in the wild.

Background

Despite being taken offline in May 2014 there are still many rubyforge.org URLs in the wild. We believe that cool URIs don't change so have created this project to provide useful redirects for those old rubyforge.org URLs.

This is inspired by Tom Stuart's rubyforge-redirects project from in early 2015, and from James Mead's blog post in 2017.

Implementation

The current plan is to use Fastly's VCL to implement redirection at the edge for any rubyforge.org URLs we know about. All other requests fall through to a GitHub Pages hosted 404 page that explains how to contribute to these redirection rules. We configure Fastly to log requests to S3 so that we can additionally monitor requests for URLs that we should add redirects for.

The VCL snippets are in the config/ directory and are currently manually copied to Fastly using the web interface. We might consider automating this if doing it manually becomes too cumbersome.

See the setup doc for more detailed information about how this is currently configured.

Tests

We use Ruby to test that the Fastly configuration is working as expected.

bundle
ruby test/*.rb

The tests run against rubyforge.org by default but can be configured to run against a different domain by setting the DOMAIN environment variable. This allows the config to be tested against another Fastly config before updating the production rubyforge.org config.

Adding new redirects

We use the rubyforgery.org domain to test the Fastly config before making it live for rubyforge.org.

  • Add tests in fastly-config-test.rb
  • Add redirect config in match-project-redirects.vcl and match-subdomain-redirects.vcl
  • Manually apply the redirect config changes to the Fastly config for rubyforgery.org
  • Ensure all the tests pass

Contributing

The main thing we need help with is mapping old rubyforge.org URLs to their current location. If you can help with this then consider creating a pull request with relevant changes to the tests/fastly config, or creating an issue with the old and new URLs and we'll add the mapping to the config.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published