octokit 1.0.7 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +1 -0
- data/lib/octokit/client.rb +3 -0
- data/lib/octokit/client/gists.rb +66 -0
- data/lib/octokit/gist.rb +27 -0
- data/lib/octokit/version.rb +1 -1
- data/spec/fixtures/timeline.json +1408 -1237
- data/spec/fixtures/v2/blob_metadata.json +2052 -1
- data/spec/fixtures/v2/blobs.json +260 -1
- data/spec/fixtures/v2/issues.json +49 -1
- data/spec/fixtures/v2/network_data.json +3551 -1
- data/spec/fixtures/v2/network_meta.json +2530 -1
- data/spec/fixtures/v2/repositories.json +173 -1
- data/spec/fixtures/v2/tree_metadata.json +2612 -1
- data/spec/fixtures/v2/user.json +19 -1
- data/spec/fixtures/v2/users.json +24 -1
- data/spec/fixtures/v3/blob.json +5 -5
- data/spec/fixtures/v3/branches.json +14 -14
- data/spec/fixtures/v3/collaborators.json +60 -60
- data/spec/fixtures/v3/comment.json +12 -12
- data/spec/fixtures/v3/comments.json +41 -41
- data/spec/fixtures/v3/commit.json +50 -1
- data/spec/fixtures/v3/commit_comment.json +17 -17
- data/spec/fixtures/v3/commit_comments.json +76 -76
- data/spec/fixtures/v3/commits.json +1414 -1
- data/spec/fixtures/v3/contributors.json +889 -889
- data/spec/fixtures/v3/download.json +9 -9
- data/spec/fixtures/v3/downloads.json +33 -33
- data/spec/fixtures/v3/emails.json +3 -3
- data/spec/fixtures/v3/followers.json +210 -210
- data/spec/fixtures/v3/following.json +207 -207
- data/spec/fixtures/v3/forks.json +870 -870
- data/spec/fixtures/v3/gist.json +51 -0
- data/spec/fixtures/v3/gists.json +548 -0
- data/spec/fixtures/v3/issue.json +33 -35
- data/spec/fixtures/v3/issue_closed.json +34 -36
- data/spec/fixtures/v3/issue_event.json +40 -42
- data/spec/fixtures/v3/issue_events.json +70 -70
- data/spec/fixtures/v3/issues.json +1559 -1577
- data/spec/fixtures/v3/label.json +3 -3
- data/spec/fixtures/v3/labels.json +15 -15
- data/spec/fixtures/v3/languages.json +3 -3
- data/spec/fixtures/v3/list_commit_comments.json +570 -570
- data/spec/fixtures/v3/milestone.json +9 -10
- data/spec/fixtures/v3/milestones.json +25 -25
- data/spec/fixtures/v3/not_found.json +1 -1
- data/spec/fixtures/v3/organization-repositories.json +4290 -4290
- data/spec/fixtures/v3/organization-repository.json +41 -41
- data/spec/fixtures/v3/organization.json +16 -16
- data/spec/fixtures/v3/organization_members.json +574 -574
- data/spec/fixtures/v3/organization_team_members.json +14 -14
- data/spec/fixtures/v3/organization_team_repos.json +60 -60
- data/spec/fixtures/v3/organizations.json +42 -42
- data/spec/fixtures/v3/public_events.json +1101 -1107
- data/spec/fixtures/v3/public_gists.json +968 -0
- data/spec/fixtures/v3/public_key.json +3 -3
- data/spec/fixtures/v3/public_keys.json +5 -5
- data/spec/fixtures/v3/pull_created.json +134 -134
- data/spec/fixtures/v3/pull_request.json +134 -134
- data/spec/fixtures/v3/pull_requests.json +185 -185
- data/spec/fixtures/v3/repo_events.json +1644 -1660
- data/spec/fixtures/v3/repo_issues_events.json +127 -133
- data/spec/fixtures/v3/repositories.json +871 -871
- data/spec/fixtures/v3/repository.json +33 -33
- data/spec/fixtures/v3/starred_gists.json +30 -0
- data/spec/fixtures/v3/tags.json +171 -171
- data/spec/fixtures/v3/team.json +6 -6
- data/spec/fixtures/v3/teams.json +10 -10
- data/spec/fixtures/v3/tree.json +110 -110
- data/spec/fixtures/v3/user.json +18 -18
- data/spec/fixtures/v3/user_events.json +99 -100
- data/spec/fixtures/v3/watched.json +1020 -1020
- data/spec/fixtures/v3/watchers.json +180 -180
- data/spec/octokit/client/gists_spec.rb +133 -0
- data/spec/octokit/gist_spec.rb +49 -0
- metadata +40 -26
data/spec/fixtures/v3/teams.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
[
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
2
|
+
{
|
3
|
+
"id": 32598,
|
4
|
+
"name": "Fellows",
|
5
|
+
"url": "https://api.github.com/teams/32598"
|
6
|
+
},
|
7
|
+
{
|
8
|
+
"id": 32760,
|
9
|
+
"name": "Staff",
|
10
|
+
"url": "https://api.github.com/teams/32760"
|
11
|
+
}
|
12
12
|
]
|
data/spec/fixtures/v3/tree.json
CHANGED
@@ -1,112 +1,112 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
2
|
+
"sha": "3cdfabd973bc3caac209cba903cfdb3bf6636bcd",
|
3
|
+
"tree": [
|
4
|
+
{
|
5
|
+
"mode": "100644",
|
6
|
+
"path": ".gitignore",
|
7
|
+
"sha": "5efe0eb47a773fa6ea84a0bf190ee218b6a31ead",
|
8
|
+
"size": 279,
|
9
|
+
"type": "blob",
|
10
|
+
"url": "https://api.github.com/repos/sferik/rails_admin/git/blobs/5efe0eb47a773fa6ea84a0bf190ee218b6a31ead"
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"mode": "100644",
|
14
|
+
"path": ".rspec",
|
15
|
+
"sha": "f5a48e7ea5d8c1068efbb2b5b39471447a892dd5",
|
16
|
+
"size": 46,
|
17
|
+
"type": "blob",
|
18
|
+
"url": "https://api.github.com/repos/sferik/rails_admin/git/blobs/f5a48e7ea5d8c1068efbb2b5b39471447a892dd5"
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"mode": "100644",
|
22
|
+
"path": ".yardopts",
|
23
|
+
"sha": "80b49ec64346a5575f355af14a2616a83cdbf7e3",
|
24
|
+
"size": 57,
|
25
|
+
"type": "blob",
|
26
|
+
"url": "https://api.github.com/repos/sferik/rails_admin/git/blobs/80b49ec64346a5575f355af14a2616a83cdbf7e3"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"mode": "100644",
|
30
|
+
"path": "Gemfile",
|
31
|
+
"sha": "676ca26fae4277be5d2da7e1e223a4dd36370479",
|
32
|
+
"size": 927,
|
33
|
+
"type": "blob",
|
34
|
+
"url": "https://api.github.com/repos/sferik/rails_admin/git/blobs/676ca26fae4277be5d2da7e1e223a4dd36370479"
|
35
|
+
},
|
36
|
+
{
|
37
|
+
"mode": "100644",
|
38
|
+
"path": "LICENSE.mkd",
|
39
|
+
"sha": "0420edbdb00ab6055455d62f2cd2db404d35a147",
|
40
|
+
"size": 1062,
|
41
|
+
"type": "blob",
|
42
|
+
"url": "https://api.github.com/repos/sferik/rails_admin/git/blobs/0420edbdb00ab6055455d62f2cd2db404d35a147"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"mode": "100644",
|
46
|
+
"path": "README.mkd",
|
47
|
+
"sha": "94616fa57520ac8147522c7cf9f03d555595c5ea",
|
48
|
+
"size": 25325,
|
49
|
+
"type": "blob",
|
50
|
+
"url": "https://api.github.com/repos/sferik/rails_admin/git/blobs/94616fa57520ac8147522c7cf9f03d555595c5ea"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"mode": "100644",
|
54
|
+
"path": "Rakefile",
|
55
|
+
"sha": "82c041b5a84f9d0221c2695379956cbc8c2a3cbd",
|
56
|
+
"size": 567,
|
57
|
+
"type": "blob",
|
58
|
+
"url": "https://api.github.com/repos/sferik/rails_admin/git/blobs/82c041b5a84f9d0221c2695379956cbc8c2a3cbd"
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"mode": "040000",
|
62
|
+
"path": "app",
|
63
|
+
"sha": "d1f573e5ab942f6dba18657da75c3fa240a6addd",
|
64
|
+
"type": "tree",
|
65
|
+
"url": "https://api.github.com/repos/sferik/rails_admin/git/trees/d1f573e5ab942f6dba18657da75c3fa240a6addd"
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"mode": "040000",
|
69
|
+
"path": "config",
|
70
|
+
"sha": "dfc59dbf0fa9c307be4faf7b26737f287cdf942a",
|
71
|
+
"type": "tree",
|
72
|
+
"url": "https://api.github.com/repos/sferik/rails_admin/git/trees/dfc59dbf0fa9c307be4faf7b26737f287cdf942a"
|
73
|
+
},
|
74
|
+
{
|
75
|
+
"mode": "040000",
|
76
|
+
"path": "lib",
|
77
|
+
"sha": "6a8973e60a20ada810b50c1000b81520fc0169f0",
|
78
|
+
"type": "tree",
|
79
|
+
"url": "https://api.github.com/repos/sferik/rails_admin/git/trees/6a8973e60a20ada810b50c1000b81520fc0169f0"
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"mode": "040000",
|
83
|
+
"path": "public",
|
84
|
+
"sha": "27dd7613678914755666b72458174873504ac102",
|
85
|
+
"type": "tree",
|
86
|
+
"url": "https://api.github.com/repos/sferik/rails_admin/git/trees/27dd7613678914755666b72458174873504ac102"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"mode": "100644",
|
90
|
+
"path": "rails_admin.gemspec",
|
91
|
+
"sha": "8a9a951fe90455905f4545a89629a4451d36bda6",
|
92
|
+
"size": 1649,
|
93
|
+
"type": "blob",
|
94
|
+
"url": "https://api.github.com/repos/sferik/rails_admin/git/blobs/8a9a951fe90455905f4545a89629a4451d36bda6"
|
95
|
+
},
|
96
|
+
{
|
97
|
+
"mode": "040000",
|
98
|
+
"path": "screenshots",
|
99
|
+
"sha": "d807eed21b21c9116ac7cf67423edd14355acdd5",
|
100
|
+
"type": "tree",
|
101
|
+
"url": "https://api.github.com/repos/sferik/rails_admin/git/trees/d807eed21b21c9116ac7cf67423edd14355acdd5"
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"mode": "040000",
|
105
|
+
"path": "spec",
|
106
|
+
"sha": "e4e79d3099d4cd3b4930800ae644ed614b756e00",
|
107
|
+
"type": "tree",
|
108
|
+
"url": "https://api.github.com/repos/sferik/rails_admin/git/trees/e4e79d3099d4cd3b4930800ae644ed614b756e00"
|
109
|
+
}
|
110
|
+
],
|
111
|
+
"url": "https://api.github.com/repos/sferik/rails_admin/git/trees/3cdfabd973bc3caac209cba903cfdb3bf6636bcd"
|
112
112
|
}
|
data/spec/fixtures/v3/user.json
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
2
|
+
"avatar_url": "https://secure.gravatar.com/avatar/1f74b13f1e5c6c69cb5d7fbaabb1e2cb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
3
|
+
"bio": null,
|
4
|
+
"blog": "http://twitter.com/sferik",
|
5
|
+
"company": "Code for America",
|
6
|
+
"created_at": "2008-05-14T20:36:12Z",
|
7
|
+
"email": "sferik@gmail.com",
|
8
|
+
"followers": 205,
|
9
|
+
"following": 91,
|
10
|
+
"hireable": false,
|
11
|
+
"html_url": "https://github.com/sferik",
|
12
|
+
"id": 10308,
|
13
|
+
"location": "San Francisco",
|
14
|
+
"login": "sferik",
|
15
|
+
"name": "Erik Michaels-Ober",
|
16
|
+
"public_gists": 18,
|
17
|
+
"public_repos": 37,
|
18
|
+
"type": "User",
|
19
|
+
"url": "https://api.github.com/users/sferik"
|
20
20
|
}
|
@@ -1,102 +1,101 @@
|
|
1
|
-
|
2
1
|
[
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
"
|
14
|
-
"
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
"
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
2
|
+
{
|
3
|
+
"actor": {
|
4
|
+
"gravatar_id": "1f74b13f1e5c6c69cb5d7fbaabb1e2cb",
|
5
|
+
"id": 10308,
|
6
|
+
"login": "sferik",
|
7
|
+
"url": "https://api.github.com/users/sferik"
|
8
|
+
},
|
9
|
+
"created_at": "2012-03-02T22:01:29Z",
|
10
|
+
"id": "1525888969",
|
11
|
+
"org": {
|
12
|
+
"gravatar_id": "ec81184c572bc827b72ebb489d49f821",
|
13
|
+
"id": 337792,
|
14
|
+
"login": "codeforamerica",
|
15
|
+
"url": "https://api.github.com/orgs/"
|
16
|
+
},
|
17
|
+
"payload": {
|
18
|
+
"commits": [
|
19
|
+
{
|
20
|
+
"author": {
|
21
|
+
"email": "sferik@gmail.com",
|
22
|
+
"name": "Erik Michaels-Ober"
|
23
|
+
},
|
24
|
+
"distinct": true,
|
25
|
+
"message": "Update rails dependency to version 3.2.2",
|
26
|
+
"sha": "eae82e96148fa21d7e062d89f683567f3decf07c",
|
27
|
+
"url": "https://api.github.com/repos/codeforamerica/follow-all/commits/eae82e96148fa21d7e062d89f683567f3decf07c"
|
28
|
+
},
|
29
|
+
{
|
30
|
+
"author": {
|
31
|
+
"email": "sferik@gmail.com",
|
32
|
+
"name": "Erik Michaels-Ober"
|
33
|
+
},
|
34
|
+
"distinct": true,
|
35
|
+
"message": "Update omniauth-oauth dependency to version 1.0.1",
|
36
|
+
"sha": "e99fc3fedd7fa79a590911ef5c3415a6ab4d5d5f",
|
37
|
+
"url": "https://api.github.com/repos/codeforamerica/follow-all/commits/e99fc3fedd7fa79a590911ef5c3415a6ab4d5d5f"
|
38
|
+
}
|
39
|
+
],
|
40
|
+
"head": "e99fc3fedd7fa79a590911ef5c3415a6ab4d5d5f",
|
41
|
+
"push_id": 65327953,
|
42
|
+
"ref": "refs/heads/master",
|
43
|
+
"size": 2
|
44
|
+
},
|
45
|
+
"public": true,
|
46
|
+
"repo": {
|
47
|
+
"id": 1255356,
|
48
|
+
"name": "codeforamerica/follow-all",
|
49
|
+
"url": "https://api.github.com/repos/codeforamerica/follow-all"
|
50
|
+
},
|
51
|
+
"type": "PushEvent"
|
52
|
+
},
|
53
|
+
{
|
54
|
+
"actor": {
|
55
|
+
"gravatar_id": "1f74b13f1e5c6c69cb5d7fbaabb1e2cb",
|
56
|
+
"id": 10308,
|
57
|
+
"login": "sferik",
|
58
|
+
"url": "https://api.github.com/users/sferik"
|
59
|
+
},
|
60
|
+
"created_at": "2012-03-02T22:01:27Z",
|
61
|
+
"id": "1525888950",
|
62
|
+
"org": {
|
63
|
+
"url": "https://api.github.com/orgs/"
|
64
|
+
},
|
65
|
+
"payload": {
|
66
|
+
"commits": [
|
67
|
+
{
|
68
|
+
"author": {
|
69
|
+
"email": "sferik@gmail.com",
|
70
|
+
"name": "Erik Michaels-Ober"
|
71
|
+
},
|
72
|
+
"distinct": true,
|
73
|
+
"message": "Update rails dependency to version 3.2.2",
|
74
|
+
"sha": "f1f47383f20a05ecda1b4cb34378408c53a7fbc3",
|
75
|
+
"url": "https://api.github.com/repos/sferik/sign-in-with-twitter/commits/f1f47383f20a05ecda1b4cb34378408c53a7fbc3"
|
76
|
+
},
|
77
|
+
{
|
78
|
+
"author": {
|
79
|
+
"email": "sferik@gmail.com",
|
80
|
+
"name": "Erik Michaels-Ober"
|
81
|
+
},
|
82
|
+
"distinct": true,
|
83
|
+
"message": "Update omniauth-oauth dependency to version 1.0.1",
|
84
|
+
"sha": "092cb80b33268ed6b49b45d58ef3e50d4c9eca85",
|
85
|
+
"url": "https://api.github.com/repos/sferik/sign-in-with-twitter/commits/092cb80b33268ed6b49b45d58ef3e50d4c9eca85"
|
86
|
+
}
|
87
|
+
],
|
88
|
+
"head": "092cb80b33268ed6b49b45d58ef3e50d4c9eca85",
|
89
|
+
"push_id": 65327945,
|
90
|
+
"ref": "refs/heads/master",
|
91
|
+
"size": 2
|
92
|
+
},
|
93
|
+
"public": true,
|
94
|
+
"repo": {
|
95
|
+
"id": 1716295,
|
96
|
+
"name": "sferik/sign-in-with-twitter",
|
97
|
+
"url": "https://api.github.com/repos/sferik/sign-in-with-twitter"
|
98
|
+
},
|
99
|
+
"type": "PushEvent"
|
100
|
+
}
|
102
101
|
]
|