There was an error while loading. Please reload this page.
2 parents 3eb05f4 + 41d28a5 commit 3dc622dCopy full SHA for 3dc622d
1 file changed
lib/resources.rb
@@ -1226,11 +1226,12 @@ def text_html(response, status, head = {})
1226
}
1227
1228
GIST_FILE = {
1229
- "size" => 932,
1230
- "filename" => "ring.erl",
1231
- "raw_url" => "https://gist.githubusercontent.com/raw/365370/8c4d2d43d178df44f4c03a7f2ac0ff512853564e/ring.erl",
1232
- "type" => "text/plain",
1233
- "language" => "Erlang"
+ "ring.erl" => {
+ "size" => 932,
+ "raw_url" => "https://gist.githubusercontent.com/raw/365370/8c4d2d43d178df44f4c03a7f2ac0ff512853564e/ring.erl",
+ "type" => "text/plain",
+ "language" => "Erlang"
1234
+ }
1235
1236
1237
GIST = {
@@ -1241,7 +1242,7 @@ def text_html(response, status, head = {})
1241
1242
"description" => "description of gist",
1243
"public" => true,
1244
"user" => USER,
- "files" => { "ring.erl" => GIST_FILE },
1245
+ "files" => GIST_FILE,
1246
"comments" => 0,
1247
"comments_url" => "https://api.github.com/gists/#{SecureRandom.hex(10)}/comments/",
1248
"html_url" => "https://gist.github.com/1",
@@ -1252,7 +1253,7 @@ def text_html(response, status, head = {})
1252
1253
1254
1255
FULL_GIST = GIST.merge(GIST_FORKS).merge(GIST_HISTORY)
- FULL_GIST["files"] = GIST_FILE.merge({'content' => 'contents of gist'})
1256
+ FULL_GIST["files"] = {"ring.erl" => GIST_FILE["ring.erl"].merge({"content" => "contents of gist"})}
1257
1258
GIST_COMMENT = {
1259
"id" => 1,
0 commit comments