[HTTPS-Everywhere] [PATCH] Add a rule for RubyGems.org.
katmagic
the.magical.kat at gmail.com
Sun Nov 28 16:27:51 PST 2010
Whoops, my rule broke docs.rubygems.org. The fix is below.
From da5d7e1348541d86c4bdd81e5d6072981a571ec4 Mon Sep 17 00:00:00 2001
From: katmagic <the.magical.kat at gmail.com>
Date: Sun, 28 Nov 2010 19:05:57 -0500
Subject: [PATCH] Fix RubyGems.org rule.
---
pending-rules/RubyGems.xml | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/pending-rules/RubyGems.xml b/pending-rules/RubyGems.xml
index e0562f7..b298ed5 100644
--- a/pending-rules/RubyGems.xml
+++ b/pending-rules/RubyGems.xml
@@ -1,7 +1,8 @@
<ruleset name="RubyGems.org">
<target host="rubygems.org" />
<rule
- from="^http://([\w\.]+\.)?rubygems\.org/"
- to="https://$1rubygems.org/"
+ from="^http://(www\.)?rubygems\.org/"
+ to="https://rubygems.org/"
/>
+ <securecookie host="^(www\.)?rubygems.org" name=".*" />
</ruleset>
--
1.7.3.2
On Sat, 2010-11-20 at 02:07 -0500, katmagic wrote:
> From 6a63b8e7ff29bf9f9fcca4a8c9ceaea275bc71b6 Mon Sep 17 00:00:00 2001
> From: katmagic <the.magical.kat at gmail.com>
> Date: Sat, 20 Nov 2010 01:56:40 -0500
> Subject: [PATCH] Add a rule for RubyGems.org.
>
> ---
> pending-rules/RubyGems.xml | 7 +++++++
> 1 files changed, 7 insertions(+), 0 deletions(-)
> create mode 100644 pending-rules/RubyGems.xml
>
> diff --git a/pending-rules/RubyGems.xml b/pending-rules/RubyGems.xml
> new file mode 100644
> index 0000000..e0562f7
> --- /dev/null
> +++ b/pending-rules/RubyGems.xml
> @@ -0,0 +1,7 @@
> +<ruleset name="RubyGems.org">
> + <target host="rubygems.org" />
> + <rule
> + from="^http://([\w\.]+\.)?rubygems\.org/"
> + to="https://$1rubygems.org/"
> + />
> +</ruleset>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.eff.org/pipermail/https-everywhere/attachments/20101128/d2cc4cdf/attachment.sig>
More information about the HTTPS-everywhere
mailing list