octokit 1.0.7 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. data/CHANGELOG.md +1 -0
  2. data/lib/octokit/client.rb +3 -0
  3. data/lib/octokit/client/gists.rb +66 -0
  4. data/lib/octokit/gist.rb +27 -0
  5. data/lib/octokit/version.rb +1 -1
  6. data/spec/fixtures/timeline.json +1408 -1237
  7. data/spec/fixtures/v2/blob_metadata.json +2052 -1
  8. data/spec/fixtures/v2/blobs.json +260 -1
  9. data/spec/fixtures/v2/issues.json +49 -1
  10. data/spec/fixtures/v2/network_data.json +3551 -1
  11. data/spec/fixtures/v2/network_meta.json +2530 -1
  12. data/spec/fixtures/v2/repositories.json +173 -1
  13. data/spec/fixtures/v2/tree_metadata.json +2612 -1
  14. data/spec/fixtures/v2/user.json +19 -1
  15. data/spec/fixtures/v2/users.json +24 -1
  16. data/spec/fixtures/v3/blob.json +5 -5
  17. data/spec/fixtures/v3/branches.json +14 -14
  18. data/spec/fixtures/v3/collaborators.json +60 -60
  19. data/spec/fixtures/v3/comment.json +12 -12
  20. data/spec/fixtures/v3/comments.json +41 -41
  21. data/spec/fixtures/v3/commit.json +50 -1
  22. data/spec/fixtures/v3/commit_comment.json +17 -17
  23. data/spec/fixtures/v3/commit_comments.json +76 -76
  24. data/spec/fixtures/v3/commits.json +1414 -1
  25. data/spec/fixtures/v3/contributors.json +889 -889
  26. data/spec/fixtures/v3/download.json +9 -9
  27. data/spec/fixtures/v3/downloads.json +33 -33
  28. data/spec/fixtures/v3/emails.json +3 -3
  29. data/spec/fixtures/v3/followers.json +210 -210
  30. data/spec/fixtures/v3/following.json +207 -207
  31. data/spec/fixtures/v3/forks.json +870 -870
  32. data/spec/fixtures/v3/gist.json +51 -0
  33. data/spec/fixtures/v3/gists.json +548 -0
  34. data/spec/fixtures/v3/issue.json +33 -35
  35. data/spec/fixtures/v3/issue_closed.json +34 -36
  36. data/spec/fixtures/v3/issue_event.json +40 -42
  37. data/spec/fixtures/v3/issue_events.json +70 -70
  38. data/spec/fixtures/v3/issues.json +1559 -1577
  39. data/spec/fixtures/v3/label.json +3 -3
  40. data/spec/fixtures/v3/labels.json +15 -15
  41. data/spec/fixtures/v3/languages.json +3 -3
  42. data/spec/fixtures/v3/list_commit_comments.json +570 -570
  43. data/spec/fixtures/v3/milestone.json +9 -10
  44. data/spec/fixtures/v3/milestones.json +25 -25
  45. data/spec/fixtures/v3/not_found.json +1 -1
  46. data/spec/fixtures/v3/organization-repositories.json +4290 -4290
  47. data/spec/fixtures/v3/organization-repository.json +41 -41
  48. data/spec/fixtures/v3/organization.json +16 -16
  49. data/spec/fixtures/v3/organization_members.json +574 -574
  50. data/spec/fixtures/v3/organization_team_members.json +14 -14
  51. data/spec/fixtures/v3/organization_team_repos.json +60 -60
  52. data/spec/fixtures/v3/organizations.json +42 -42
  53. data/spec/fixtures/v3/public_events.json +1101 -1107
  54. data/spec/fixtures/v3/public_gists.json +968 -0
  55. data/spec/fixtures/v3/public_key.json +3 -3
  56. data/spec/fixtures/v3/public_keys.json +5 -5
  57. data/spec/fixtures/v3/pull_created.json +134 -134
  58. data/spec/fixtures/v3/pull_request.json +134 -134
  59. data/spec/fixtures/v3/pull_requests.json +185 -185
  60. data/spec/fixtures/v3/repo_events.json +1644 -1660
  61. data/spec/fixtures/v3/repo_issues_events.json +127 -133
  62. data/spec/fixtures/v3/repositories.json +871 -871
  63. data/spec/fixtures/v3/repository.json +33 -33
  64. data/spec/fixtures/v3/starred_gists.json +30 -0
  65. data/spec/fixtures/v3/tags.json +171 -171
  66. data/spec/fixtures/v3/team.json +6 -6
  67. data/spec/fixtures/v3/teams.json +10 -10
  68. data/spec/fixtures/v3/tree.json +110 -110
  69. data/spec/fixtures/v3/user.json +18 -18
  70. data/spec/fixtures/v3/user_events.json +99 -100
  71. data/spec/fixtures/v3/watched.json +1020 -1020
  72. data/spec/fixtures/v3/watchers.json +180 -180
  73. data/spec/octokit/client/gists_spec.rb +133 -0
  74. data/spec/octokit/gist_spec.rb +49 -0
  75. metadata +40 -26
@@ -1,5 +1,5 @@
1
1
  {
2
- "title": "Moss",
3
- "id": 103205,
4
- "key": "ssh-dss AAAAB3NzaC1kc3MAAACBAJz7HanBa18ad1YsdFzHO5Wy1/WgXd4BV+czbKq7q23jungbfjN3eo2a0SVdxux8GG+RZ9ia90VD/X+PE4s3LV60oXZ7PDAuyPO1CTF0TaDoKf9mPaHcPa6agMJVocMsgBgwviWT1Q9VgN1SccDsYVDtxkIAwuw25YeHZlG6myx1AAAAFQCgW+OvXWUdUJPBGkRJ8ML7uf0VHQAAAIAlP5G96tTss0SKYVSCJCyocn9cyGQdNjxah4/aYuYFTbLI1rxk7sr/AkZfJNIoF2UFyO5STbbratykIQGUPdUBg1a2t72bu31x+4ZYJMngNsG/AkZ2oqLiH6dJKHD7PFx2oSPalogwsUV7iSMIZIYaPa03A9763iFsN0qJjaed+gAAAIBxz3Prxdzt/os4XGXSMNoWcS03AFC/05NOkoDMrXxQnTTpp1wrOgyRqEnKz15qC5dWk1ynzK+LJXHDZGA8lXPfCjHpJO3zrlZ/ivvLhgPdDpt13MAhIJFH06hTal0woxbk/fIdY71P3kbgXC0Ppx/0S7BC+VxqRCA4/wcM+BoDbA=="
2
+ "id": 103205,
3
+ "key": "ssh-dss AAAAB3NzaC1kc3MAAACBAJz7HanBa18ad1YsdFzHO5Wy1/WgXd4BV+czbKq7q23jungbfjN3eo2a0SVdxux8GG+RZ9ia90VD/X+PE4s3LV60oXZ7PDAuyPO1CTF0TaDoKf9mPaHcPa6agMJVocMsgBgwviWT1Q9VgN1SccDsYVDtxkIAwuw25YeHZlG6myx1AAAAFQCgW+OvXWUdUJPBGkRJ8ML7uf0VHQAAAIAlP5G96tTss0SKYVSCJCyocn9cyGQdNjxah4/aYuYFTbLI1rxk7sr/AkZfJNIoF2UFyO5STbbratykIQGUPdUBg1a2t72bu31x+4ZYJMngNsG/AkZ2oqLiH6dJKHD7PFx2oSPalogwsUV7iSMIZIYaPa03A9763iFsN0qJjaed+gAAAIBxz3Prxdzt/os4XGXSMNoWcS03AFC/05NOkoDMrXxQnTTpp1wrOgyRqEnKz15qC5dWk1ynzK+LJXHDZGA8lXPfCjHpJO3zrlZ/ivvLhgPdDpt13MAhIJFH06hTal0woxbk/fIdY71P3kbgXC0Ppx/0S7BC+VxqRCA4/wcM+BoDbA==",
4
+ "title": "Moss"
5
5
  }
@@ -1,7 +1,7 @@
1
1
  [
2
- {
3
- "title": "Moss",
4
- "id": 103205,
5
- "key": "ssh-dss AAAAB3NzaC1kc3MAAACBAJz7HanBa18ad1YsdFzHO5Wy1/WgXd4BV+czbKq7q23jungbfjN3eo2a0SVdxux8GG+RZ9ia90VD/X+PE4s3LV60oXZ7PDAuyPO1CTF0TaDoKf9mPaHcPa6agMJVocMsgBgwviWT1Q9VgN1SccDsYVDtxkIAwuw25YeHZlG6myx1AAAAFQCgW+OvXWUdUJPBGkRJ8ML7uf0VHQAAAIAlP5G96tTss0SKYVSCJCyocn9cyGQdNjxah4/aYuYFTbLI1rxk7sr/AkZfJNIoF2UFyO5STbbratykIQGUPdUBg1a2t72bu31x+4ZYJMngNsG/AkZ2oqLiH6dJKHD7PFx2oSPalogwsUV7iSMIZIYaPa03A9763iFsN0qJjaed+gAAAIBxz3Prxdzt/os4XGXSMNoWcS03AFC/05NOkoDMrXxQnTTpp1wrOgyRqEnKz15qC5dWk1ynzK+LJXHDZGA8lXPfCjHpJO3zrlZ/ivvLhgPdDpt13MAhIJFH06hTal0woxbk/fIdY71P3kbgXC0Ppx/0S7BC+VxqRCA4/wcM+BoDbA=="
6
- }
2
+ {
3
+ "id": 103205,
4
+ "key": "ssh-dss AAAAB3NzaC1kc3MAAACBAJz7HanBa18ad1YsdFzHO5Wy1/WgXd4BV+czbKq7q23jungbfjN3eo2a0SVdxux8GG+RZ9ia90VD/X+PE4s3LV60oXZ7PDAuyPO1CTF0TaDoKf9mPaHcPa6agMJVocMsgBgwviWT1Q9VgN1SccDsYVDtxkIAwuw25YeHZlG6myx1AAAAFQCgW+OvXWUdUJPBGkRJ8ML7uf0VHQAAAIAlP5G96tTss0SKYVSCJCyocn9cyGQdNjxah4/aYuYFTbLI1rxk7sr/AkZfJNIoF2UFyO5STbbratykIQGUPdUBg1a2t72bu31x+4ZYJMngNsG/AkZ2oqLiH6dJKHD7PFx2oSPalogwsUV7iSMIZIYaPa03A9763iFsN0qJjaed+gAAAIBxz3Prxdzt/os4XGXSMNoWcS03AFC/05NOkoDMrXxQnTTpp1wrOgyRqEnKz15qC5dWk1ynzK+LJXHDZGA8lXPfCjHpJO3zrlZ/ivvLhgPdDpt13MAhIJFH06hTal0woxbk/fIdY71P3kbgXC0Ppx/0S7BC+VxqRCA4/wcM+BoDbA==",
5
+ "title": "Moss"
6
+ }
7
7
  ]
@@ -1,138 +1,138 @@
1
1
  {
2
- "title": "Pull this awesome v3 stuff",
3
- "url": "https://api.github.com/repos/ctshryock/octokit/pulls/15",
4
- "merged": false,
5
- "commits": 19,
6
- "additions": 5015,
7
- "created_at": "2012-02-11T16:12:31Z",
8
- "patch_url": "https://github.com/ctshryock/octokit/pull/15.patch",
9
- "merged_at": null,
10
- "number": 15,
11
- "issue_url": "https://github.com/ctshryock/octokit/issues/15",
12
- "deletions": 112,
13
- "head": {
14
- "ref": "api-version-3",
15
- "repo": {
16
- "svn_url": "https://github.com/ctshryock/octokit",
17
- "mirror_url": null,
18
- "url": "https://api.github.com/repos/ctshryock/octokit",
19
- "clone_url": "https://github.com/ctshryock/octokit.git",
20
- "created_at": "2011-04-29T18:43:10Z",
21
- "html_url": "https://github.com/ctshryock/octokit",
22
- "ssh_url": "git@github.com:ctshryock/octokit.git",
23
- "description": "Simple Ruby wrapper for the GitHub v2 API and feeds",
24
- "has_wiki": true,
25
- "forks": 0,
26
- "fork": true,
27
- "pushed_at": "2012-02-11T16:06:32Z",
28
- "watchers": 1,
29
- "open_issues": 1,
30
- "master_branch": null,
31
- "private": false,
32
- "homepage": "",
33
- "size": 140,
34
- "has_issues": true,
35
- "updated_at": "2012-02-11T16:06:34Z",
36
- "owner": {
37
- "url": "https://api.github.com/users/ctshryock",
38
- "avatar_url": "https://secure.gravatar.com/avatar/dfb3948650131e4f0385c3328187cfca?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
39
- "gravatar_id": "dfb3948650131e4f0385c3328187cfca",
40
- "login": "ctshryock",
41
- "id": 61721
42
- },
43
- "name": "octokit",
44
- "git_url": "git://github.com/ctshryock/octokit.git",
45
- "id": 1682040,
46
- "has_downloads": true,
47
- "language": "Ruby"
48
- },
49
- "sha": "3a3a3ca7ca0ca0026fca1bccfb090b4113a7e754",
50
- "label": "ctshryock:api-version-3",
2
+ "_links": {
3
+ "comments": {
4
+ "href": "https://api.github.com/repos/ctshryock/octokit/issues/15/comments"
5
+ },
6
+ "html": {
7
+ "href": "https://github.com/ctshryock/octokit/pull/15"
8
+ },
9
+ "review_comments": {
10
+ "href": "https://api.github.com/repos/ctshryock/octokit/pulls/15/comments"
11
+ },
12
+ "self": {
13
+ "href": "https://api.github.com/repos/ctshryock/octokit/pulls/15"
14
+ }
15
+ },
16
+ "additions": 5015,
17
+ "base": {
18
+ "label": "ctshryock:master",
19
+ "ref": "master",
20
+ "repo": {
21
+ "clone_url": "https://github.com/ctshryock/octokit.git",
22
+ "created_at": "2011-04-29T18:43:10Z",
23
+ "description": "Simple Ruby wrapper for the GitHub v2 API and feeds",
24
+ "fork": true,
25
+ "forks": 0,
26
+ "git_url": "git://github.com/ctshryock/octokit.git",
27
+ "has_downloads": true,
28
+ "has_issues": true,
29
+ "has_wiki": true,
30
+ "homepage": "",
31
+ "html_url": "https://github.com/ctshryock/octokit",
32
+ "id": 1682040,
33
+ "language": "Ruby",
34
+ "master_branch": null,
35
+ "mirror_url": null,
36
+ "name": "octokit",
37
+ "open_issues": 1,
38
+ "owner": {
39
+ "avatar_url": "https://secure.gravatar.com/avatar/dfb3948650131e4f0385c3328187cfca?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
40
+ "gravatar_id": "dfb3948650131e4f0385c3328187cfca",
41
+ "id": 61721,
42
+ "login": "ctshryock",
43
+ "url": "https://api.github.com/users/ctshryock"
44
+ },
45
+ "private": false,
46
+ "pushed_at": "2012-02-11T16:06:32Z",
47
+ "size": 140,
48
+ "ssh_url": "git@github.com:ctshryock/octokit.git",
49
+ "svn_url": "https://github.com/ctshryock/octokit",
50
+ "updated_at": "2012-02-11T16:06:34Z",
51
+ "url": "https://api.github.com/repos/ctshryock/octokit",
52
+ "watchers": 1
53
+ },
54
+ "sha": "89e255143524b71bd91f51d2ca31b7e8c90f398c",
55
+ "user": {
56
+ "avatar_url": "https://secure.gravatar.com/avatar/dfb3948650131e4f0385c3328187cfca?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
57
+ "gravatar_id": "dfb3948650131e4f0385c3328187cfca",
58
+ "id": 61721,
59
+ "login": "ctshryock",
60
+ "url": "https://api.github.com/users/ctshryock"
61
+ }
62
+ },
63
+ "body": "Here is more V3 stuff",
64
+ "changed_files": 15,
65
+ "closed_at": null,
66
+ "comments": 0,
67
+ "commits": 19,
68
+ "created_at": "2012-02-11T16:12:31Z",
69
+ "deletions": 112,
70
+ "diff_url": "https://github.com/ctshryock/octokit/pull/15.diff",
71
+ "head": {
72
+ "label": "ctshryock:api-version-3",
73
+ "ref": "api-version-3",
74
+ "repo": {
75
+ "clone_url": "https://github.com/ctshryock/octokit.git",
76
+ "created_at": "2011-04-29T18:43:10Z",
77
+ "description": "Simple Ruby wrapper for the GitHub v2 API and feeds",
78
+ "fork": true,
79
+ "forks": 0,
80
+ "git_url": "git://github.com/ctshryock/octokit.git",
81
+ "has_downloads": true,
82
+ "has_issues": true,
83
+ "has_wiki": true,
84
+ "homepage": "",
85
+ "html_url": "https://github.com/ctshryock/octokit",
86
+ "id": 1682040,
87
+ "language": "Ruby",
88
+ "master_branch": null,
89
+ "mirror_url": null,
90
+ "name": "octokit",
91
+ "open_issues": 1,
92
+ "owner": {
93
+ "avatar_url": "https://secure.gravatar.com/avatar/dfb3948650131e4f0385c3328187cfca?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
94
+ "gravatar_id": "dfb3948650131e4f0385c3328187cfca",
95
+ "id": 61721,
96
+ "login": "ctshryock",
97
+ "url": "https://api.github.com/users/ctshryock"
98
+ },
99
+ "private": false,
100
+ "pushed_at": "2012-02-11T16:06:32Z",
101
+ "size": 140,
102
+ "ssh_url": "git@github.com:ctshryock/octokit.git",
103
+ "svn_url": "https://github.com/ctshryock/octokit",
104
+ "updated_at": "2012-02-11T16:06:34Z",
105
+ "url": "https://api.github.com/repos/ctshryock/octokit",
106
+ "watchers": 1
107
+ },
108
+ "sha": "3a3a3ca7ca0ca0026fca1bccfb090b4113a7e754",
109
+ "user": {
110
+ "avatar_url": "https://secure.gravatar.com/avatar/dfb3948650131e4f0385c3328187cfca?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
111
+ "gravatar_id": "dfb3948650131e4f0385c3328187cfca",
112
+ "id": 61721,
113
+ "login": "ctshryock",
114
+ "url": "https://api.github.com/users/ctshryock"
115
+ }
116
+ },
117
+ "html_url": "https://github.com/ctshryock/octokit/pull/15",
118
+ "id": 815669,
119
+ "issue_url": "https://github.com/ctshryock/octokit/issues/15",
120
+ "mergeable": null,
121
+ "merged": false,
122
+ "merged_at": null,
123
+ "merged_by": null,
124
+ "number": 15,
125
+ "patch_url": "https://github.com/ctshryock/octokit/pull/15.patch",
126
+ "review_comments": 0,
127
+ "state": "open",
128
+ "title": "Pull this awesome v3 stuff",
129
+ "updated_at": "2012-02-11T16:12:31Z",
130
+ "url": "https://api.github.com/repos/ctshryock/octokit/pulls/15",
51
131
  "user": {
52
- "url": "https://api.github.com/users/ctshryock",
53
- "avatar_url": "https://secure.gravatar.com/avatar/dfb3948650131e4f0385c3328187cfca?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
54
- "gravatar_id": "dfb3948650131e4f0385c3328187cfca",
55
- "login": "ctshryock",
56
- "id": 61721
132
+ "avatar_url": "https://secure.gravatar.com/avatar/dfb3948650131e4f0385c3328187cfca?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
133
+ "gravatar_id": "dfb3948650131e4f0385c3328187cfca",
134
+ "id": 61721,
135
+ "login": "ctshryock",
136
+ "url": "https://api.github.com/users/ctshryock"
57
137
  }
58
- },
59
- "body": "Here is more V3 stuff",
60
- "html_url": "https://github.com/ctshryock/octokit/pull/15",
61
- "diff_url": "https://github.com/ctshryock/octokit/pull/15.diff",
62
- "base": {
63
- "ref": "master",
64
- "repo": {
65
- "svn_url": "https://github.com/ctshryock/octokit",
66
- "mirror_url": null,
67
- "url": "https://api.github.com/repos/ctshryock/octokit",
68
- "clone_url": "https://github.com/ctshryock/octokit.git",
69
- "created_at": "2011-04-29T18:43:10Z",
70
- "html_url": "https://github.com/ctshryock/octokit",
71
- "ssh_url": "git@github.com:ctshryock/octokit.git",
72
- "description": "Simple Ruby wrapper for the GitHub v2 API and feeds",
73
- "has_wiki": true,
74
- "forks": 0,
75
- "fork": true,
76
- "pushed_at": "2012-02-11T16:06:32Z",
77
- "watchers": 1,
78
- "open_issues": 1,
79
- "master_branch": null,
80
- "private": false,
81
- "homepage": "",
82
- "size": 140,
83
- "has_issues": true,
84
- "updated_at": "2012-02-11T16:06:34Z",
85
- "owner": {
86
- "url": "https://api.github.com/users/ctshryock",
87
- "avatar_url": "https://secure.gravatar.com/avatar/dfb3948650131e4f0385c3328187cfca?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
88
- "gravatar_id": "dfb3948650131e4f0385c3328187cfca",
89
- "login": "ctshryock",
90
- "id": 61721
91
- },
92
- "name": "octokit",
93
- "git_url": "git://github.com/ctshryock/octokit.git",
94
- "id": 1682040,
95
- "has_downloads": true,
96
- "language": "Ruby"
97
- },
98
- "sha": "89e255143524b71bd91f51d2ca31b7e8c90f398c",
99
- "label": "ctshryock:master",
100
- "user": {
101
- "url": "https://api.github.com/users/ctshryock",
102
- "avatar_url": "https://secure.gravatar.com/avatar/dfb3948650131e4f0385c3328187cfca?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
103
- "gravatar_id": "dfb3948650131e4f0385c3328187cfca",
104
- "login": "ctshryock",
105
- "id": 61721
106
- }
107
- },
108
- "mergeable": null,
109
- "comments": 0,
110
- "review_comments": 0,
111
- "_links": {
112
- "html": {
113
- "href": "https://github.com/ctshryock/octokit/pull/15"
114
- },
115
- "review_comments": {
116
- "href": "https://api.github.com/repos/ctshryock/octokit/pulls/15/comments"
117
- },
118
- "comments": {
119
- "href": "https://api.github.com/repos/ctshryock/octokit/issues/15/comments"
120
- },
121
- "self": {
122
- "href": "https://api.github.com/repos/ctshryock/octokit/pulls/15"
123
- }
124
- },
125
- "closed_at": null,
126
- "updated_at": "2012-02-11T16:12:31Z",
127
- "state": "open",
128
- "id": 815669,
129
- "merged_by": null,
130
- "changed_files": 15,
131
- "user": {
132
- "url": "https://api.github.com/users/ctshryock",
133
- "avatar_url": "https://secure.gravatar.com/avatar/dfb3948650131e4f0385c3328187cfca?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
134
- "gravatar_id": "dfb3948650131e4f0385c3328187cfca",
135
- "login": "ctshryock",
136
- "id": 61721
137
- }
138
138
  }
@@ -1,138 +1,138 @@
1
1
  {
2
- "title": "Added new paramater for github_url",
3
- "url": "https://api.github.com/repos/pengwynn/octokit/pulls/67",
4
- "merged": false,
5
- "commits": 1,
6
- "additions": 23,
7
- "_links": {
8
- "html": {
9
- "href": "https://github.com/pengwynn/octokit/pull/67"
10
- },
11
- "review_comments": {
12
- "href": "https://api.github.com/repos/pengwynn/octokit/pulls/67/comments"
13
- },
14
- "comments": {
15
- "href": "https://api.github.com/repos/pengwynn/octokit/issues/67/comments"
16
- },
17
- "self": {
18
- "href": "https://api.github.com/repos/pengwynn/octokit/pulls/67"
19
- }
20
- },
21
- "created_at": "2012-01-31T10:54:26Z",
22
- "merged_at": null,
23
- "number": 67,
24
- "issue_url": "https://github.com/pengwynn/octokit/issues/67",
25
- "deletions": 4,
26
- "changed_files": 3,
27
- "head": {
28
- "ref": "alter-url",
29
- "repo": {
30
- "git_url": "git://github.com/koichiro/octokit.git",
31
- "url": "https://api.github.com/repos/koichiro/octokit",
32
- "clone_url": "https://github.com/koichiro/octokit.git",
33
- "svn_url": "https://github.com/koichiro/octokit",
34
- "created_at": "2012-01-31T10:41:19Z",
35
- "has_issues": false,
36
- "html_url": "https://github.com/koichiro/octokit",
37
- "ssh_url": "git@github.com:koichiro/octokit.git",
38
- "description": "Simple Ruby wrapper for the GitHub v2, v3 API and feeds",
39
- "has_wiki": true,
40
- "master_branch": null,
41
- "forks": 0,
42
- "fork": true,
43
- "watchers": 1,
44
- "open_issues": 0,
45
- "private": false,
46
- "homepage": "",
47
- "size": 152,
48
- "mirror_url": null,
49
- "updated_at": "2012-01-31T10:53:02Z",
50
- "owner": {
51
- "url": "https://api.github.com/users/koichiro",
52
- "avatar_url": "https://secure.gravatar.com/avatar/1ce18b10bd8f911566c5577042b6a44c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
53
- "gravatar_id": "1ce18b10bd8f911566c5577042b6a44c",
54
- "login": "koichiro",
55
- "id": 9646
56
- },
57
- "name": "octokit",
58
- "id": 3313901,
59
- "has_downloads": true,
60
- "language": "Ruby",
61
- "pushed_at": "2012-01-31T10:53:02Z"
62
- },
63
- "sha": "2097821c7c5aa4dc02a2cc54d5ca51968b373f95",
64
- "label": "koichiro:alter-url",
65
- "user": {
66
- "url": "https://api.github.com/users/koichiro",
67
- "avatar_url": "https://secure.gravatar.com/avatar/1ce18b10bd8f911566c5577042b6a44c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
68
- "gravatar_id": "1ce18b10bd8f911566c5577042b6a44c",
69
- "login": "koichiro",
70
- "id": 9646
71
- }
72
- },
73
- "body": "Support github alternative sites.\r\nfor example: github:enterprise https://enterprise.github.com/",
74
- "patch_url": "https://github.com/pengwynn/octokit/pull/67.patch",
75
- "html_url": "https://github.com/pengwynn/octokit/pull/67",
76
- "base": {
77
- "ref": "master",
78
- "repo": {
79
- "git_url": "git://github.com/pengwynn/octokit.git",
80
- "url": "https://api.github.com/repos/pengwynn/octokit",
81
- "clone_url": "https://github.com/pengwynn/octokit.git",
82
- "svn_url": "https://github.com/pengwynn/octokit",
83
- "created_at": "2009-12-10T21:41:49Z",
84
- "has_issues": true,
85
- "html_url": "https://github.com/pengwynn/octokit",
86
- "ssh_url": "git@github.com:pengwynn/octokit.git",
87
- "description": "Simple Ruby wrapper for the GitHub v2, v3 API and feeds",
88
- "has_wiki": true,
89
- "master_branch": null,
90
- "forks": 45,
91
- "fork": false,
92
- "watchers": 170,
93
- "open_issues": 6,
94
- "private": false,
95
- "homepage": "",
96
- "size": 188,
97
- "mirror_url": null,
98
- "updated_at": "2012-02-09T06:27:01Z",
99
- "owner": {
100
- "url": "https://api.github.com/users/pengwynn",
101
- "avatar_url": "https://secure.gravatar.com/avatar/7e19cd5486b5d6dc1ef90e671ba52ae0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
102
- "gravatar_id": "7e19cd5486b5d6dc1ef90e671ba52ae0",
103
- "login": "pengwynn",
104
- "id": 865
105
- },
106
- "name": "octokit",
107
- "id": 417862,
108
- "has_downloads": true,
109
- "language": "Ruby",
110
- "pushed_at": "2012-02-05T23:56:13Z"
111
- },
112
- "sha": "9c5d4c76b42f535bc796f46d0bf7a5526b6066bb",
113
- "label": "pengwynn:master",
2
+ "_links": {
3
+ "comments": {
4
+ "href": "https://api.github.com/repos/pengwynn/octokit/issues/67/comments"
5
+ },
6
+ "html": {
7
+ "href": "https://github.com/pengwynn/octokit/pull/67"
8
+ },
9
+ "review_comments": {
10
+ "href": "https://api.github.com/repos/pengwynn/octokit/pulls/67/comments"
11
+ },
12
+ "self": {
13
+ "href": "https://api.github.com/repos/pengwynn/octokit/pulls/67"
14
+ }
15
+ },
16
+ "additions": 23,
17
+ "base": {
18
+ "label": "pengwynn:master",
19
+ "ref": "master",
20
+ "repo": {
21
+ "clone_url": "https://github.com/pengwynn/octokit.git",
22
+ "created_at": "2009-12-10T21:41:49Z",
23
+ "description": "Simple Ruby wrapper for the GitHub v2, v3 API and feeds",
24
+ "fork": false,
25
+ "forks": 45,
26
+ "git_url": "git://github.com/pengwynn/octokit.git",
27
+ "has_downloads": true,
28
+ "has_issues": true,
29
+ "has_wiki": true,
30
+ "homepage": "",
31
+ "html_url": "https://github.com/pengwynn/octokit",
32
+ "id": 417862,
33
+ "language": "Ruby",
34
+ "master_branch": null,
35
+ "mirror_url": null,
36
+ "name": "octokit",
37
+ "open_issues": 6,
38
+ "owner": {
39
+ "avatar_url": "https://secure.gravatar.com/avatar/7e19cd5486b5d6dc1ef90e671ba52ae0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
40
+ "gravatar_id": "7e19cd5486b5d6dc1ef90e671ba52ae0",
41
+ "id": 865,
42
+ "login": "pengwynn",
43
+ "url": "https://api.github.com/users/pengwynn"
44
+ },
45
+ "private": false,
46
+ "pushed_at": "2012-02-05T23:56:13Z",
47
+ "size": 188,
48
+ "ssh_url": "git@github.com:pengwynn/octokit.git",
49
+ "svn_url": "https://github.com/pengwynn/octokit",
50
+ "updated_at": "2012-02-09T06:27:01Z",
51
+ "url": "https://api.github.com/repos/pengwynn/octokit",
52
+ "watchers": 170
53
+ },
54
+ "sha": "9c5d4c76b42f535bc796f46d0bf7a5526b6066bb",
55
+ "user": {
56
+ "avatar_url": "https://secure.gravatar.com/avatar/7e19cd5486b5d6dc1ef90e671ba52ae0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
57
+ "gravatar_id": "7e19cd5486b5d6dc1ef90e671ba52ae0",
58
+ "id": 865,
59
+ "login": "pengwynn",
60
+ "url": "https://api.github.com/users/pengwynn"
61
+ }
62
+ },
63
+ "body": "Support github alternative sites.\r\nfor example: github:enterprise https://enterprise.github.com/",
64
+ "changed_files": 3,
65
+ "closed_at": null,
66
+ "comments": 2,
67
+ "commits": 1,
68
+ "created_at": "2012-01-31T10:54:26Z",
69
+ "deletions": 4,
70
+ "diff_url": "https://github.com/pengwynn/octokit/pull/67.diff",
71
+ "head": {
72
+ "label": "koichiro:alter-url",
73
+ "ref": "alter-url",
74
+ "repo": {
75
+ "clone_url": "https://github.com/koichiro/octokit.git",
76
+ "created_at": "2012-01-31T10:41:19Z",
77
+ "description": "Simple Ruby wrapper for the GitHub v2, v3 API and feeds",
78
+ "fork": true,
79
+ "forks": 0,
80
+ "git_url": "git://github.com/koichiro/octokit.git",
81
+ "has_downloads": true,
82
+ "has_issues": false,
83
+ "has_wiki": true,
84
+ "homepage": "",
85
+ "html_url": "https://github.com/koichiro/octokit",
86
+ "id": 3313901,
87
+ "language": "Ruby",
88
+ "master_branch": null,
89
+ "mirror_url": null,
90
+ "name": "octokit",
91
+ "open_issues": 0,
92
+ "owner": {
93
+ "avatar_url": "https://secure.gravatar.com/avatar/1ce18b10bd8f911566c5577042b6a44c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
94
+ "gravatar_id": "1ce18b10bd8f911566c5577042b6a44c",
95
+ "id": 9646,
96
+ "login": "koichiro",
97
+ "url": "https://api.github.com/users/koichiro"
98
+ },
99
+ "private": false,
100
+ "pushed_at": "2012-01-31T10:53:02Z",
101
+ "size": 152,
102
+ "ssh_url": "git@github.com:koichiro/octokit.git",
103
+ "svn_url": "https://github.com/koichiro/octokit",
104
+ "updated_at": "2012-01-31T10:53:02Z",
105
+ "url": "https://api.github.com/repos/koichiro/octokit",
106
+ "watchers": 1
107
+ },
108
+ "sha": "2097821c7c5aa4dc02a2cc54d5ca51968b373f95",
109
+ "user": {
110
+ "avatar_url": "https://secure.gravatar.com/avatar/1ce18b10bd8f911566c5577042b6a44c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
111
+ "gravatar_id": "1ce18b10bd8f911566c5577042b6a44c",
112
+ "id": 9646,
113
+ "login": "koichiro",
114
+ "url": "https://api.github.com/users/koichiro"
115
+ }
116
+ },
117
+ "html_url": "https://github.com/pengwynn/octokit/pull/67",
118
+ "id": 759706,
119
+ "issue_url": "https://github.com/pengwynn/octokit/issues/67",
120
+ "mergeable": true,
121
+ "merged": false,
122
+ "merged_at": null,
123
+ "merged_by": null,
124
+ "number": 67,
125
+ "patch_url": "https://github.com/pengwynn/octokit/pull/67.patch",
126
+ "review_comments": 1,
127
+ "state": "open",
128
+ "title": "Added new paramater for github_url",
129
+ "updated_at": "2012-01-31T14:26:49Z",
130
+ "url": "https://api.github.com/repos/pengwynn/octokit/pulls/67",
114
131
  "user": {
115
- "url": "https://api.github.com/users/pengwynn",
116
- "avatar_url": "https://secure.gravatar.com/avatar/7e19cd5486b5d6dc1ef90e671ba52ae0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
117
- "gravatar_id": "7e19cd5486b5d6dc1ef90e671ba52ae0",
118
- "login": "pengwynn",
119
- "id": 865
132
+ "avatar_url": "https://secure.gravatar.com/avatar/1ce18b10bd8f911566c5577042b6a44c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
133
+ "gravatar_id": "1ce18b10bd8f911566c5577042b6a44c",
134
+ "id": 9646,
135
+ "login": "koichiro",
136
+ "url": "https://api.github.com/users/koichiro"
120
137
  }
121
- },
122
- "mergeable": true,
123
- "comments": 2,
124
- "review_comments": 1,
125
- "closed_at": null,
126
- "updated_at": "2012-01-31T14:26:49Z",
127
- "state": "open",
128
- "diff_url": "https://github.com/pengwynn/octokit/pull/67.diff",
129
- "id": 759706,
130
- "merged_by": null,
131
- "user": {
132
- "url": "https://api.github.com/users/koichiro",
133
- "avatar_url": "https://secure.gravatar.com/avatar/1ce18b10bd8f911566c5577042b6a44c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
134
- "gravatar_id": "1ce18b10bd8f911566c5577042b6a44c",
135
- "login": "koichiro",
136
- "id": 9646
137
- }
138
138
  }