Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Update gist files hash to consistently key by filename#457

Merged
pengwynn merged 1 commit intogithub:masterfromwilkinsona:gist-files-hash
Mar 18, 2014
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletionslib/resources.rb
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1226,11 +1226,12 @@ def text_html(response, status, head = {})
}

GIST_FILE = {
"size" => 932,
"filename" => "ring.erl",
"raw_url" => "https://gist.githubusercontent.com/raw/365370/8c4d2d43d178df44f4c03a7f2ac0ff512853564e/ring.erl",
"type" => "text/plain",
"language" => "Erlang"
"ring.erl" => {
"size" => 932,
"raw_url" => "https://gist.githubusercontent.com/raw/365370/8c4d2d43d178df44f4c03a7f2ac0ff512853564e/ring.erl",
"type" => "text/plain",
"language" => "Erlang"
}
}

GIST = {
Expand All@@ -1241,7 +1242,7 @@ def text_html(response, status, head = {})
"description" => "description of gist",
"public" => true,
"user" => USER,
"files" =>{ "ring.erl" =>GIST_FILE },
"files" => GIST_FILE,
"comments" => 0,
"comments_url" => "https://api.github.com/gists/#{SecureRandom.hex(10)}/comments/",
"html_url" => "https://gist.github.com/1",
Expand All@@ -1252,7 +1253,7 @@ def text_html(response, status, head = {})
}

FULL_GIST = GIST.merge(GIST_FORKS).merge(GIST_HISTORY)
FULL_GIST["files"] = GIST_FILE.merge({'content' =>'contents of gist'})
FULL_GIST["files"] ={"ring.erl" =>GIST_FILE["ring.erl"].merge({"content" =>"contents of gist"})}

GIST_COMMENT = {
"id" => 1,
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp