Skip to content
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit b5c199e

Browse files
committed
Add a simpler PublicKey representation
1 parent a08588c commit b5c199e

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

lib/resources.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,15 @@ def text_html(response, status, head = {})
140140
}
141141
})
142142

143-
PUBLIC_KEY = {
144-
"url" => "https://api.github.com/user/keys/1",
143+
SIMPLE_PUBLIC_KEY = {
145144
"id" => 1,
146-
"title" => "octocat@octomac",
147-
"key" => "ssh-rsa AAA...",
145+
"key" => "ssh-rsa AAA..."
148146
}
149147

148+
PUBLIC_KEY = SIMPLE_PUBLIC_KEY.merge \
149+
"url" => "https://api.github.com/user/keys/1",
150+
"title" => "octocat@octomac"
151+
150152
SIMPLE_REPO = {
151153
"id" => 1296269,
152154
"owner" => USER,

0 commit comments

Comments
 (0)