githubris 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +1 -0
- data/Rakefile +7 -0
- data/features/get_a_user.feature +8 -0
- data/features/list_of_public_gists.feature +4 -4
- data/features/list_of_users_public_gists.feature +2 -3
- data/features/step_definitions/general_steps.rb +5 -6
- data/features/support/env.rb +1 -1
- data/features/support/fakeweb_responses.rb +5 -1
- data/features/support/fixtures.rb +26 -2
- data/lib/githubris/api/gist.rb +31 -0
- data/lib/githubris/api/user.rb +15 -0
- data/lib/githubris/api.rb +7 -29
- data/lib/githubris/builder/gist.rb +16 -0
- data/lib/githubris/builder/user.rb +15 -0
- data/lib/githubris/builder.rb +10 -30
- data/lib/githubris/gist.rb +54 -43
- data/lib/githubris/user.rb +32 -6
- data/lib/githubris/version.rb +1 -1
- data/lib/githubris.rb +3 -3
- data/spec/githubris/api/gist_spec.rb +66 -0
- data/spec/githubris/api/user_spec.rb +18 -0
- data/spec/githubris/api_spec.rb +0 -24
- data/spec/githubris/builder/gist_spec.rb +38 -0
- data/spec/githubris/builder_spec.rb +8 -50
- data/spec/githubris/gist_spec.rb +65 -18
- data/spec/githubris/user_spec.rb +24 -0
- data/spec/support/fakeweb_responses.rb +4 -0
- data/spec/support/fixtures.rb +17 -630
- data/spec/support/user.json +14 -0
- data/spec/support/user_public_gists.json +65 -0
- metadata +15 -7
- data/features/step_definitions/public_gist_steps.rb +0 -0
- data/features/support/public_gists_page_1.json +0 -884
- data/features/support/public_gists_page_2.json +0 -898
data/spec/support/fixtures.rb
CHANGED
@@ -30,510 +30,6 @@ class Githubris
|
|
30
30
|
"html_url" => "https://gist.github.com/36",
|
31
31
|
"git_pull_url" => "git://gist.github.com/36.git"
|
32
32
|
},
|
33
|
-
{
|
34
|
-
"created_at" => "2008-07-20T20:45:02Z",
|
35
|
-
"git_push_url" => "git@gist.github.com:32.git",
|
36
|
-
"user" => {
|
37
|
-
"avatar_url" => "https://secure.gravatar.com/avatar/475c86053fa6468162475a75ee648469?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
38
|
-
"url" => "https://api.github.com/users/imagetic",
|
39
|
-
"gravatar_id" => "475c86053fa6468162475a75ee648469",
|
40
|
-
"id" => 2657,
|
41
|
-
"login" => "imagetic"
|
42
|
-
},
|
43
|
-
"public" => true,
|
44
|
-
"url" => "https://api.github.com/gists/32",
|
45
|
-
"description" => nil,
|
46
|
-
"updated_at" => "2009-10-14T10:23:20Z",
|
47
|
-
"comments" => 0,
|
48
|
-
"files" => {
|
49
|
-
"gistfile1.txt" => {
|
50
|
-
"type" => "text/plain",
|
51
|
-
"filename" => "gistfile1.txt",
|
52
|
-
"language" => "Text",
|
53
|
-
"raw_url" => "https://gist.github.com/raw/32/96c906756d7b91c45322617c9295e4a80d52d1c5/gistfile1.txt",
|
54
|
-
"size" => 7
|
55
|
-
}
|
56
|
-
},
|
57
|
-
"id" => "32",
|
58
|
-
"html_url" => "https://gist.github.com/32",
|
59
|
-
"git_pull_url" => "git://gist.github.com/32.git"
|
60
|
-
},
|
61
|
-
{
|
62
|
-
"created_at" => "2008-07-20T20:38:09Z",
|
63
|
-
"git_push_url" => "git@gist.github.com:29.git",
|
64
|
-
"user" => {
|
65
|
-
"avatar_url" => "https://secure.gravatar.com/avatar/72d5f419e4a520ff4fe452400eac83d4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
66
|
-
"url" => "https://api.github.com/users/Sutto",
|
67
|
-
"gravatar_id" => "72d5f419e4a520ff4fe452400eac83d4",
|
68
|
-
"id" => 553,
|
69
|
-
"login" => "Sutto"
|
70
|
-
},
|
71
|
-
"public" => true,
|
72
|
-
"url" => "https://api.github.com/gists/29",
|
73
|
-
"description" => "undefined",
|
74
|
-
"updated_at" => "2009-10-14T10:23:19Z",
|
75
|
-
"comments" => 0,
|
76
|
-
"files" => {
|
77
|
-
"gistfile1.txt" => {
|
78
|
-
"type" => "text/plain",
|
79
|
-
"filename" => "gistfile1.txt",
|
80
|
-
"language" => "Text",
|
81
|
-
"raw_url" => "https://gist.github.com/raw/29/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391/gistfile1.txt",
|
82
|
-
"size" => 0
|
83
|
-
},
|
84
|
-
"gistfile2.txt" => {
|
85
|
-
"type" => "text/plain",
|
86
|
-
"filename" => "gistfile2.txt",
|
87
|
-
"language" => "Text",
|
88
|
-
"raw_url" => "https://gist.github.com/raw/29/e69de29bb2d1d6434b8b29ae775ad8c2e48c5391/gistfile2.txt",
|
89
|
-
"size" => 0
|
90
|
-
}
|
91
|
-
},
|
92
|
-
"id" => "29",
|
93
|
-
"html_url" => "https://gist.github.com/29",
|
94
|
-
"git_pull_url" => "git://gist.github.com/29.git"
|
95
|
-
},
|
96
|
-
{
|
97
|
-
"created_at" => "2008-07-20T20:37:43Z",
|
98
|
-
"git_push_url" => "git@gist.github.com:28.git",
|
99
|
-
"user" => {
|
100
|
-
"avatar_url" => "https://secure.gravatar.com/avatar/ba4b0b302231bffb0f685bbef25db0d6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
101
|
-
"url" => "https://api.github.com/users/bryanl",
|
102
|
-
"gravatar_id" => "ba4b0b302231bffb0f685bbef25db0d6",
|
103
|
-
"id" => 240,
|
104
|
-
"login" => "bryanl"
|
105
|
-
},
|
106
|
-
"public" => true,
|
107
|
-
"url" => "https://api.github.com/gists/28",
|
108
|
-
"description" => nil,
|
109
|
-
"updated_at" => "2009-10-14T10:23:19Z",
|
110
|
-
"comments" => 0,
|
111
|
-
"files" => {
|
112
|
-
"foo.txt" => {
|
113
|
-
"type" => "text/plain",
|
114
|
-
"filename" => "foo.txt",
|
115
|
-
"language" => "Text",
|
116
|
-
"raw_url" => "https://gist.github.com/raw/28/19102815663d23f8b75a47e7a01965dcdc96468c/foo.txt",
|
117
|
-
"size" => 3
|
118
|
-
},
|
119
|
-
"main.rb" => {
|
120
|
-
"type" => "application/ruby",
|
121
|
-
"filename" => "main.rb",
|
122
|
-
"language" => "Ruby",
|
123
|
-
"raw_url" => "https://gist.github.com/raw/28/cbe3e2a4cdb4d16a2ad84255ddb37aa7fac8e1e8/main.rb",
|
124
|
-
"size" => 15
|
125
|
-
}
|
126
|
-
},
|
127
|
-
"id" => "28",
|
128
|
-
"html_url" => "https://gist.github.com/28",
|
129
|
-
"git_pull_url" => "git://gist.github.com/28.git"
|
130
|
-
},
|
131
|
-
{
|
132
|
-
"created_at" => "2008-07-20T20:32:38Z",
|
133
|
-
"git_push_url" => "git@gist.github.com:26.git",
|
134
|
-
"user" => {
|
135
|
-
"avatar_url" => "https://secure.gravatar.com/avatar/835294a2661ef37b591e5618e5a7b4b2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
136
|
-
"url" => "https://api.github.com/users/toretore",
|
137
|
-
"gravatar_id" => "835294a2661ef37b591e5618e5a7b4b2",
|
138
|
-
"id" => 251,
|
139
|
-
"login" => "toretore"
|
140
|
-
},
|
141
|
-
"public" => true,
|
142
|
-
"url" => "https://api.github.com/gists/26",
|
143
|
-
"description" => "werwer",
|
144
|
-
"updated_at" => "2009-10-14T10:23:18Z",
|
145
|
-
"comments" => 0,
|
146
|
-
"files" => {
|
147
|
-
"hoopla" => {
|
148
|
-
"type" => "text/plain",
|
149
|
-
"filename" => "hoopla",
|
150
|
-
"language" => nil,
|
151
|
-
"raw_url" => "https://gist.github.com/raw/26/10ba93737e253d5b167253e657719e5af0ac9ffb/hoopla",
|
152
|
-
"size" => 18
|
153
|
-
},
|
154
|
-
"donkey" => {
|
155
|
-
"type" => "text/plain",
|
156
|
-
"filename" => "donkey",
|
157
|
-
"language" => nil,
|
158
|
-
"raw_url" => "https://gist.github.com/raw/26/d82ad3abe2dc2eef194796c18c9ee9edfc0d8601/donkey",
|
159
|
-
"size" => 20
|
160
|
-
}
|
161
|
-
},
|
162
|
-
"id" => "26",
|
163
|
-
"html_url" => "https://gist.github.com/26",
|
164
|
-
"git_pull_url" => "git://gist.github.com/26.git"
|
165
|
-
},
|
166
|
-
{
|
167
|
-
"created_at" => "2008-07-20T20:28:53Z",
|
168
|
-
"git_push_url" => "git@gist.github.com:24.git",
|
169
|
-
"user" => {
|
170
|
-
"avatar_url" => "https://secure.gravatar.com/avatar/70ca58d0e0e0eabbdb74d177417d09d7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
171
|
-
"url" => "https://api.github.com/users/augustl",
|
172
|
-
"gravatar_id" => "70ca58d0e0e0eabbdb74d177417d09d7",
|
173
|
-
"id" => 375,
|
174
|
-
"login" => "augustl"
|
175
|
-
},
|
176
|
-
"public" => true,
|
177
|
-
"url" => "https://api.github.com/gists/24",
|
178
|
-
"description" => "Obj-c header file for cocoa app",
|
179
|
-
"updated_at" => "2009-10-14T10:23:18Z",
|
180
|
-
"comments" => 0,
|
181
|
-
"files" => {
|
182
|
-
"Stog_pokazivac.h" => {
|
183
|
-
"type" => "text/plain",
|
184
|
-
"filename" => "Stog_pokazivac.h",
|
185
|
-
"language" => "C",
|
186
|
-
"raw_url" => "https://gist.github.com/raw/24/e88e2eec89fe1301a5e28c8b4e91daabaac456de/Stog_pokazivac.h",
|
187
|
-
"size" => 961
|
188
|
-
},
|
189
|
-
"Glavni program" => {
|
190
|
-
"type" => "text/plain",
|
191
|
-
"filename" => "Glavni program",
|
192
|
-
"language" => nil,
|
193
|
-
"raw_url" => "https://gist.github.com/raw/24/d2a3aaf43a81ff95fafb14148e7a0a39d6f2dd56/Glavni program",
|
194
|
-
"size" => 4767
|
195
|
-
},
|
196
|
-
"Stog_polje.h" => {
|
197
|
-
"type" => "text/plain",
|
198
|
-
"filename" => "Stog_polje.h",
|
199
|
-
"language" => "C",
|
200
|
-
"raw_url" => "https://gist.github.com/raw/24/237e2828b07533385f02fc844415c6fa8a355545/Stog_polje.h",
|
201
|
-
"size" => 1104
|
202
|
-
}
|
203
|
-
},
|
204
|
-
"id" => "24",
|
205
|
-
"html_url" => "https://gist.github.com/24",
|
206
|
-
"git_pull_url" => "git://gist.github.com/24.git"
|
207
|
-
},
|
208
|
-
{
|
209
|
-
"created_at" => "2008-07-20T20:25:48Z",
|
210
|
-
"git_push_url" => "git@gist.github.com:23.git",
|
211
|
-
"user" => {
|
212
|
-
"avatar_url" => "https://secure.gravatar.com/avatar/ba4b0b302231bffb0f685bbef25db0d6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
213
|
-
"url" => "https://api.github.com/users/bryanl",
|
214
|
-
"gravatar_id" => "ba4b0b302231bffb0f685bbef25db0d6",
|
215
|
-
"id" => 240,
|
216
|
-
"login" => "bryanl"
|
217
|
-
},
|
218
|
-
"public" => true,
|
219
|
-
"url" => "https://api.github.com/gists/23",
|
220
|
-
"description" => nil,
|
221
|
-
"updated_at" => "2009-10-14T10:23:18Z",
|
222
|
-
"comments" => 0,
|
223
|
-
"files" => {
|
224
|
-
"gistfile1.sh" => {
|
225
|
-
"type" => "application/sh",
|
226
|
-
"filename" => "gistfile1.sh",
|
227
|
-
"language" => "Shell",
|
228
|
-
"raw_url" => "https://gist.github.com/raw/23/3ebf249784700edf8b2ffc6a91c4f94747da2c8c/gistfile1.sh",
|
229
|
-
"size" => 367
|
230
|
-
}
|
231
|
-
},
|
232
|
-
"id" => "23",
|
233
|
-
"html_url" => "https://gist.github.com/23",
|
234
|
-
"git_pull_url" => "git://gist.github.com/23.git"
|
235
|
-
},
|
236
|
-
{
|
237
|
-
"created_at" => "2008-07-20T20:22:26Z",
|
238
|
-
"git_push_url" => "git@gist.github.com:22.git",
|
239
|
-
"user" => {
|
240
|
-
"avatar_url" => "https://secure.gravatar.com/avatar/25c7c18223fb42a4c6ae1c8db6f50f9b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
241
|
-
"url" => "https://api.github.com/users/mojombo",
|
242
|
-
"gravatar_id" => "25c7c18223fb42a4c6ae1c8db6f50f9b",
|
243
|
-
"id" => 1,
|
244
|
-
"login" => "mojombo"
|
245
|
-
},
|
246
|
-
"public" => true,
|
247
|
-
"url" => "https://api.github.com/gists/22",
|
248
|
-
"description" => nil,
|
249
|
-
"updated_at" => "2009-10-14T10:23:17Z",
|
250
|
-
"comments" => 0,
|
251
|
-
"files" => {
|
252
|
-
"wtf.rb" => {
|
253
|
-
"type" => "application/ruby",
|
254
|
-
"filename" => "wtf.rb",
|
255
|
-
"language" => "Ruby",
|
256
|
-
"raw_url" => "https://gist.github.com/raw/22/07e49f1317c182b48f8eca4f36c88ced7aa291e5/wtf.rb",
|
257
|
-
"size" => 109
|
258
|
-
},
|
259
|
-
"README" => {
|
260
|
-
"type" => "text/plain",
|
261
|
-
"filename" => "README",
|
262
|
-
"language" => nil,
|
263
|
-
"raw_url" => "https://gist.github.com/raw/22/82cfc9f2bd412068876c64e94cd54f89135da58d/README",
|
264
|
-
"size" => 23
|
265
|
-
}
|
266
|
-
},
|
267
|
-
"id" => "22",
|
268
|
-
"html_url" => "https://gist.github.com/22",
|
269
|
-
"git_pull_url" => "git://gist.github.com/22.git"
|
270
|
-
},
|
271
|
-
{
|
272
|
-
"created_at" => "2008-07-20T19:17:51Z",
|
273
|
-
"git_push_url" => "git@gist.github.com:21.git",
|
274
|
-
"user" => {
|
275
|
-
"avatar_url" => "https://secure.gravatar.com/avatar/25c7c18223fb42a4c6ae1c8db6f50f9b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
276
|
-
"url" => "https://api.github.com/users/mojombo",
|
277
|
-
"gravatar_id" => "25c7c18223fb42a4c6ae1c8db6f50f9b",
|
278
|
-
"id" => 1,
|
279
|
-
"login" => "mojombo"
|
280
|
-
},
|
281
|
-
"public" => true,
|
282
|
-
"url" => "https://api.github.com/gists/21",
|
283
|
-
"description" => nil,
|
284
|
-
"updated_at" => "2009-10-14T10:23:17Z",
|
285
|
-
"comments" => 0,
|
286
|
-
"files" => {
|
287
|
-
"gistfile1.sh" => {
|
288
|
-
"type" => "application/sh",
|
289
|
-
"filename" => "gistfile1.sh",
|
290
|
-
"language" => "Shell",
|
291
|
-
"raw_url" => "https://gist.github.com/raw/21/3ebf249784700edf8b2ffc6a91c4f94747da2c8c/gistfile1.sh",
|
292
|
-
"size" => 367
|
293
|
-
}
|
294
|
-
},
|
295
|
-
"id" => "21",
|
296
|
-
"html_url" => "https://gist.github.com/21",
|
297
|
-
"git_pull_url" => "git://gist.github.com/21.git"
|
298
|
-
},
|
299
|
-
{
|
300
|
-
"created_at" => "2008-07-20T19:17:32Z",
|
301
|
-
"git_push_url" => "git@gist.github.com:20.git",
|
302
|
-
"user" => {
|
303
|
-
"avatar_url" => "https://secure.gravatar.com/avatar/9375a9529679f1b42b567a640d775e7d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
304
|
-
"url" => "https://api.github.com/users/schacon",
|
305
|
-
"gravatar_id" => "9375a9529679f1b42b567a640d775e7d",
|
306
|
-
"id" => 70,
|
307
|
-
"login" => "schacon"
|
308
|
-
},
|
309
|
-
"public" => true,
|
310
|
-
"url" => "https://api.github.com/gists/20",
|
311
|
-
"description" => nil,
|
312
|
-
"updated_at" => "2009-10-14T10:23:17Z",
|
313
|
-
"comments" => 1,
|
314
|
-
"files" => {
|
315
|
-
"gistfile1.txt" => {
|
316
|
-
"type" => "text/plain",
|
317
|
-
"filename" => "gistfile1.txt",
|
318
|
-
"language" => "Text",
|
319
|
-
"raw_url" => "https://gist.github.com/raw/20/55b04df199986ffb74bef75cbdb89ffd23c800ab/gistfile1.txt",
|
320
|
-
"size" => 10
|
321
|
-
}
|
322
|
-
},
|
323
|
-
"id" => "20",
|
324
|
-
"html_url" => "https://gist.github.com/20",
|
325
|
-
"git_pull_url" => "git://gist.github.com/20.git"
|
326
|
-
},
|
327
|
-
{
|
328
|
-
"created_at" => "2008-07-20T15:20:41Z",
|
329
|
-
"git_push_url" => "git@gist.github.com:19.git",
|
330
|
-
"user" => {
|
331
|
-
"avatar_url" => "https://secure.gravatar.com/avatar/25c7c18223fb42a4c6ae1c8db6f50f9b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
332
|
-
"url" => "https://api.github.com/users/mojombo",
|
333
|
-
"gravatar_id" => "25c7c18223fb42a4c6ae1c8db6f50f9b",
|
334
|
-
"id" => 1,
|
335
|
-
"login" => "mojombo"
|
336
|
-
},
|
337
|
-
"public" => true,
|
338
|
-
"url" => "https://api.github.com/gists/19",
|
339
|
-
"description" => nil,
|
340
|
-
"updated_at" => "2009-10-14T10:23:17Z",
|
341
|
-
"comments" => 0,
|
342
|
-
"files" => {
|
343
|
-
"wtf.rb" => {
|
344
|
-
"type" => "application/ruby",
|
345
|
-
"filename" => "wtf.rb",
|
346
|
-
"language" => "Ruby",
|
347
|
-
"raw_url" => "https://gist.github.com/raw/19/bfa7cab0da2a7b594f152f409c5d2fa731278646/wtf.rb",
|
348
|
-
"size" => 94
|
349
|
-
}
|
350
|
-
},
|
351
|
-
"id" => "19",
|
352
|
-
"html_url" => "https://gist.github.com/19",
|
353
|
-
"git_pull_url" => "git://gist.github.com/19.git"
|
354
|
-
},
|
355
|
-
{
|
356
|
-
"created_at" => "2008-07-17T23:59:50Z",
|
357
|
-
"git_push_url" => "git@gist.github.com:18.git",
|
358
|
-
"user" => {
|
359
|
-
"avatar_url" => "https://secure.gravatar.com/avatar/c9de495d747e1986d754909f16dfb201?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
360
|
-
"url" => "https://api.github.com/users/dennisjbell",
|
361
|
-
"gravatar_id" => "c9de495d747e1986d754909f16dfb201",
|
362
|
-
"id" => 20423,
|
363
|
-
"login" => "dennisjbell"
|
364
|
-
},
|
365
|
-
"public" => true,
|
366
|
-
"url" => "https://api.github.com/gists/18",
|
367
|
-
"description" => nil,
|
368
|
-
"updated_at" => "2009-10-14T10:23:17Z",
|
369
|
-
"comments" => 0,
|
370
|
-
"files" => {
|
371
|
-
"gistfile1.txt" => {
|
372
|
-
"type" => "text/plain",
|
373
|
-
"filename" => "gistfile1.txt",
|
374
|
-
"language" => "Text",
|
375
|
-
"raw_url" => "https://gist.github.com/raw/18/38424e00cfff407e21356ed9e8ceaa699d40b040/gistfile1.txt",
|
376
|
-
"size" => 19
|
377
|
-
}
|
378
|
-
},
|
379
|
-
"id" => "18",
|
380
|
-
"html_url" => "https://gist.github.com/18",
|
381
|
-
"git_pull_url" => "git://gist.github.com/18.git"
|
382
|
-
},
|
383
|
-
{
|
384
|
-
"created_at" => "2008-07-17T20:38:18Z",
|
385
|
-
"git_push_url" => "git@gist.github.com:16.git",
|
386
|
-
"user" => {
|
387
|
-
"avatar_url" => "https://secure.gravatar.com/avatar/d7086618cc7fae537ede347a769b8990?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
388
|
-
"url" => "https://api.github.com/users/lansing",
|
389
|
-
"gravatar_id" => "d7086618cc7fae537ede347a769b8990",
|
390
|
-
"id" => 4175,
|
391
|
-
"login" => "lansing"
|
392
|
-
},
|
393
|
-
"public" => true,
|
394
|
-
"url" => "https://api.github.com/gists/16",
|
395
|
-
"description" => nil,
|
396
|
-
"updated_at" => "2009-10-14T10:23:16Z",
|
397
|
-
"comments" => 0,
|
398
|
-
"files" => {
|
399
|
-
"gistfile1.m" => {
|
400
|
-
"type" => "text/plain",
|
401
|
-
"filename" => "gistfile1.m",
|
402
|
-
"language" => "Objective-C",
|
403
|
-
"raw_url" => "https://gist.github.com/raw/16/b0c80e7db238ae033de37038f0f34b5662949d63/gistfile1.m",
|
404
|
-
"size" => 376
|
405
|
-
}
|
406
|
-
},
|
407
|
-
"id" => "16",
|
408
|
-
"html_url" => "https://gist.github.com/16",
|
409
|
-
"git_pull_url" => "git://gist.github.com/16.git"
|
410
|
-
},
|
411
|
-
{
|
412
|
-
"created_at" => "2008-07-17T20:37:38Z",
|
413
|
-
"git_push_url" => "git@gist.github.com:15.git",
|
414
|
-
"user" => {
|
415
|
-
"avatar_url" => "https://secure.gravatar.com/avatar/25c7c18223fb42a4c6ae1c8db6f50f9b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
416
|
-
"url" => "https://api.github.com/users/mojombo",
|
417
|
-
"gravatar_id" => "25c7c18223fb42a4c6ae1c8db6f50f9b",
|
418
|
-
"id" => 1,
|
419
|
-
"login" => "mojombo"
|
420
|
-
},
|
421
|
-
"public" => true,
|
422
|
-
"url" => "https://api.github.com/gists/15",
|
423
|
-
"description" => nil,
|
424
|
-
"updated_at" => "2009-10-14T10:23:16Z",
|
425
|
-
"comments" => 0,
|
426
|
-
"files" => {
|
427
|
-
"Stog_pokazivac.h" => {
|
428
|
-
"type" => "text/plain",
|
429
|
-
"filename" => "Stog_pokazivac.h",
|
430
|
-
"language" => "C",
|
431
|
-
"raw_url" => "https://gist.github.com/raw/15/e88e2eec89fe1301a5e28c8b4e91daabaac456de/Stog_pokazivac.h",
|
432
|
-
"size" => 961
|
433
|
-
},
|
434
|
-
"Glavni program" => {
|
435
|
-
"type" => "text/plain",
|
436
|
-
"filename" => "Glavni program",
|
437
|
-
"language" => nil,
|
438
|
-
"raw_url" => "https://gist.github.com/raw/15/d2a3aaf43a81ff95fafb14148e7a0a39d6f2dd56/Glavni program",
|
439
|
-
"size" => 4767
|
440
|
-
},
|
441
|
-
"Stog_polje.h" => {
|
442
|
-
"type" => "text/plain",
|
443
|
-
"filename" => "Stog_polje.h",
|
444
|
-
"language" => "C",
|
445
|
-
"raw_url" => "https://gist.github.com/raw/15/237e2828b07533385f02fc844415c6fa8a355545/Stog_polje.h",
|
446
|
-
"size" => 1104
|
447
|
-
}
|
448
|
-
},
|
449
|
-
"id" => "15",
|
450
|
-
"html_url" => "https://gist.github.com/15",
|
451
|
-
"git_pull_url" => "git://gist.github.com/15.git"
|
452
|
-
},
|
453
|
-
{
|
454
|
-
"created_at" => "2008-07-17T20:27:24Z",
|
455
|
-
"git_push_url" => "git@gist.github.com:14.git",
|
456
|
-
"user" => {
|
457
|
-
"avatar_url" => "https://secure.gravatar.com/avatar/4e85af59fc5cabbec1a59fd7e25c1d5b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
458
|
-
"url" => "https://api.github.com/users/takeo",
|
459
|
-
"gravatar_id" => "4e85af59fc5cabbec1a59fd7e25c1d5b",
|
460
|
-
"id" => 23,
|
461
|
-
"login" => "takeo"
|
462
|
-
},
|
463
|
-
"public" => true,
|
464
|
-
"url" => "https://api.github.com/gists/14",
|
465
|
-
"description" => "the most beautiful code in the world",
|
466
|
-
"updated_at" => "2009-10-14T10:23:16Z",
|
467
|
-
"comments" => 0,
|
468
|
-
"files" => {
|
469
|
-
"gistfile1.txt" => {
|
470
|
-
"type" => "text/plain",
|
471
|
-
"filename" => "gistfile1.txt",
|
472
|
-
"language" => "Text",
|
473
|
-
"raw_url" => "https://gist.github.com/raw/14/f1ca9ebff67bead82f7037cc66142a1d8bd19e23/gistfile1.txt",
|
474
|
-
"size" => 6868
|
475
|
-
}
|
476
|
-
},
|
477
|
-
"id" => "14",
|
478
|
-
"html_url" => "https://gist.github.com/14",
|
479
|
-
"git_pull_url" => "git://gist.github.com/14.git"
|
480
|
-
},
|
481
|
-
{
|
482
|
-
"created_at" => "2008-07-17T17:43:04Z",
|
483
|
-
"git_push_url" => "git@gist.github.com:12.git",
|
484
|
-
"user" => {
|
485
|
-
"avatar_url" => "https://secure.gravatar.com/avatar/366472c969c9754ae2b8079e42fed1ca?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
486
|
-
"url" => "https://api.github.com/users/maddox",
|
487
|
-
"gravatar_id" => "366472c969c9754ae2b8079e42fed1ca",
|
488
|
-
"id" => 260,
|
489
|
-
"login" => "maddox"
|
490
|
-
},
|
491
|
-
"public" => true,
|
492
|
-
"url" => "https://api.github.com/gists/12",
|
493
|
-
"description" => nil,
|
494
|
-
"updated_at" => "2009-10-14T10:23:16Z",
|
495
|
-
"comments" => 0,
|
496
|
-
"files" => {
|
497
|
-
"gistfile1.txt" => {
|
498
|
-
"type" => "text/plain",
|
499
|
-
"filename" => "gistfile1.txt",
|
500
|
-
"language" => "Text",
|
501
|
-
"raw_url" => "https://gist.github.com/raw/12/36dc8cd9ec6530470e73907448d76454e48e1088/gistfile1.txt",
|
502
|
-
"size" => 6904
|
503
|
-
}
|
504
|
-
},
|
505
|
-
"id" => "12",
|
506
|
-
"html_url" => "https://gist.github.com/12",
|
507
|
-
"git_pull_url" => "git://gist.github.com/12.git"
|
508
|
-
},
|
509
|
-
{
|
510
|
-
"created_at" => "2008-07-17T09:04:19Z",
|
511
|
-
"git_push_url" => "git@gist.github.com:11.git",
|
512
|
-
"user" => {
|
513
|
-
"avatar_url" => "https://secure.gravatar.com/avatar/947c333c75de1dc54a711a400d575c8c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
514
|
-
"url" => "https://api.github.com/users/pjhyett",
|
515
|
-
"gravatar_id" => "947c333c75de1dc54a711a400d575c8c",
|
516
|
-
"id" => 3,
|
517
|
-
"login" => "pjhyett"
|
518
|
-
},
|
519
|
-
"public" => true,
|
520
|
-
"url" => "https://api.github.com/gists/11",
|
521
|
-
"description" => nil,
|
522
|
-
"updated_at" => "2009-10-14T10:23:15Z",
|
523
|
-
"comments" => 0,
|
524
|
-
"files" => {
|
525
|
-
"gistfile1.txt" => {
|
526
|
-
"type" => "text/plain",
|
527
|
-
"filename" => "gistfile1.txt",
|
528
|
-
"language" => "Text",
|
529
|
-
"raw_url" => "https://gist.github.com/raw/11/dbe7a952d8f2306bcca9cfab211f21f354414072/gistfile1.txt",
|
530
|
-
"size" => 2186
|
531
|
-
}
|
532
|
-
},
|
533
|
-
"id" => "11",
|
534
|
-
"html_url" => "https://gist.github.com/11",
|
535
|
-
"git_pull_url" => "git://gist.github.com/11.git"
|
536
|
-
},
|
537
33
|
{
|
538
34
|
"created_at" => "2008-07-17T09:01:22Z",
|
539
35
|
"git_push_url" => "git@gist.github.com:10.git",
|
@@ -561,132 +57,6 @@ class Githubris
|
|
561
57
|
"id" => "10",
|
562
58
|
"html_url" => "https://gist.github.com/10",
|
563
59
|
"git_pull_url" => "git://gist.github.com/10.git"
|
564
|
-
},
|
565
|
-
{
|
566
|
-
"created_at" => "2008-07-15T19:05:50Z",
|
567
|
-
"git_push_url" => "git@gist.github.com:7.git",
|
568
|
-
"user" => {
|
569
|
-
"avatar_url" => "https://secure.gravatar.com/avatar/947c333c75de1dc54a711a400d575c8c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
570
|
-
"url" => "https://api.github.com/users/pjhyett",
|
571
|
-
"gravatar_id" => "947c333c75de1dc54a711a400d575c8c",
|
572
|
-
"id" => 3,
|
573
|
-
"login" => "pjhyett"
|
574
|
-
},
|
575
|
-
"public" => true,
|
576
|
-
"url" => "https://api.github.com/gists/7",
|
577
|
-
"description" => nil,
|
578
|
-
"updated_at" => "2009-10-14T10:23:14Z",
|
579
|
-
"comments" => 0,
|
580
|
-
"files" => {
|
581
|
-
"Z2_stog_polje_isantala" => {
|
582
|
-
"type" => "text/plain",
|
583
|
-
"filename" => "Z2_stog_polje_isantala",
|
584
|
-
"language" => nil,
|
585
|
-
"raw_url" => "https://gist.github.com/raw/7/9c43a166b202257aca065bd8234f4e7c4d8e2509/Z2_stog_polje_isantala",
|
586
|
-
"size" => 878
|
587
|
-
}
|
588
|
-
},
|
589
|
-
"id" => "7",
|
590
|
-
"html_url" => "https://gist.github.com/7",
|
591
|
-
"git_pull_url" => "git://gist.github.com/7.git"
|
592
|
-
},
|
593
|
-
{
|
594
|
-
"created_at" => "2008-07-15T18:56:29Z",
|
595
|
-
"git_push_url" => "git@gist.github.com:6.git",
|
596
|
-
"user" => {
|
597
|
-
"avatar_url" => "https://secure.gravatar.com/avatar/366472c969c9754ae2b8079e42fed1ca?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
598
|
-
"url" => "https://api.github.com/users/maddox",
|
599
|
-
"gravatar_id" => "366472c969c9754ae2b8079e42fed1ca",
|
600
|
-
"id" => 260,
|
601
|
-
"login" => "maddox"
|
602
|
-
},
|
603
|
-
"public" => true,
|
604
|
-
"url" => "https://api.github.com/gists/6",
|
605
|
-
"description" => "undefined",
|
606
|
-
"updated_at" => "2009-10-14T10:23:14Z",
|
607
|
-
"comments" => 0,
|
608
|
-
"files" => {
|
609
|
-
"sick c0dez" => {
|
610
|
-
"type" => "text/plain",
|
611
|
-
"filename" => "sick c0dez",
|
612
|
-
"language" => nil,
|
613
|
-
"raw_url" => "https://gist.github.com/raw/6/ea6b45ddd8d5457d9938ddb56a948428c1c5b76c/sick c0dez",
|
614
|
-
"size" => 203
|
615
|
-
}
|
616
|
-
},
|
617
|
-
"id" => "6",
|
618
|
-
"html_url" => "https://gist.github.com/6",
|
619
|
-
"git_pull_url" => "git://gist.github.com/6.git"
|
620
|
-
},
|
621
|
-
{
|
622
|
-
"created_at" => "2008-07-15T18:55:58Z",
|
623
|
-
"git_push_url" => "git@gist.github.com:5.git",
|
624
|
-
"user" => {
|
625
|
-
"avatar_url" => "https://secure.gravatar.com/avatar/366472c969c9754ae2b8079e42fed1ca?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
626
|
-
"url" => "https://api.github.com/users/maddox",
|
627
|
-
"gravatar_id" => "366472c969c9754ae2b8079e42fed1ca",
|
628
|
-
"id" => 260,
|
629
|
-
"login" => "maddox"
|
630
|
-
},
|
631
|
-
"public" => true,
|
632
|
-
"url" => "https://api.github.com/gists/5",
|
633
|
-
"description" => nil,
|
634
|
-
"updated_at" => "2009-10-14T10:23:14Z",
|
635
|
-
"comments" => 0,
|
636
|
-
"files" => {
|
637
|
-
"automobili.cpp" => {
|
638
|
-
"type" => "text/plain",
|
639
|
-
"filename" => "automobili.cpp",
|
640
|
-
"language" => "C++",
|
641
|
-
"raw_url" => "https://gist.github.com/raw/5/c6375127e57ea10f61ce96baac8a619841f13c97/automobili.cpp",
|
642
|
-
"size" => 2807
|
643
|
-
},
|
644
|
-
"Zadatak 2" => {
|
645
|
-
"type" => "text/plain",
|
646
|
-
"filename" => "Zadatak 2",
|
647
|
-
"language" => nil,
|
648
|
-
"raw_url" => "https://gist.github.com/raw/5/282d4e18020171b1716996a4ca7946e196b41b88/Zadatak 2",
|
649
|
-
"size" => 798
|
650
|
-
},
|
651
|
-
"stog_pokazivac.h" => {
|
652
|
-
"type" => "text/plain",
|
653
|
-
"filename" => "stog_pokazivac.h",
|
654
|
-
"language" => "C",
|
655
|
-
"raw_url" => "https://gist.github.com/raw/5/6c786991f2ff98e5c12bfd4f740ec8f88f961eba/stog_pokazivac.h",
|
656
|
-
"size" => 934
|
657
|
-
}
|
658
|
-
},
|
659
|
-
"id" => "5",
|
660
|
-
"html_url" => "https://gist.github.com/5",
|
661
|
-
"git_pull_url" => "git://gist.github.com/5.git"
|
662
|
-
},
|
663
|
-
{
|
664
|
-
"created_at" => "2008-07-15T18:17:13Z",
|
665
|
-
"git_push_url" => "git@gist.github.com:1.git",
|
666
|
-
"user" => {
|
667
|
-
"avatar_url" => "https://secure.gravatar.com/avatar/9375a9529679f1b42b567a640d775e7d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
668
|
-
"url" => "https://api.github.com/users/schacon",
|
669
|
-
"gravatar_id" => "9375a9529679f1b42b567a640d775e7d",
|
670
|
-
"id" => 70,
|
671
|
-
"login" => "schacon"
|
672
|
-
},
|
673
|
-
"public" => true,
|
674
|
-
"url" => "https://api.github.com/gists/1",
|
675
|
-
"description" => "the meaning of gist",
|
676
|
-
"updated_at" => "2011-02-22T02:58:22Z",
|
677
|
-
"comments" => 5,
|
678
|
-
"files" => {
|
679
|
-
"gistfile1.txt" => {
|
680
|
-
"type" => "text/plain",
|
681
|
-
"filename" => "gistfile1.txt",
|
682
|
-
"language" => "Text",
|
683
|
-
"raw_url" => "https://gist.github.com/raw/1/9b2ac7c792209f19e157ddaf00f8946edc306a6b/gistfile1.txt",
|
684
|
-
"size" => 178
|
685
|
-
}
|
686
|
-
},
|
687
|
-
"id" => "1",
|
688
|
-
"html_url" => "https://gist.github.com/1",
|
689
|
-
"git_pull_url" => "git://gist.github.com/1.git"
|
690
60
|
}
|
691
61
|
]
|
692
62
|
end
|
@@ -721,5 +91,22 @@ class Githubris
|
|
721
91
|
"git_pull_url" => "git://gist.github.com/1.git"
|
722
92
|
}
|
723
93
|
end
|
94
|
+
|
95
|
+
def self.user_data
|
96
|
+
{
|
97
|
+
"public_gists" => 2,
|
98
|
+
"type" => "User",
|
99
|
+
"following" => 0,
|
100
|
+
"login" => "GithubrisTestUser",
|
101
|
+
"avatar_url" => "https://secure.gravatar.com/avatar/20de3fd01e285d14de84067c34ab74d2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
102
|
+
"public_repos" => 1,
|
103
|
+
"followers" => 0,
|
104
|
+
"html_url" => "https://github.com/GithubrisTestUser",
|
105
|
+
"url" => "https://api.github.com/users/GithubrisTestUser",
|
106
|
+
"created_at" => "2012-02-24T12:23:28Z",
|
107
|
+
"gravatar_id" => "20de3fd01e285d14de84067c34ab74d2",
|
108
|
+
"id" => 1469392
|
109
|
+
}
|
110
|
+
end
|
724
111
|
end
|
725
112
|
end
|