activegist 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/active_gist/attributes.rb +5 -1
- data/lib/active_gist/version.rb +1 -1
- data/spec/fixtures/gist_1_newer.json +449 -0
- data/spec/support/fakeweb.rb +1 -1
- metadata +111 -74
@@ -1,7 +1,7 @@
|
|
1
1
|
module ActiveGist::Attributes
|
2
2
|
GIST_ATTRIBUTES = %w(url id description public user files comments
|
3
3
|
html_url git_pull_url git_push_url created_at
|
4
|
-
forks history updated_at)
|
4
|
+
forks history updated_at comments_url)
|
5
5
|
|
6
6
|
def self.included(base) #:nodoc:
|
7
7
|
base.define_attribute_methods GIST_ATTRIBUTES
|
@@ -63,6 +63,10 @@ module ActiveGist::Attributes
|
|
63
63
|
def updated_at
|
64
64
|
@updated_at
|
65
65
|
end
|
66
|
+
|
67
|
+
def comments_url
|
68
|
+
@comments_url
|
69
|
+
end
|
66
70
|
|
67
71
|
def description=(descr)
|
68
72
|
description_will_change!
|
data/lib/active_gist/version.rb
CHANGED
@@ -0,0 +1,449 @@
|
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Server: nginx
|
3
|
+
Date: Thu, 01 Nov 2012 01:11:52 GMT
|
4
|
+
Content-Type: application/json; charset=utf-8
|
5
|
+
Connection: keep-alive
|
6
|
+
Status: 200 OK
|
7
|
+
X-Content-Type-Options: nosniff
|
8
|
+
ETag: "cde7efffbd98caf6565b0007217145ce"
|
9
|
+
X-GitHub-Media-Type: github.beta
|
10
|
+
Cache-Control: public, max-age=60, s-maxage=60
|
11
|
+
Vary: Accept
|
12
|
+
X-RateLimit-Remaining: 56
|
13
|
+
Last-Modified: Fri, 19 Oct 2012 15:05:56 GMT
|
14
|
+
X-RateLimit-Limit: 60
|
15
|
+
|
16
|
+
{
|
17
|
+
"git_pull_url": "git://gist.github.com/1.git",
|
18
|
+
"updated_at": "2011-02-22T02:58:22Z",
|
19
|
+
"files": {
|
20
|
+
"file1.txt": {
|
21
|
+
"type": "text/plain",
|
22
|
+
"filename": "file1.txt",
|
23
|
+
"content": "This is gist. \nThere are many like it, but this one is mine. \nIt is my life. \nI must master it as I must master my life. \nWithout me gist is useless. \nWithout gist, I am useless.",
|
24
|
+
"language": null,
|
25
|
+
"size": 178,
|
26
|
+
"raw_url": "https://gist.github.com/raw/1/9b2ac7c792209f19e157ddaf00f8946edc306a6b/gistfile1.txt"
|
27
|
+
},
|
28
|
+
"old_name.txt": {
|
29
|
+
"size": 932,
|
30
|
+
"filename": "old_name.txt",
|
31
|
+
"raw_url": "https://gist.github.com/raw/365370/8c4d2d43d178df44f4c03a7f2ac0ff512853564e/old_name.txt",
|
32
|
+
"content": "to be renamed"
|
33
|
+
},
|
34
|
+
"deleted.txt": {
|
35
|
+
"size": 932,
|
36
|
+
"filename": "deleted.txt",
|
37
|
+
"raw_url": "https://gist.github.com/raw/365370/8c4d2d43d178df44f4c03a7f2ac0ff512853564e/deleted.txt",
|
38
|
+
"content": "to be deleted"
|
39
|
+
}
|
40
|
+
},
|
41
|
+
"git_push_url": "git@gist.github.com:1.git",
|
42
|
+
"url": "https://api.github.com/gists/1",
|
43
|
+
"comments_url": "https://api.github.com/gists/1/comments",
|
44
|
+
"public": true,
|
45
|
+
"html_url": "https://gist.github.com/1",
|
46
|
+
"history": [
|
47
|
+
{
|
48
|
+
"url": "https://api.github.com/gists/1/3a641566d0a49014cea6f395e8be68c42b9e46d9",
|
49
|
+
"committed_at": "2011-02-22T02:58:22Z",
|
50
|
+
"version": "3a641566d0a49014cea6f395e8be68c42b9e46d9",
|
51
|
+
"user": {
|
52
|
+
"gravatar_id": "9375a9529679f1b42b567a640d775e7d",
|
53
|
+
"url": "https://api.github.com/users/schacon",
|
54
|
+
"avatar_url": "https://secure.gravatar.com/avatar/9375a9529679f1b42b567a640d775e7d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
55
|
+
"login": "schacon",
|
56
|
+
"id": 70
|
57
|
+
},
|
58
|
+
"change_status": {
|
59
|
+
"total": 7,
|
60
|
+
"deletions": 1,
|
61
|
+
"additions": 6
|
62
|
+
}
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"url": "https://api.github.com/gists/1/24c894e1ca5cefd36b3b6e914beb93a7068f6efb",
|
66
|
+
"committed_at": "2011-02-22T02:53:32Z",
|
67
|
+
"version": "24c894e1ca5cefd36b3b6e914beb93a7068f6efb",
|
68
|
+
"user": {
|
69
|
+
"gravatar_id": "9375a9529679f1b42b567a640d775e7d",
|
70
|
+
"url": "https://api.github.com/users/schacon",
|
71
|
+
"avatar_url": "https://secure.gravatar.com/avatar/9375a9529679f1b42b567a640d775e7d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
72
|
+
"login": "schacon",
|
73
|
+
"id": 70
|
74
|
+
},
|
75
|
+
"change_status": {
|
76
|
+
"total": 7,
|
77
|
+
"deletions": 6,
|
78
|
+
"additions": 1
|
79
|
+
}
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"url": "https://api.github.com/gists/1/0864db9cbe551088b2269128c5b5d145141f57ef",
|
83
|
+
"committed_at": "2008-07-15T18:17:27Z",
|
84
|
+
"version": "0864db9cbe551088b2269128c5b5d145141f57ef",
|
85
|
+
"user": {
|
86
|
+
"gravatar_id": "9375a9529679f1b42b567a640d775e7d",
|
87
|
+
"url": "https://api.github.com/users/schacon",
|
88
|
+
"avatar_url": "https://secure.gravatar.com/avatar/9375a9529679f1b42b567a640d775e7d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
89
|
+
"login": "schacon",
|
90
|
+
"id": 70
|
91
|
+
},
|
92
|
+
"change_status": {
|
93
|
+
"total": 7,
|
94
|
+
"deletions": 1,
|
95
|
+
"additions": 6
|
96
|
+
}
|
97
|
+
},
|
98
|
+
{
|
99
|
+
"url": "https://api.github.com/gists/1/8afc134bf14f8f56ed2e7234128490d9946e8c16",
|
100
|
+
"committed_at": "2008-07-15T18:17:14Z",
|
101
|
+
"version": "8afc134bf14f8f56ed2e7234128490d9946e8c16",
|
102
|
+
"user": {
|
103
|
+
"gravatar_id": "9375a9529679f1b42b567a640d775e7d",
|
104
|
+
"url": "https://api.github.com/users/schacon",
|
105
|
+
"avatar_url": "https://secure.gravatar.com/avatar/9375a9529679f1b42b567a640d775e7d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
106
|
+
"login": "schacon",
|
107
|
+
"id": 70
|
108
|
+
},
|
109
|
+
"change_status": {
|
110
|
+
"total": 1,
|
111
|
+
"deletions": 0,
|
112
|
+
"additions": 1
|
113
|
+
}
|
114
|
+
}
|
115
|
+
],
|
116
|
+
"comments": 9,
|
117
|
+
"created_at": "2008-07-15T18:17:13Z",
|
118
|
+
"user": {
|
119
|
+
"gravatar_id": "9375a9529679f1b42b567a640d775e7d",
|
120
|
+
"url": "https://api.github.com/users/schacon",
|
121
|
+
"avatar_url": "https://secure.gravatar.com/avatar/9375a9529679f1b42b567a640d775e7d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
122
|
+
"login": "schacon",
|
123
|
+
"id": 70
|
124
|
+
},
|
125
|
+
"id": "1",
|
126
|
+
"forks": [
|
127
|
+
{
|
128
|
+
"updated_at": "2009-10-14T10:23:33Z",
|
129
|
+
"url": "https://api.github.com/gists/95",
|
130
|
+
"created_at": "2008-07-21T20:15:46Z",
|
131
|
+
"user": {
|
132
|
+
"gravatar_id": "16ae5c2e160af3bdb60db447c092985d",
|
133
|
+
"url": "https://api.github.com/users/danielmorrison",
|
134
|
+
"avatar_url": "https://secure.gravatar.com/avatar/16ae5c2e160af3bdb60db447c092985d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
135
|
+
"login": "danielmorrison",
|
136
|
+
"id": 125
|
137
|
+
},
|
138
|
+
"id": "95"
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"updated_at": "2009-10-14T10:23:41Z",
|
142
|
+
"url": "https://api.github.com/gists/140",
|
143
|
+
"created_at": "2008-07-21T20:34:51Z",
|
144
|
+
"user": {
|
145
|
+
"gravatar_id": "4eac78fe7a7a607dcc097a0d6fd63690",
|
146
|
+
"url": "https://api.github.com/users/elliottcable",
|
147
|
+
"avatar_url": "https://secure.gravatar.com/avatar/4eac78fe7a7a607dcc097a0d6fd63690?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
148
|
+
"login": "elliottcable",
|
149
|
+
"id": 200
|
150
|
+
},
|
151
|
+
"id": "140"
|
152
|
+
},
|
153
|
+
{
|
154
|
+
"updated_at": "2009-10-14T10:24:01Z",
|
155
|
+
"url": "https://api.github.com/gists/248",
|
156
|
+
"created_at": "2008-07-21T21:13:11Z",
|
157
|
+
"user": {
|
158
|
+
"gravatar_id": "c69521d6e22fc0bbd69337ec8b1698df",
|
159
|
+
"url": "https://api.github.com/users/mattetti",
|
160
|
+
"avatar_url": "https://secure.gravatar.com/avatar/c69521d6e22fc0bbd69337ec8b1698df?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
161
|
+
"login": "mattetti",
|
162
|
+
"id": 113
|
163
|
+
},
|
164
|
+
"id": "248"
|
165
|
+
},
|
166
|
+
{
|
167
|
+
"updated_at": "2009-10-14T10:25:16Z",
|
168
|
+
"url": "https://api.github.com/gists/582",
|
169
|
+
"created_at": "2008-07-22T01:36:18Z",
|
170
|
+
"user": {
|
171
|
+
"gravatar_id": "b7964c02372a1218c65f4a679f9d78d5",
|
172
|
+
"url": "https://api.github.com/users/davidwparker",
|
173
|
+
"avatar_url": "https://secure.gravatar.com/avatar/b7964c02372a1218c65f4a679f9d78d5?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
174
|
+
"login": "davidwparker",
|
175
|
+
"id": 2379
|
176
|
+
},
|
177
|
+
"id": "582"
|
178
|
+
},
|
179
|
+
{
|
180
|
+
"updated_at": "2009-10-14T10:25:18Z",
|
181
|
+
"url": "https://api.github.com/gists/591",
|
182
|
+
"created_at": "2008-07-22T01:51:28Z",
|
183
|
+
"user": {
|
184
|
+
"gravatar_id": "6a2f7f7a997fab1dbf815d155cca50ee",
|
185
|
+
"url": "https://api.github.com/users/willcodeforfoo",
|
186
|
+
"avatar_url": "https://secure.gravatar.com/avatar/6a2f7f7a997fab1dbf815d155cca50ee?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
187
|
+
"login": "willcodeforfoo",
|
188
|
+
"id": 100
|
189
|
+
},
|
190
|
+
"id": "591"
|
191
|
+
},
|
192
|
+
{
|
193
|
+
"updated_at": "2009-10-14T10:31:26Z",
|
194
|
+
"url": "https://api.github.com/gists/2398",
|
195
|
+
"created_at": "2008-07-25T06:24:15Z",
|
196
|
+
"user": {
|
197
|
+
"gravatar_id": "c77e15da48833a5205255d0051460464",
|
198
|
+
"url": "https://api.github.com/users/mattagar",
|
199
|
+
"avatar_url": "https://secure.gravatar.com/avatar/c77e15da48833a5205255d0051460464?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
200
|
+
"login": "mattagar",
|
201
|
+
"id": 18075
|
202
|
+
},
|
203
|
+
"id": "2398"
|
204
|
+
},
|
205
|
+
{
|
206
|
+
"updated_at": "2009-10-14T11:50:19Z",
|
207
|
+
"url": "https://api.github.com/gists/11539",
|
208
|
+
"created_at": "2008-09-19T04:44:37Z",
|
209
|
+
"user": {
|
210
|
+
"gravatar_id": "d4a7c04ca87944e7fb06518fb64f9c36",
|
211
|
+
"url": "https://api.github.com/users/sunfmin",
|
212
|
+
"avatar_url": "https://secure.gravatar.com/avatar/d4a7c04ca87944e7fb06518fb64f9c36?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
213
|
+
"login": "sunfmin",
|
214
|
+
"id": 1014
|
215
|
+
},
|
216
|
+
"id": "11539"
|
217
|
+
},
|
218
|
+
{
|
219
|
+
"updated_at": "2009-10-16T21:03:06Z",
|
220
|
+
"url": "https://api.github.com/gists/93488",
|
221
|
+
"created_at": "2009-04-11T07:17:37Z",
|
222
|
+
"user": {
|
223
|
+
"gravatar_id": "881bd08b6b94e600475ce431e8e6ea35",
|
224
|
+
"url": "https://api.github.com/users/demonbane",
|
225
|
+
"avatar_url": "https://secure.gravatar.com/avatar/881bd08b6b94e600475ce431e8e6ea35?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
226
|
+
"login": "demonbane",
|
227
|
+
"id": 7385
|
228
|
+
},
|
229
|
+
"id": "93488"
|
230
|
+
},
|
231
|
+
{
|
232
|
+
"updated_at": "2009-12-14T12:58:33Z",
|
233
|
+
"url": "https://api.github.com/gists/256016",
|
234
|
+
"created_at": "2009-12-14T12:39:44Z",
|
235
|
+
"user": {
|
236
|
+
"gravatar_id": "f09383a4b8725aa99cf892813608de76",
|
237
|
+
"url": "https://api.github.com/users/pedrodelgallego",
|
238
|
+
"avatar_url": "https://secure.gravatar.com/avatar/f09383a4b8725aa99cf892813608de76?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
239
|
+
"login": "pedrodelgallego",
|
240
|
+
"id": 6951
|
241
|
+
},
|
242
|
+
"id": "256016"
|
243
|
+
},
|
244
|
+
{
|
245
|
+
"updated_at": "2010-04-17T08:52:11Z",
|
246
|
+
"url": "https://api.github.com/gists/369414",
|
247
|
+
"created_at": "2010-04-17T08:51:34Z",
|
248
|
+
"user": {
|
249
|
+
"gravatar_id": "f09383a4b8725aa99cf892813608de76",
|
250
|
+
"url": "https://api.github.com/users/pedrodelgallego",
|
251
|
+
"avatar_url": "https://secure.gravatar.com/avatar/f09383a4b8725aa99cf892813608de76?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
252
|
+
"login": "pedrodelgallego",
|
253
|
+
"id": 6951
|
254
|
+
},
|
255
|
+
"id": "369414"
|
256
|
+
},
|
257
|
+
{
|
258
|
+
"updated_at": "2011-02-22T05:33:17Z",
|
259
|
+
"url": "https://api.github.com/gists/838269",
|
260
|
+
"created_at": "2011-02-22T05:32:03Z",
|
261
|
+
"user": {
|
262
|
+
"gravatar_id": "a5556e47f603afb7695d05d2cd9883da",
|
263
|
+
"url": "https://api.github.com/users/hz",
|
264
|
+
"avatar_url": "https://secure.gravatar.com/avatar/a5556e47f603afb7695d05d2cd9883da?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
265
|
+
"login": "hz",
|
266
|
+
"id": 63441
|
267
|
+
},
|
268
|
+
"id": "838269"
|
269
|
+
},
|
270
|
+
{
|
271
|
+
"updated_at": "2011-02-22T08:31:24Z",
|
272
|
+
"url": "https://api.github.com/gists/838371",
|
273
|
+
"created_at": "2011-02-22T08:27:53Z",
|
274
|
+
"user": {
|
275
|
+
"gravatar_id": "5ccd0ef26cb0bd488c7e496f080f8dc5",
|
276
|
+
"url": "https://api.github.com/users/BlackBulletIV",
|
277
|
+
"avatar_url": "https://secure.gravatar.com/avatar/5ccd0ef26cb0bd488c7e496f080f8dc5?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
278
|
+
"login": "BlackBulletIV",
|
279
|
+
"id": 446397
|
280
|
+
},
|
281
|
+
"id": "838371"
|
282
|
+
},
|
283
|
+
{
|
284
|
+
"updated_at": "2011-03-04T15:37:14Z",
|
285
|
+
"url": "https://api.github.com/gists/854804",
|
286
|
+
"created_at": "2011-03-04T15:36:59Z",
|
287
|
+
"user": {
|
288
|
+
"gravatar_id": "50be7ccda1a6f9f895a2cdf4615eed6e",
|
289
|
+
"url": "https://api.github.com/users/mtsoerin",
|
290
|
+
"avatar_url": "https://secure.gravatar.com/avatar/50be7ccda1a6f9f895a2cdf4615eed6e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
291
|
+
"login": "mtsoerin",
|
292
|
+
"id": 643236
|
293
|
+
},
|
294
|
+
"id": "854804"
|
295
|
+
},
|
296
|
+
{
|
297
|
+
"updated_at": "2011-04-26T13:19:30Z",
|
298
|
+
"url": "https://api.github.com/gists/942242",
|
299
|
+
"created_at": "2011-04-26T13:19:11Z",
|
300
|
+
"user": {
|
301
|
+
"gravatar_id": "e466994eea3c2a1672564e45aca844d0",
|
302
|
+
"url": "https://api.github.com/users/gbraad",
|
303
|
+
"avatar_url": "https://secure.gravatar.com/avatar/e466994eea3c2a1672564e45aca844d0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
304
|
+
"login": "gbraad",
|
305
|
+
"id": 1894
|
306
|
+
},
|
307
|
+
"id": "942242"
|
308
|
+
},
|
309
|
+
{
|
310
|
+
"updated_at": "2011-05-06T20:05:34Z",
|
311
|
+
"url": "https://api.github.com/gists/959681",
|
312
|
+
"created_at": "2011-05-06T20:04:46Z",
|
313
|
+
"user": {
|
314
|
+
"gravatar_id": "bb108e4ccd3d3d79350b167b62e2db2a",
|
315
|
+
"url": "https://api.github.com/users/bry4n",
|
316
|
+
"avatar_url": "https://secure.gravatar.com/avatar/bb108e4ccd3d3d79350b167b62e2db2a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
317
|
+
"login": "bry4n",
|
318
|
+
"id": 73400
|
319
|
+
},
|
320
|
+
"id": "959681"
|
321
|
+
},
|
322
|
+
{
|
323
|
+
"updated_at": "2011-06-11T00:34:11Z",
|
324
|
+
"url": "https://api.github.com/gists/1020085",
|
325
|
+
"created_at": "2011-06-11T00:29:06Z",
|
326
|
+
"user": {
|
327
|
+
"gravatar_id": "b5d1886ee10bb84b1d1db698a1ca922e",
|
328
|
+
"url": "https://api.github.com/users/hijolan",
|
329
|
+
"avatar_url": "https://secure.gravatar.com/avatar/b5d1886ee10bb84b1d1db698a1ca922e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
330
|
+
"login": "hijolan",
|
331
|
+
"id": 404480
|
332
|
+
},
|
333
|
+
"id": "1020085"
|
334
|
+
},
|
335
|
+
{
|
336
|
+
"updated_at": "2011-07-16T21:14:13Z",
|
337
|
+
"url": "https://api.github.com/gists/1086800",
|
338
|
+
"created_at": "2011-07-16T21:14:13Z",
|
339
|
+
"user": {
|
340
|
+
"gravatar_id": "71a33a634d5397ef8be84890365687d0",
|
341
|
+
"url": "https://api.github.com/users/ryanwcohen",
|
342
|
+
"avatar_url": "https://secure.gravatar.com/avatar/71a33a634d5397ef8be84890365687d0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
343
|
+
"login": "ryanwcohen",
|
344
|
+
"id": 730418
|
345
|
+
},
|
346
|
+
"id": "1086800"
|
347
|
+
},
|
348
|
+
{
|
349
|
+
"updated_at": "2011-12-22T09:29:22Z",
|
350
|
+
"url": "https://api.github.com/gists/1509670",
|
351
|
+
"created_at": "2011-12-22T09:29:22Z",
|
352
|
+
"user": {
|
353
|
+
"gravatar_id": "364d08b8747ad5e230f49b65bb07805c",
|
354
|
+
"url": "https://api.github.com/users/dirkmc",
|
355
|
+
"avatar_url": "https://secure.gravatar.com/avatar/364d08b8747ad5e230f49b65bb07805c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
356
|
+
"login": "dirkmc",
|
357
|
+
"id": 169124
|
358
|
+
},
|
359
|
+
"id": "1509670"
|
360
|
+
},
|
361
|
+
{
|
362
|
+
"updated_at": "2012-03-29T10:43:15Z",
|
363
|
+
"url": "https://api.github.com/gists/2235768",
|
364
|
+
"created_at": "2012-03-29T10:43:15Z",
|
365
|
+
"user": {
|
366
|
+
"gravatar_id": "6c1210e99714eb597acd49838a7b255d",
|
367
|
+
"url": "https://api.github.com/users/p3drosola",
|
368
|
+
"avatar_url": "https://secure.gravatar.com/avatar/6c1210e99714eb597acd49838a7b255d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
369
|
+
"login": "p3drosola",
|
370
|
+
"id": 520550
|
371
|
+
},
|
372
|
+
"id": "2235768"
|
373
|
+
},
|
374
|
+
{
|
375
|
+
"updated_at": "2012-04-03T10:09:24Z",
|
376
|
+
"url": "https://api.github.com/gists/2290808",
|
377
|
+
"created_at": "2012-04-03T10:09:24Z",
|
378
|
+
"user": {
|
379
|
+
"gravatar_id": "eba3426b5f6b84570f6a70f8a594d2c9",
|
380
|
+
"url": "https://api.github.com/users/pygit",
|
381
|
+
"avatar_url": "https://secure.gravatar.com/avatar/eba3426b5f6b84570f6a70f8a594d2c9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
382
|
+
"login": "pygit",
|
383
|
+
"id": 1392087
|
384
|
+
},
|
385
|
+
"id": "2290808"
|
386
|
+
},
|
387
|
+
{
|
388
|
+
"updated_at": "2012-04-27T18:14:07Z",
|
389
|
+
"url": "https://api.github.com/gists/2511473",
|
390
|
+
"created_at": "2012-04-27T18:14:07Z",
|
391
|
+
"user": null,
|
392
|
+
"id": "2511473"
|
393
|
+
},
|
394
|
+
{
|
395
|
+
"updated_at": "2012-04-30T06:00:43Z",
|
396
|
+
"url": "https://api.github.com/gists/2555875",
|
397
|
+
"created_at": "2012-04-30T06:00:43Z",
|
398
|
+
"user": {
|
399
|
+
"gravatar_id": "bd9a86ce16b44e31611305306d144c68",
|
400
|
+
"url": "https://api.github.com/users/chrisjacob",
|
401
|
+
"avatar_url": "https://secure.gravatar.com/avatar/bd9a86ce16b44e31611305306d144c68?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
402
|
+
"login": "chrisjacob",
|
403
|
+
"id": 157879
|
404
|
+
},
|
405
|
+
"id": "2555875"
|
406
|
+
},
|
407
|
+
{
|
408
|
+
"updated_at": "2012-05-08T19:26:22Z",
|
409
|
+
"url": "https://api.github.com/gists/2638677",
|
410
|
+
"created_at": "2012-05-08T19:26:22Z",
|
411
|
+
"user": null,
|
412
|
+
"id": "2638677"
|
413
|
+
},
|
414
|
+
{
|
415
|
+
"updated_at": "2012-07-24T05:17:21Z",
|
416
|
+
"url": "https://api.github.com/gists/3168179",
|
417
|
+
"created_at": "2012-07-24T05:17:21Z",
|
418
|
+
"user": {
|
419
|
+
"gravatar_id": "c06c41592f238cfc455c8352c90c41af",
|
420
|
+
"url": "https://api.github.com/users/simcop2387",
|
421
|
+
"avatar_url": "https://secure.gravatar.com/avatar/c06c41592f238cfc455c8352c90c41af?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
422
|
+
"login": "simcop2387",
|
423
|
+
"id": 90188
|
424
|
+
},
|
425
|
+
"id": "3168179"
|
426
|
+
},
|
427
|
+
{
|
428
|
+
"updated_at": "2012-07-24T15:43:06Z",
|
429
|
+
"url": "https://api.github.com/gists/3170767",
|
430
|
+
"created_at": "2012-07-24T15:43:06Z",
|
431
|
+
"user": null,
|
432
|
+
"id": "3170767"
|
433
|
+
},
|
434
|
+
{
|
435
|
+
"updated_at": "2012-10-05T14:37:26Z",
|
436
|
+
"url": "https://api.github.com/gists/3840144",
|
437
|
+
"created_at": "2012-10-05T14:37:26Z",
|
438
|
+
"user": {
|
439
|
+
"gravatar_id": "ed265adf145a12d2e5f09b2a761f232f",
|
440
|
+
"url": "https://api.github.com/users/DamonOehlman",
|
441
|
+
"avatar_url": "https://secure.gravatar.com/avatar/ed265adf145a12d2e5f09b2a761f232f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
442
|
+
"login": "DamonOehlman",
|
443
|
+
"id": 609693
|
444
|
+
},
|
445
|
+
"id": "3840144"
|
446
|
+
}
|
447
|
+
],
|
448
|
+
"description": "the meaning of gist"
|
449
|
+
}
|
data/spec/support/fakeweb.rb
CHANGED
@@ -10,7 +10,7 @@ FakeWeb.register_uri(:get, 'https://username:password@api.github.com/gists/publi
|
|
10
10
|
FakeWeb.register_uri(:get, 'https://username:password@api.github.com/gists/starred', :response => json('starred_gists'))
|
11
11
|
FakeWeb.register_uri(:get, 'https://username:password@api.github.com/gists/2', :response => json('gist_2'))
|
12
12
|
FakeWeb.register_uri(:post, 'https://username:password@api.github.com/gists', :response => json('new_gist'))
|
13
|
-
FakeWeb.register_uri(:get, 'https://username:password@api.github.com/gists/1', :response => json('
|
13
|
+
FakeWeb.register_uri(:get, 'https://username:password@api.github.com/gists/1', :response => json('gist_1_newer'))
|
14
14
|
FakeWeb.register_uri(:patch, 'https://username:password@api.github.com/gists/1', :response => json('gist_1_updated'))
|
15
15
|
FakeWeb.register_uri(:get, 'https://username:password@api.github.com/gists/2/star', :response => json('gist_2_star'))
|
16
16
|
FakeWeb.register_uri(:get, 'https://username:password@api.github.com/gists/1/star', :response => json('gist_1_star'))
|
metadata
CHANGED
@@ -1,104 +1,136 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: activegist
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.6.4
|
4
5
|
prerelease:
|
5
|
-
version: 0.6.3
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Colin MacKenzie IV
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-11-01 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: rspec
|
17
|
-
|
18
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
19
17
|
none: false
|
20
|
-
requirements:
|
18
|
+
requirements:
|
21
19
|
- - ~>
|
22
|
-
- !ruby/object:Gem::Version
|
20
|
+
- !ruby/object:Gem::Version
|
23
21
|
version: 2.8.0
|
24
22
|
type: :development
|
25
|
-
version_requirements: *id001
|
26
|
-
- !ruby/object:Gem::Dependency
|
27
|
-
name: fakeweb
|
28
23
|
prerelease: false
|
29
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 2.8.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: fakeweb
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
30
33
|
none: false
|
31
|
-
requirements:
|
34
|
+
requirements:
|
32
35
|
- - ~>
|
33
|
-
- !ruby/object:Gem::Version
|
36
|
+
- !ruby/object:Gem::Version
|
34
37
|
version: 1.3.0
|
35
38
|
type: :development
|
36
|
-
version_requirements: *id002
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: rake
|
39
39
|
prerelease: false
|
40
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 1.3.0
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rake
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
41
49
|
none: false
|
42
|
-
requirements:
|
50
|
+
requirements:
|
43
51
|
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
52
|
+
- !ruby/object:Gem::Version
|
45
53
|
version: 0.9.2.2
|
46
54
|
type: :development
|
47
|
-
version_requirements: *id003
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: rdoc
|
50
55
|
prerelease: false
|
51
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.9.2.2
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rdoc
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
52
65
|
none: false
|
53
|
-
requirements:
|
66
|
+
requirements:
|
54
67
|
- - ~>
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
version:
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '3.12'
|
57
70
|
type: :development
|
58
|
-
version_requirements: *id004
|
59
|
-
- !ruby/object:Gem::Dependency
|
60
|
-
name: activemodel
|
61
71
|
prerelease: false
|
62
|
-
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '3.12'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: activemodel
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
63
81
|
none: false
|
64
|
-
requirements:
|
82
|
+
requirements:
|
65
83
|
- - ~>
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version:
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '3.1'
|
68
86
|
type: :runtime
|
69
|
-
version_requirements: *id005
|
70
|
-
- !ruby/object:Gem::Dependency
|
71
|
-
name: activesupport
|
72
87
|
prerelease: false
|
73
|
-
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '3.1'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: activesupport
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
74
97
|
none: false
|
75
|
-
requirements:
|
98
|
+
requirements:
|
76
99
|
- - ~>
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
version:
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '3.1'
|
79
102
|
type: :runtime
|
80
|
-
version_requirements: *id006
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
|
-
name: rest-client
|
83
103
|
prerelease: false
|
84
|
-
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '3.1'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: rest-client
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
85
113
|
none: false
|
86
|
-
requirements:
|
114
|
+
requirements:
|
87
115
|
- - ~>
|
88
|
-
- !ruby/object:Gem::Version
|
116
|
+
- !ruby/object:Gem::Version
|
89
117
|
version: 1.6.7
|
90
118
|
type: :runtime
|
91
|
-
|
92
|
-
|
93
|
-
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 1.6.7
|
126
|
+
description: Wraps GitHub's Gist API with a class implementing the ActiveModel modules.
|
127
|
+
So, it should be pretty familiar to anyone who's ever used models in Ruby on Rails.
|
128
|
+
email:
|
94
129
|
- sinisterchipmunk@gmail.com
|
95
130
|
executables: []
|
96
|
-
|
97
131
|
extensions: []
|
98
|
-
|
99
132
|
extra_rdoc_files: []
|
100
|
-
|
101
|
-
files:
|
133
|
+
files:
|
102
134
|
- .gitignore
|
103
135
|
- .travis.yml
|
104
136
|
- CHANGELOG
|
@@ -117,6 +149,7 @@ files:
|
|
117
149
|
- lib/activegist.rb
|
118
150
|
- spec/fixtures/all_gists.json
|
119
151
|
- spec/fixtures/gist_1.json
|
152
|
+
- spec/fixtures/gist_1_newer.json
|
120
153
|
- spec/fixtures/gist_1_star.json
|
121
154
|
- spec/fixtures/gist_1_updated.json
|
122
155
|
- spec/fixtures/gist_2.json
|
@@ -134,34 +167,38 @@ files:
|
|
134
167
|
- spec/support/fakeweb.rb
|
135
168
|
homepage: http://github.com/sinisterchipmunk/active-gist
|
136
169
|
licenses: []
|
137
|
-
|
138
170
|
post_install_message:
|
139
171
|
rdoc_options: []
|
140
|
-
|
141
|
-
require_paths:
|
172
|
+
require_paths:
|
142
173
|
- lib
|
143
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
174
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
144
175
|
none: false
|
145
|
-
requirements:
|
146
|
-
- -
|
147
|
-
- !ruby/object:Gem::Version
|
148
|
-
version:
|
149
|
-
|
176
|
+
requirements:
|
177
|
+
- - ! '>='
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0'
|
180
|
+
segments:
|
181
|
+
- 0
|
182
|
+
hash: -3826366150870984350
|
183
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
184
|
none: false
|
151
|
-
requirements:
|
152
|
-
- -
|
153
|
-
- !ruby/object:Gem::Version
|
154
|
-
version:
|
185
|
+
requirements:
|
186
|
+
- - ! '>='
|
187
|
+
- !ruby/object:Gem::Version
|
188
|
+
version: '0'
|
189
|
+
segments:
|
190
|
+
- 0
|
191
|
+
hash: -3826366150870984350
|
155
192
|
requirements: []
|
156
|
-
|
157
193
|
rubyforge_project: activegist
|
158
|
-
rubygems_version: 1.8.
|
194
|
+
rubygems_version: 1.8.24
|
159
195
|
signing_key:
|
160
196
|
specification_version: 3
|
161
197
|
summary: Wraps GitHub's Gist API with an intuitive class based on ActiveModel.
|
162
|
-
test_files:
|
198
|
+
test_files:
|
163
199
|
- spec/fixtures/all_gists.json
|
164
200
|
- spec/fixtures/gist_1.json
|
201
|
+
- spec/fixtures/gist_1_newer.json
|
165
202
|
- spec/fixtures/gist_1_star.json
|
166
203
|
- spec/fixtures/gist_1_updated.json
|
167
204
|
- spec/fixtures/gist_2.json
|