octokit 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +2 -2
- data/CHANGELOG.md +1 -0
- data/README.md +46 -24
- data/Rakefile +0 -0
- data/lib/octokit/authentication.rb +1 -3
- data/lib/octokit/client.rb +3 -1
- data/lib/octokit/client/commits.rb +3 -2
- data/lib/octokit/client/issues.rb +11 -62
- data/lib/octokit/client/labels.rb +153 -0
- data/lib/octokit/client/milestones.rb +1 -1
- data/lib/octokit/client/pub_sub_hubbub/service_hooks.rb +2 -4
- data/lib/octokit/client/repositories.rb +41 -31
- data/lib/octokit/client/timelines.rb +1 -2
- data/lib/octokit/configuration.rb +5 -12
- data/lib/octokit/repository.rb +1 -1
- data/lib/octokit/version.rb +1 -1
- data/octokit.gemspec +16 -25
- data/spec/fixtures/v3/branches.json +16 -0
- data/spec/fixtures/v3/collaborators.json +62 -0
- data/spec/fixtures/v3/commit.json +1 -0
- data/spec/fixtures/v3/commits.json +1 -0
- data/spec/fixtures/v3/contributors.json +891 -0
- data/spec/fixtures/v3/forks.json +872 -0
- data/spec/fixtures/v3/labels.json +3 -3
- data/spec/fixtures/v3/languages.json +5 -0
- data/spec/fixtures/v3/public_key.json +5 -0
- data/spec/fixtures/v3/public_keys.json +7 -0
- data/spec/fixtures/v3/repositories.json +872 -0
- data/spec/fixtures/v3/repository.json +34 -0
- data/spec/fixtures/v3/tags.json +173 -0
- data/spec/fixtures/v3/teams.json +12 -0
- data/spec/fixtures/v3/watchers.json +182 -0
- data/spec/helper.rb +3 -3
- data/spec/octokit/client/commits_spec.rb +5 -5
- data/spec/octokit/client/issues_spec.rb +14 -61
- data/spec/octokit/client/labels_spec.rb +152 -0
- data/spec/octokit/client/milestones_spec.rb +6 -6
- data/spec/octokit/client/objects_spec.rb +6 -6
- data/spec/octokit/client/organizations_spec.rb +19 -19
- data/spec/octokit/client/pub_sub_hubbub/service_hooks_spec.rb +2 -2
- data/spec/octokit/client/pub_sub_hubbub_spec.rb +3 -3
- data/spec/octokit/client/pulls_spec.rb +4 -4
- data/spec/octokit/client/repositories_spec.rb +81 -80
- data/spec/octokit/client/timelines_spec.rb +3 -3
- data/spec/octokit/client/users_spec.rb +21 -21
- data/spec/octokit/client_spec.rb +1 -11
- data/spec/octokit_spec.rb +1 -1
- metadata +125 -215
- data/.autotest +0 -1
- data/spec/fixtures/v2/branches.json +0 -1
- data/spec/fixtures/v2/collaborators.json +0 -1
- data/spec/fixtures/v2/commit.json +0 -1
- data/spec/fixtures/v2/commits.json +0 -1
- data/spec/fixtures/v2/contributors.json +0 -1
- data/spec/fixtures/v2/languages.json +0 -1
- data/spec/fixtures/v2/network.json +0 -1
- data/spec/fixtures/v2/repository.json +0 -1
- data/spec/fixtures/v2/watchers.json +0 -1
@@ -0,0 +1,34 @@
|
|
1
|
+
{
|
2
|
+
"updated_at": "2011-09-02T07:58:55Z",
|
3
|
+
"forks": 397,
|
4
|
+
"has_wiki": true,
|
5
|
+
"pushed_at": "2011-09-02T07:15:19Z",
|
6
|
+
"description": "RailsAdmin is a Rails 3 engine that provides an easy-to-use interface for managing your data",
|
7
|
+
"open_issues": 67,
|
8
|
+
"html_url": "https://github.com/sferik/rails_admin",
|
9
|
+
"created_at": "2010-08-01T17:01:00Z",
|
10
|
+
"has_issues": true,
|
11
|
+
"fork": false,
|
12
|
+
"watchers": 2299,
|
13
|
+
"git_url": "git://github.com/sferik/rails_admin.git",
|
14
|
+
"integrate_branch": "master",
|
15
|
+
"homepage": "",
|
16
|
+
"mirror_url": null,
|
17
|
+
"language": "JavaScript",
|
18
|
+
"private": false,
|
19
|
+
"size": 2748,
|
20
|
+
"svn_url": "https://svn.github.com/sferik/rails_admin",
|
21
|
+
"master_branch": null,
|
22
|
+
"owner": {
|
23
|
+
"login": "sferik",
|
24
|
+
"avatar_url": "https://secure.gravatar.com/avatar/1f74b13f1e5c6c69cb5d7fbaabb1e2cb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
25
|
+
"id": 10308,
|
26
|
+
"url": "https://api.github.com/users/sferik"
|
27
|
+
},
|
28
|
+
"name": "rails_admin",
|
29
|
+
"clone_url": "https://github.com/sferik/rails_admin.git",
|
30
|
+
"ssh_url": "git@github.com:sferik/rails_admin.git",
|
31
|
+
"has_downloads": true,
|
32
|
+
"id": 810796,
|
33
|
+
"url": "https://api.github.com/repos/sferik/rails_admin"
|
34
|
+
}
|
@@ -0,0 +1,173 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"zipball_url": "https://github.com/pengwynn/octokit/zipball/v0.1.0",
|
4
|
+
"commit": {
|
5
|
+
"sha": "841be65ccaaad2f01db2eeff7171a0bcde3e059e",
|
6
|
+
"url": "https://api.github.com/repos/pengwynn/octokit/commits/841be65ccaaad2f01db2eeff7171a0bcde3e059e"
|
7
|
+
},
|
8
|
+
"tarball_url": "https://github.com/pengwynn/octokit/tarball/v0.1.0",
|
9
|
+
"name": "v0.1.0"
|
10
|
+
},
|
11
|
+
{
|
12
|
+
"zipball_url": "https://github.com/pengwynn/octokit/zipball/v0.0.1",
|
13
|
+
"commit": {
|
14
|
+
"sha": "0d7a03f2035ecd74e4d6eb9be58865c2a688ee55",
|
15
|
+
"url": "https://api.github.com/repos/pengwynn/octokit/commits/0d7a03f2035ecd74e4d6eb9be58865c2a688ee55"
|
16
|
+
},
|
17
|
+
"tarball_url": "https://github.com/pengwynn/octokit/tarball/v0.0.1",
|
18
|
+
"name": "v0.0.1"
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"zipball_url": "https://github.com/pengwynn/octokit/zipball/v0.2.0",
|
22
|
+
"commit": {
|
23
|
+
"sha": "41d0ac1e34b8b62a69d6e3edb6981feecce3b2ef",
|
24
|
+
"url": "https://api.github.com/repos/pengwynn/octokit/commits/41d0ac1e34b8b62a69d6e3edb6981feecce3b2ef"
|
25
|
+
},
|
26
|
+
"tarball_url": "https://github.com/pengwynn/octokit/tarball/v0.2.0",
|
27
|
+
"name": "v0.2.0"
|
28
|
+
},
|
29
|
+
{
|
30
|
+
"zipball_url": "https://github.com/pengwynn/octokit/zipball/v0.1.1",
|
31
|
+
"commit": {
|
32
|
+
"sha": "b116920ce893e62c5b78dd25e34d11c0f2939fb7",
|
33
|
+
"url": "https://api.github.com/repos/pengwynn/octokit/commits/b116920ce893e62c5b78dd25e34d11c0f2939fb7"
|
34
|
+
},
|
35
|
+
"tarball_url": "https://github.com/pengwynn/octokit/tarball/v0.1.1",
|
36
|
+
"name": "v0.1.1"
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"zipball_url": "https://github.com/pengwynn/octokit/zipball/v0.2.1",
|
40
|
+
"commit": {
|
41
|
+
"sha": "3b02fc367fb7db1f9c8a24a7e8a89ad0459e319b",
|
42
|
+
"url": "https://api.github.com/repos/pengwynn/octokit/commits/3b02fc367fb7db1f9c8a24a7e8a89ad0459e319b"
|
43
|
+
},
|
44
|
+
"tarball_url": "https://github.com/pengwynn/octokit/tarball/v0.2.1",
|
45
|
+
"name": "v0.2.1"
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"zipball_url": "https://github.com/pengwynn/octokit/zipball/v0.1.2",
|
49
|
+
"commit": {
|
50
|
+
"sha": "469365fa47b660fed2ad94970d527b0390bfc711",
|
51
|
+
"url": "https://api.github.com/repos/pengwynn/octokit/commits/469365fa47b660fed2ad94970d527b0390bfc711"
|
52
|
+
},
|
53
|
+
"tarball_url": "https://github.com/pengwynn/octokit/tarball/v0.1.2",
|
54
|
+
"name": "v0.1.2"
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"zipball_url": "https://github.com/pengwynn/octokit/zipball/v0.2.2",
|
58
|
+
"commit": {
|
59
|
+
"sha": "4c1b9fcbe1f812c49c26f973f4b059df63df8f6c",
|
60
|
+
"url": "https://api.github.com/repos/pengwynn/octokit/commits/4c1b9fcbe1f812c49c26f973f4b059df63df8f6c"
|
61
|
+
},
|
62
|
+
"tarball_url": "https://github.com/pengwynn/octokit/tarball/v0.2.2",
|
63
|
+
"name": "v0.2.2"
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"zipball_url": "https://github.com/pengwynn/octokit/zipball/v0.1.3",
|
67
|
+
"commit": {
|
68
|
+
"sha": "5b129b15611342fa69b135e1bf2753bedcec7fbc",
|
69
|
+
"url": "https://api.github.com/repos/pengwynn/octokit/commits/5b129b15611342fa69b135e1bf2753bedcec7fbc"
|
70
|
+
},
|
71
|
+
"tarball_url": "https://github.com/pengwynn/octokit/tarball/v0.1.3",
|
72
|
+
"name": "v0.1.3"
|
73
|
+
},
|
74
|
+
{
|
75
|
+
"zipball_url": "https://github.com/pengwynn/octokit/zipball/v0.5.0",
|
76
|
+
"commit": {
|
77
|
+
"sha": "d607805ebc1b97e684fc1967a9ff146a844393eb",
|
78
|
+
"url": "https://api.github.com/repos/pengwynn/octokit/commits/d607805ebc1b97e684fc1967a9ff146a844393eb"
|
79
|
+
},
|
80
|
+
"tarball_url": "https://github.com/pengwynn/octokit/tarball/v0.5.0",
|
81
|
+
"name": "v0.5.0"
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"zipball_url": "https://github.com/pengwynn/octokit/zipball/v0.4.1",
|
85
|
+
"commit": {
|
86
|
+
"sha": "b25de5e3d70ae89326738872c51f0ec54163312c",
|
87
|
+
"url": "https://api.github.com/repos/pengwynn/octokit/commits/b25de5e3d70ae89326738872c51f0ec54163312c"
|
88
|
+
},
|
89
|
+
"tarball_url": "https://github.com/pengwynn/octokit/tarball/v0.4.1",
|
90
|
+
"name": "v0.4.1"
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"zipball_url": "https://github.com/pengwynn/octokit/zipball/v0.2.3",
|
94
|
+
"commit": {
|
95
|
+
"sha": "1e87f1640f0e7b6d3854cdf9d089092d9118be6c",
|
96
|
+
"url": "https://api.github.com/repos/pengwynn/octokit/commits/1e87f1640f0e7b6d3854cdf9d089092d9118be6c"
|
97
|
+
},
|
98
|
+
"tarball_url": "https://github.com/pengwynn/octokit/tarball/v0.2.3",
|
99
|
+
"name": "v0.2.3"
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"zipball_url": "https://github.com/pengwynn/octokit/zipball/v0.1.4",
|
103
|
+
"commit": {
|
104
|
+
"sha": "03ee3f302f99162d5c08f256dbdeef3c96fce25e",
|
105
|
+
"url": "https://api.github.com/repos/pengwynn/octokit/commits/03ee3f302f99162d5c08f256dbdeef3c96fce25e"
|
106
|
+
},
|
107
|
+
"tarball_url": "https://github.com/pengwynn/octokit/tarball/v0.1.4",
|
108
|
+
"name": "v0.1.4"
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"zipball_url": "https://github.com/pengwynn/octokit/zipball/v0.5.1",
|
112
|
+
"commit": {
|
113
|
+
"sha": "8666efd47a3a78a3c666ae208962420a324467f2",
|
114
|
+
"url": "https://api.github.com/repos/pengwynn/octokit/commits/8666efd47a3a78a3c666ae208962420a324467f2"
|
115
|
+
},
|
116
|
+
"tarball_url": "https://github.com/pengwynn/octokit/tarball/v0.5.1",
|
117
|
+
"name": "v0.5.1"
|
118
|
+
},
|
119
|
+
{
|
120
|
+
"zipball_url": "https://github.com/pengwynn/octokit/zipball/v0.6.0",
|
121
|
+
"commit": {
|
122
|
+
"sha": "29a1fdd41de7988b94815477d6dd0647dd31c464",
|
123
|
+
"url": "https://api.github.com/repos/pengwynn/octokit/commits/29a1fdd41de7988b94815477d6dd0647dd31c464"
|
124
|
+
},
|
125
|
+
"tarball_url": "https://github.com/pengwynn/octokit/tarball/v0.6.0",
|
126
|
+
"name": "v0.6.0"
|
127
|
+
},
|
128
|
+
{
|
129
|
+
"zipball_url": "https://github.com/pengwynn/octokit/zipball/v0.5.2",
|
130
|
+
"commit": {
|
131
|
+
"sha": "8c7c6222f11e203cea43d30d33608b87a3bf7ca0",
|
132
|
+
"url": "https://api.github.com/repos/pengwynn/octokit/commits/8c7c6222f11e203cea43d30d33608b87a3bf7ca0"
|
133
|
+
},
|
134
|
+
"tarball_url": "https://github.com/pengwynn/octokit/tarball/v0.5.2",
|
135
|
+
"name": "v0.5.2"
|
136
|
+
},
|
137
|
+
{
|
138
|
+
"zipball_url": "https://github.com/pengwynn/octokit/zipball/v0.6.1",
|
139
|
+
"commit": {
|
140
|
+
"sha": "f1419f5d48896da0c40e134783e4a27529ecf45a",
|
141
|
+
"url": "https://api.github.com/repos/pengwynn/octokit/commits/f1419f5d48896da0c40e134783e4a27529ecf45a"
|
142
|
+
},
|
143
|
+
"tarball_url": "https://github.com/pengwynn/octokit/tarball/v0.6.1",
|
144
|
+
"name": "v0.6.1"
|
145
|
+
},
|
146
|
+
{
|
147
|
+
"zipball_url": "https://github.com/pengwynn/octokit/zipball/v0.6.2",
|
148
|
+
"commit": {
|
149
|
+
"sha": "e5630f9cb5ef9a28b43bcee148283ed99f44a64d",
|
150
|
+
"url": "https://api.github.com/repos/pengwynn/octokit/commits/e5630f9cb5ef9a28b43bcee148283ed99f44a64d"
|
151
|
+
},
|
152
|
+
"tarball_url": "https://github.com/pengwynn/octokit/tarball/v0.6.2",
|
153
|
+
"name": "v0.6.2"
|
154
|
+
},
|
155
|
+
{
|
156
|
+
"zipball_url": "https://github.com/pengwynn/octokit/zipball/v0.6.3",
|
157
|
+
"commit": {
|
158
|
+
"sha": "c8828b22ce0885cb76a3a5619837212eeb63607c",
|
159
|
+
"url": "https://api.github.com/repos/pengwynn/octokit/commits/c8828b22ce0885cb76a3a5619837212eeb63607c"
|
160
|
+
},
|
161
|
+
"tarball_url": "https://github.com/pengwynn/octokit/tarball/v0.6.3",
|
162
|
+
"name": "v0.6.3"
|
163
|
+
},
|
164
|
+
{
|
165
|
+
"zipball_url": "https://github.com/pengwynn/octokit/zipball/v0.6.4",
|
166
|
+
"commit": {
|
167
|
+
"sha": "09bcc30e7286eeb1bbde68d0ace7a6b90b1a84a2",
|
168
|
+
"url": "https://api.github.com/repos/pengwynn/octokit/commits/09bcc30e7286eeb1bbde68d0ace7a6b90b1a84a2"
|
169
|
+
},
|
170
|
+
"tarball_url": "https://github.com/pengwynn/octokit/tarball/v0.6.4",
|
171
|
+
"name": "v0.6.4"
|
172
|
+
}
|
173
|
+
]
|
@@ -0,0 +1,182 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"login": "sferik",
|
4
|
+
"avatar_url": "https://secure.gravatar.com/avatar/1f74b13f1e5c6c69cb5d7fbaabb1e2cb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
5
|
+
"id": 10308,
|
6
|
+
"url": "https://api.github.com/users/sferik"
|
7
|
+
},
|
8
|
+
{
|
9
|
+
"login": "reddavis",
|
10
|
+
"avatar_url": "https://secure.gravatar.com/avatar/8ff2e3d23012979b285f97c33c8f43ba?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
11
|
+
"id": 3002,
|
12
|
+
"url": "https://api.github.com/users/reddavis"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"login": "hurrycane",
|
16
|
+
"avatar_url": "https://secure.gravatar.com/avatar/dfa3143343f3680753e0ae09de57bcd6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
17
|
+
"id": 2641,
|
18
|
+
"url": "https://api.github.com/users/hurrycane"
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"login": "wycats",
|
22
|
+
"avatar_url": "https://secure.gravatar.com/avatar/428167a3ec72235ba971162924492609?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
23
|
+
"id": 4,
|
24
|
+
"url": "https://api.github.com/users/wycats"
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"login": "Psli",
|
28
|
+
"avatar_url": "https://secure.gravatar.com/avatar/4dd5eeec0e5a4d235233dd88931a7804?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
29
|
+
"id": 43417,
|
30
|
+
"url": "https://api.github.com/users/Psli"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"login": "gigamo",
|
34
|
+
"avatar_url": "https://secure.gravatar.com/avatar/23543848894f7af28866ccf2e0bd185b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
35
|
+
"id": 5977,
|
36
|
+
"url": "https://api.github.com/users/gigamo"
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"login": "stevehodgkiss",
|
40
|
+
"avatar_url": "https://secure.gravatar.com/avatar/67f6edecce4458e1f97764ad65fe5be9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
41
|
+
"id": 62331,
|
42
|
+
"url": "https://api.github.com/users/stevehodgkiss"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"login": "drogus",
|
46
|
+
"avatar_url": "https://secure.gravatar.com/avatar/582034b63279abeaa8e76acf12f5ee30?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
47
|
+
"id": 5004,
|
48
|
+
"url": "https://api.github.com/users/drogus"
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"login": "digx",
|
52
|
+
"avatar_url": "https://secure.gravatar.com/avatar/debde181b3a5925bb347193b7568de6d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
53
|
+
"id": 1114,
|
54
|
+
"url": "https://api.github.com/users/digx"
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"login": "rubyorchard",
|
58
|
+
"avatar_url": "https://secure.gravatar.com/avatar/63b09042812754c8e25faf71e3c3f09c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
59
|
+
"id": 169271,
|
60
|
+
"url": "https://api.github.com/users/rubyorchard"
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"login": "zhengjia",
|
64
|
+
"avatar_url": "https://secure.gravatar.com/avatar/a434c7b2837e1d09bc1a32b17e3ca2a6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
65
|
+
"id": 192933,
|
66
|
+
"url": "https://api.github.com/users/zhengjia"
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"login": "sr3d",
|
70
|
+
"avatar_url": "https://secure.gravatar.com/avatar/422a492216af1bcad85496da9c0657d3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
71
|
+
"id": 12169,
|
72
|
+
"url": "https://api.github.com/users/sr3d"
|
73
|
+
},
|
74
|
+
{
|
75
|
+
"login": "kaapa",
|
76
|
+
"avatar_url": "https://secure.gravatar.com/avatar/40a0afa49eb7b12db4dcda70b2e1520d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
77
|
+
"id": 215071,
|
78
|
+
"url": "https://api.github.com/users/kaapa"
|
79
|
+
},
|
80
|
+
{
|
81
|
+
"login": "eXine",
|
82
|
+
"avatar_url": "https://secure.gravatar.com/avatar/1b9ab6d97d87242d04385928dd10d665?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
83
|
+
"id": 97366,
|
84
|
+
"url": "https://api.github.com/users/eXine"
|
85
|
+
},
|
86
|
+
{
|
87
|
+
"login": "simonomis",
|
88
|
+
"avatar_url": "https://secure.gravatar.com/avatar/e21ea082781b0d150cfe15c3223549bf?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
89
|
+
"id": 158660,
|
90
|
+
"url": "https://api.github.com/users/simonomis"
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"login": "brunomalvestuto",
|
94
|
+
"avatar_url": "https://secure.gravatar.com/avatar/7502b2ff04e7446bbc26a06081cbf5ed?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
95
|
+
"id": 101274,
|
96
|
+
"url": "https://api.github.com/users/brunomalvestuto"
|
97
|
+
},
|
98
|
+
{
|
99
|
+
"login": "galuto",
|
100
|
+
"avatar_url": "https://secure.gravatar.com/avatar/e7a8287a95384365aebea228018e450b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
101
|
+
"id": 105954,
|
102
|
+
"url": "https://api.github.com/users/galuto"
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"login": "brainopia",
|
106
|
+
"avatar_url": "https://secure.gravatar.com/avatar/254513687a01330ba0ae676538de459b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
107
|
+
"id": 386,
|
108
|
+
"url": "https://api.github.com/users/brainopia"
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"login": "rozaliev",
|
112
|
+
"avatar_url": "https://secure.gravatar.com/avatar/e406931fbeece385c032f601968928b1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
113
|
+
"id": 120809,
|
114
|
+
"url": "https://api.github.com/users/rozaliev"
|
115
|
+
},
|
116
|
+
{
|
117
|
+
"login": "lucasts",
|
118
|
+
"avatar_url": "https://secure.gravatar.com/avatar/2a03308b3abcbb395a2825cfe3d5f710?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
119
|
+
"id": 6397,
|
120
|
+
"url": "https://api.github.com/users/lucasts"
|
121
|
+
},
|
122
|
+
{
|
123
|
+
"login": "slawosz",
|
124
|
+
"avatar_url": "https://secure.gravatar.com/avatar/c544188078900e5d5976689949177f11?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
125
|
+
"id": 11747,
|
126
|
+
"url": "https://api.github.com/users/slawosz"
|
127
|
+
},
|
128
|
+
{
|
129
|
+
"login": "shanlalit",
|
130
|
+
"avatar_url": "https://secure.gravatar.com/avatar/ac6a1517accfdf91ef9c3906b19ff02c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
131
|
+
"id": 6775,
|
132
|
+
"url": "https://api.github.com/users/shanlalit"
|
133
|
+
},
|
134
|
+
{
|
135
|
+
"login": "grigio",
|
136
|
+
"avatar_url": "https://secure.gravatar.com/avatar/a1bc8563b294df7078d1ce3d634f5d17?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
137
|
+
"id": 8074,
|
138
|
+
"url": "https://api.github.com/users/grigio"
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"login": "tokumine",
|
142
|
+
"avatar_url": "https://secure.gravatar.com/avatar/b6cf17bb9061afa615e86ce7f11da016?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
143
|
+
"id": 7192,
|
144
|
+
"url": "https://api.github.com/users/tokumine"
|
145
|
+
},
|
146
|
+
{
|
147
|
+
"login": "xlcrs",
|
148
|
+
"avatar_url": "https://secure.gravatar.com/avatar/97822aeb6cea1c6b6e6a7170c6e96fd8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
149
|
+
"id": 101310,
|
150
|
+
"url": "https://api.github.com/users/xlcrs"
|
151
|
+
},
|
152
|
+
{
|
153
|
+
"login": "myabc",
|
154
|
+
"avatar_url": "https://secure.gravatar.com/avatar/f08aeb02079e7f486b270e4ed094f638?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
155
|
+
"id": 755,
|
156
|
+
"url": "https://api.github.com/users/myabc"
|
157
|
+
},
|
158
|
+
{
|
159
|
+
"login": "dmitry",
|
160
|
+
"avatar_url": "https://secure.gravatar.com/avatar/832ed6ace46d61032151f4e1864c057f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
161
|
+
"id": 5091,
|
162
|
+
"url": "https://api.github.com/users/dmitry"
|
163
|
+
},
|
164
|
+
{
|
165
|
+
"login": "plukevdh",
|
166
|
+
"avatar_url": "https://secure.gravatar.com/avatar/0945810eafa4ac5387084a7815488579?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
167
|
+
"id": 16054,
|
168
|
+
"url": "https://api.github.com/users/plukevdh"
|
169
|
+
},
|
170
|
+
{
|
171
|
+
"login": "sunny36",
|
172
|
+
"avatar_url": "https://secure.gravatar.com/avatar/b444b54fb4349a617b68f55ed923ca7e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
173
|
+
"id": 49547,
|
174
|
+
"url": "https://api.github.com/users/sunny36"
|
175
|
+
},
|
176
|
+
{
|
177
|
+
"login": "zmack",
|
178
|
+
"avatar_url": "https://secure.gravatar.com/avatar/75cb325d7b55a6659fc050f6fa822c7c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
|
179
|
+
"id": 1037,
|
180
|
+
"url": "https://api.github.com/users/zmack"
|
181
|
+
}
|
182
|
+
]
|
data/spec/helper.rb
CHANGED
@@ -58,10 +58,10 @@ def github_url(url)
|
|
58
58
|
if url =~ /^http/
|
59
59
|
url
|
60
60
|
elsif @client && @client.authenticated?
|
61
|
-
"https://pengwynn%2Ftoken:OU812@github.com#{url}"
|
61
|
+
"https://pengwynn%2Ftoken:OU812@api.github.com#{url}"
|
62
62
|
elsif @client && @client.oauthed?
|
63
|
-
"https://github.com#{url}?access_token=#{@client.oauth_token}"
|
63
|
+
"https://api.github.com#{url}?access_token=#{@client.oauth_token}"
|
64
64
|
else
|
65
|
-
"https://github.com#{url}"
|
65
|
+
"https://api.github.com#{url}"
|
66
66
|
end
|
67
67
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
require 'helper'
|
3
3
|
|
4
|
-
describe Octokit::Client::
|
4
|
+
describe Octokit::Client::Commits do
|
5
5
|
|
6
6
|
before do
|
7
7
|
@client = Octokit::Client.new(:login => 'sferik')
|
@@ -10,8 +10,8 @@ describe Octokit::Client::Pulls do
|
|
10
10
|
describe ".commits" do
|
11
11
|
|
12
12
|
it "should return all commits" do
|
13
|
-
stub_get("/
|
14
|
-
to_return(:body => fixture("
|
13
|
+
stub_get("/repos/sferik/rails_admin/commits?per_page=35&sha=master").
|
14
|
+
to_return(:body => fixture("v3/commits.json"))
|
15
15
|
commits = @client.commits("sferik/rails_admin")
|
16
16
|
commits.first.author.login.should == "caboteria"
|
17
17
|
end
|
@@ -21,8 +21,8 @@ describe Octokit::Client::Pulls do
|
|
21
21
|
describe ".commit" do
|
22
22
|
|
23
23
|
it "should return a commit" do
|
24
|
-
stub_get("/
|
25
|
-
to_return(:body => fixture("
|
24
|
+
stub_get("/repos/sferik/rails_admin/commits/3cdfabd973bc3caac209cba903cfdb3bf6636bcd").
|
25
|
+
to_return(:body => fixture("v3/commit.json"))
|
26
26
|
commit = @client.commit("sferik/rails_admin", "3cdfabd973bc3caac209cba903cfdb3bf6636bcd")
|
27
27
|
commit.author.login.should == "caboteria"
|
28
28
|
end
|