Skip to content

Commit d52a7a6

Browse files
spicycodeizuzak
authored andcommitted
Gist raw file URIs hosted on gist.githubusercontent.com
1 parent a10c044 commit d52a7a6

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
kind: change
3+
title: Gist raw file URI change
4+
created_at: 2014-02-21
5+
author_name: spicycode
6+
---
7+
8+
The raw host for all Gist files is changing immediately. This change was made to further isolate user content from trusted GitHub applications.
9+
The new host is ```https://gist.githubusercontent.com```. Existing URIs will redirect to the new host.

lib/resources.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ module Helpers
4242
:atmos => 'a86224d72ce21cd9f5bee6784d4b06c7',
4343
:kdaigle => 'dd18bb36fa5f06e45843ff8de33b793e',
4444
:gjtorikian => 'befd819b3fced8c6bd3dba7e633dd068',
45-
:izuzak => 'ff743b4cba28cc47ad65cb90212c1e51'
45+
:izuzak => 'ff743b4cba28cc47ad65cb90212c1e51',
46+
:spicycode => '7ce90d712fab09421b7f2cf955b9a4c8'
4647
}
4748

4849
DefaultTimeFormat = "%B %-d, %Y".freeze
@@ -1224,7 +1225,7 @@ def text_html(response, status, head = {})
12241225
GIST_FILE = {
12251226
"size" => 932,
12261227
"filename" => "ring.erl",
1227-
"raw_url" => "https://gist.github.com/raw/365370/8c4d2d43d178df44f4c03a7f2ac0ff512853564e/ring.erl",
1228+
"raw_url" => "https://gist.githubusercontent.com/raw/365370/8c4d2d43d178df44f4c03a7f2ac0ff512853564e/ring.erl",
12281229
"type" => "text/plain",
12291230
"language" => "Erlang"
12301231
}

0 commit comments

Comments
 (0)