github_api 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. data/LICENSE.txt +20 -0
  2. data/README.rdoc +228 -0
  3. data/Rakefile +52 -0
  4. data/features/github_api.feature +50 -0
  5. data/features/options.feature +4 -0
  6. data/features/pagination.feature +4 -0
  7. data/features/step_definitions/github_api_steps.rb +11 -0
  8. data/features/support/env.rb +13 -0
  9. data/lib/github_api.rb +73 -0
  10. data/lib/github_api/api.rb +175 -0
  11. data/lib/github_api/api/utils.rb +9 -0
  12. data/lib/github_api/authorization.rb +73 -0
  13. data/lib/github_api/authorizations.rb +119 -0
  14. data/lib/github_api/cache_control.rb +19 -0
  15. data/lib/github_api/client.rb +55 -0
  16. data/lib/github_api/compatibility.rb +23 -0
  17. data/lib/github_api/configuration.rb +96 -0
  18. data/lib/github_api/connection.rb +75 -0
  19. data/lib/github_api/core_ext/array.rb +14 -0
  20. data/lib/github_api/core_ext/hash.rb +42 -0
  21. data/lib/github_api/error.rb +35 -0
  22. data/lib/github_api/events.rb +202 -0
  23. data/lib/github_api/gists.rb +200 -0
  24. data/lib/github_api/gists/comments.rb +86 -0
  25. data/lib/github_api/git_data.rb +26 -0
  26. data/lib/github_api/git_data/blobs.rb +51 -0
  27. data/lib/github_api/git_data/commits.rb +78 -0
  28. data/lib/github_api/git_data/references.rb +113 -0
  29. data/lib/github_api/git_data/tags.rb +78 -0
  30. data/lib/github_api/git_data/trees.rb +89 -0
  31. data/lib/github_api/issues.rb +215 -0
  32. data/lib/github_api/issues/comments.rb +123 -0
  33. data/lib/github_api/issues/events.rb +54 -0
  34. data/lib/github_api/issues/labels.rb +191 -0
  35. data/lib/github_api/issues/milestones.rb +140 -0
  36. data/lib/github_api/mime_type.rb +55 -0
  37. data/lib/github_api/orgs.rb +95 -0
  38. data/lib/github_api/orgs/members.rb +120 -0
  39. data/lib/github_api/orgs/teams.rb +245 -0
  40. data/lib/github_api/pull_requests.rb +224 -0
  41. data/lib/github_api/pull_requests/comments.rb +144 -0
  42. data/lib/github_api/repos.rb +286 -0
  43. data/lib/github_api/repos/collaborators.rb +81 -0
  44. data/lib/github_api/repos/commits.rb +180 -0
  45. data/lib/github_api/repos/downloads.rb +155 -0
  46. data/lib/github_api/repos/forks.rb +48 -0
  47. data/lib/github_api/repos/hooks.rb +174 -0
  48. data/lib/github_api/repos/keys.rb +104 -0
  49. data/lib/github_api/repos/pub_sub_hubbub.rb +102 -0
  50. data/lib/github_api/repos/watching.rb +94 -0
  51. data/lib/github_api/request.rb +84 -0
  52. data/lib/github_api/request/basic_auth.rb +31 -0
  53. data/lib/github_api/request/caching.rb +33 -0
  54. data/lib/github_api/request/oauth2.rb +33 -0
  55. data/lib/github_api/response.rb +28 -0
  56. data/lib/github_api/response/helpers.rb +14 -0
  57. data/lib/github_api/response/jsonize.rb +26 -0
  58. data/lib/github_api/response/mashify.rb +24 -0
  59. data/lib/github_api/response/raise_error.rb +33 -0
  60. data/lib/github_api/result.rb +42 -0
  61. data/lib/github_api/users.rb +84 -0
  62. data/lib/github_api/users/emails.rb +49 -0
  63. data/lib/github_api/users/followers.rb +98 -0
  64. data/lib/github_api/users/keys.rb +84 -0
  65. data/lib/github_api/version.rb +12 -0
  66. data/spec/README.rdoc +22 -0
  67. data/spec/coverage_adapter.rb +15 -0
  68. data/spec/fixtures/auths/authorization.json +14 -0
  69. data/spec/fixtures/auths/authorizations.json +16 -0
  70. data/spec/fixtures/events/events.json +29 -0
  71. data/spec/fixtures/issues/comment.json +13 -0
  72. data/spec/fixtures/issues/comments.json +15 -0
  73. data/spec/fixtures/issues/event.json +13 -0
  74. data/spec/fixtures/issues/events.json +15 -0
  75. data/spec/fixtures/issues/issue.json +56 -0
  76. data/spec/fixtures/issues/issues.json +58 -0
  77. data/spec/fixtures/issues/milestone.json +18 -0
  78. data/spec/fixtures/issues/milestones.json +20 -0
  79. data/spec/fixtures/orgs/members.json +9 -0
  80. data/spec/fixtures/orgs/org.json +18 -0
  81. data/spec/fixtures/orgs/orgs.json +8 -0
  82. data/spec/fixtures/orgs/team.json +8 -0
  83. data/spec/fixtures/orgs/team_repos.json +29 -0
  84. data/spec/fixtures/orgs/teams.json +7 -0
  85. data/spec/fixtures/repos/branches.json +9 -0
  86. data/spec/fixtures/repos/collaborators.json +8 -0
  87. data/spec/fixtures/repos/commit.json +53 -0
  88. data/spec/fixtures/repos/commit_comment.json +16 -0
  89. data/spec/fixtures/repos/commit_comments.json +18 -0
  90. data/spec/fixtures/repos/commits.json +27 -0
  91. data/spec/fixtures/repos/contributors.json +8 -0
  92. data/spec/fixtures/repos/download.json +10 -0
  93. data/spec/fixtures/repos/download_s3.json +21 -0
  94. data/spec/fixtures/repos/downloads.json +12 -0
  95. data/spec/fixtures/repos/fork.json +27 -0
  96. data/spec/fixtures/repos/forks.json +29 -0
  97. data/spec/fixtures/repos/hook.json +15 -0
  98. data/spec/fixtures/repos/hooks.json +10 -0
  99. data/spec/fixtures/repos/key.json +6 -0
  100. data/spec/fixtures/repos/keys.json +8 -0
  101. data/spec/fixtures/repos/languages.json +4 -0
  102. data/spec/fixtures/repos/repo.json +90 -0
  103. data/spec/fixtures/repos/repo_comments.json +18 -0
  104. data/spec/fixtures/repos/repos.json +29 -0
  105. data/spec/fixtures/repos/tags.json +11 -0
  106. data/spec/fixtures/repos/teams.json +7 -0
  107. data/spec/fixtures/repos/watched.json +29 -0
  108. data/spec/fixtures/repos/watchers.json +8 -0
  109. data/spec/fixtures/users/user.json +32 -0
  110. data/spec/github/api_spec.rb +25 -0
  111. data/spec/github/authorization_spec.rb +176 -0
  112. data/spec/github/authorizations_spec.rb +242 -0
  113. data/spec/github/client_spec.rb +50 -0
  114. data/spec/github/core_ext/hash_spec.rb +44 -0
  115. data/spec/github/events_spec.rb +491 -0
  116. data/spec/github/gists/comments_spec.rb +5 -0
  117. data/spec/github/gists_spec.rb +5 -0
  118. data/spec/github/git_data/blobs_spec.rb +5 -0
  119. data/spec/github/git_data/commits_spec.rb +5 -0
  120. data/spec/github/git_data/references_spec.rb +5 -0
  121. data/spec/github/git_data/tags_spec.rb +5 -0
  122. data/spec/github/git_data/trees_spec.rb +5 -0
  123. data/spec/github/git_data_spec.rb +5 -0
  124. data/spec/github/issues/comments_spec.rb +254 -0
  125. data/spec/github/issues/events_spec.rb +153 -0
  126. data/spec/github/issues/labels_spec.rb +5 -0
  127. data/spec/github/issues/milestones_spec.rb +260 -0
  128. data/spec/github/issues_spec.rb +287 -0
  129. data/spec/github/mime_type_spec.rb +70 -0
  130. data/spec/github/orgs/members_spec.rb +275 -0
  131. data/spec/github/orgs/teams_spec.rb +563 -0
  132. data/spec/github/orgs_spec.rb +160 -0
  133. data/spec/github/repos/collaborators_spec.rb +169 -0
  134. data/spec/github/repos/commits_spec.rb +424 -0
  135. data/spec/github/repos/downloads_spec.rb +247 -0
  136. data/spec/github/repos/forks_spec.rb +108 -0
  137. data/spec/github/repos/hooks_spec.rb +333 -0
  138. data/spec/github/repos/keys_spec.rb +217 -0
  139. data/spec/github/repos/pub_sub_hubbub_spec.rb +83 -0
  140. data/spec/github/repos/watching_spec.rb +222 -0
  141. data/spec/github/repos_spec.rb +571 -0
  142. data/spec/github/result_spec.rb +43 -0
  143. data/spec/github/users_spec.rb +140 -0
  144. data/spec/github_spec.rb +109 -0
  145. data/spec/spec_helper.rb +86 -0
  146. data/spec/support/base.rb +13 -0
  147. metadata +149 -4
@@ -0,0 +1,12 @@
1
+ # encoding: utf-8
2
+
3
+ module Github
4
+ module VERSION
5
+ MAJOR = 0
6
+ MINOR = 3
7
+ PATCH = 6
8
+ BUILD = nil
9
+
10
+ STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.');
11
+ end
12
+ end
@@ -0,0 +1,22 @@
1
+ = GithubAPI
2
+
3
+ == Running the specs and features
4
+
5
+ To run the specs first run the +bundle+ command to install the necessary gems and then +rake+ command to run the specs.
6
+
7
+ bundle
8
+ rake
9
+
10
+ The specs currently require Ruby 1.9.x.
11
+
12
+ == Coverage
13
+
14
+ GithubAPI will run coverage only on demand and to run it do
15
+
16
+ COVERAGE=true rake
17
+
18
+ == Automation
19
+
20
+ You can also run specs and features when you do file modifications by typing
21
+
22
+ COVERAGE=true guard
@@ -0,0 +1,15 @@
1
+ require 'simplecov'
2
+
3
+ SimpleCov.adapters.define 'github_api' do
4
+ add_filter "/spec/"
5
+ add_filter "/features/"
6
+
7
+ add_group 'Repos', 'lib/github_api/repos'
8
+ add_group 'Orgs', 'lib/github_api/orgs'
9
+ add_group 'Users', 'lib/github_api/users'
10
+ add_group 'Issues', 'lib/github_api/issues'
11
+ add_group 'Events', 'lib/github_api/events'
12
+ add_group 'Gists', 'lib/github_api/gists'
13
+ add_group 'Git Data','lib/github_api/git_data'
14
+ add_group 'Pull Requests','lib/github_api/pull_requests'
15
+ end # SimpleCov
@@ -0,0 +1,14 @@
1
+ {
2
+ "id": 1,
3
+ "url": "https://api.github.com/authorizations/1",
4
+ "scopes": [
5
+ "public_repo"
6
+ ],
7
+ "token": "abc123",
8
+ "app": {
9
+ "url": "http://my-github-app.com",
10
+ "name": "my github app"
11
+ },
12
+ "updated_at": "2011-09-06T20:39:23Z",
13
+ "created_at": "2011-09-06T17:26:27Z"
14
+ }
@@ -0,0 +1,16 @@
1
+ [
2
+ {
3
+ "id": 1,
4
+ "url": "https://api.github.com/authorizations/1",
5
+ "scopes": [
6
+ "public_repo"
7
+ ],
8
+ "token": "abc123",
9
+ "app": {
10
+ "url": "http://my-github-app.com",
11
+ "name": "my github app"
12
+ },
13
+ "updated_at": "2011-09-06T20:39:23Z",
14
+ "created_at": "2011-09-06T17:26:27Z"
15
+ }
16
+ ]
@@ -0,0 +1,29 @@
1
+ [
2
+ {
3
+ "type": "Event",
4
+ "public": true,
5
+ "payload": {
6
+
7
+ },
8
+ "repo": {
9
+ "id": 3,
10
+ "name": "octocat/Hello-World",
11
+ "url": "https://api.github.com/repos/octocat/Hello-World"
12
+ },
13
+ "actor": {
14
+ "login": "octocat",
15
+ "id": 1,
16
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
17
+ "gravatar_id": "somehexcode",
18
+ "url": "https://api.github.com/users/octocat"
19
+ },
20
+ "org": {
21
+ "login": "octocat",
22
+ "id": 1,
23
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
24
+ "gravatar_id": "somehexcode",
25
+ "url": "https://api.github.com/users/octocat"
26
+ },
27
+ "created_at": "2011-09-06T17:26:27Z"
28
+ }
29
+ ]
@@ -0,0 +1,13 @@
1
+ {
2
+ "url": "https://api.github.com/repos/octocat/Hello-World/issues/comments/1",
3
+ "body": "Me too",
4
+ "user": {
5
+ "login": "octocat",
6
+ "id": 1,
7
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
8
+ "gravatar_id": "somehexcode",
9
+ "url": "https://api.github.com/users/octocat"
10
+ },
11
+ "created_at": "2011-04-14T16:00:49Z",
12
+ "updated_at": "2011-04-14T16:00:49Z"
13
+ }
@@ -0,0 +1,15 @@
1
+ [
2
+ {
3
+ "url": "https://api.github.com/repos/octocat/Hello-World/issues/comments/1",
4
+ "body": "Me too",
5
+ "user": {
6
+ "login": "octocat",
7
+ "id": 1,
8
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
9
+ "gravatar_id": "somehexcode",
10
+ "url": "https://api.github.com/users/octocat"
11
+ },
12
+ "created_at": "2011-04-14T16:00:49Z",
13
+ "updated_at": "2011-04-14T16:00:49Z"
14
+ }
15
+ ]
@@ -0,0 +1,13 @@
1
+ {
2
+ "url": "https://api.github.com/repos/octocat/Hello-World/issues/events/1",
3
+ "actor": {
4
+ "login": "octocat",
5
+ "id": 1,
6
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
7
+ "gravatar_id": "somehexcode",
8
+ "url": "https://api.github.com/users/octocat"
9
+ },
10
+ "event": "closed",
11
+ "commit_id": "SHA",
12
+ "created_at": "2011-04-14T16:00:49Z"
13
+ }
@@ -0,0 +1,15 @@
1
+ [
2
+ {
3
+ "url": "https://api.github.com/repos/octocat/Hello-World/issues/events/1",
4
+ "actor": {
5
+ "login": "octocat",
6
+ "id": 1,
7
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
8
+ "gravatar_id": "somehexcode",
9
+ "url": "https://api.github.com/users/octocat"
10
+ },
11
+ "event": "closed",
12
+ "commit_id": "SHA",
13
+ "created_at": "2011-04-14T16:00:49Z"
14
+ }
15
+ ]
@@ -0,0 +1,56 @@
1
+ {
2
+ "url": "https://api.github.com/repos/octocat/Hello-World/issues/1",
3
+ "html_url": "https://github.com/octocat/Hello-World/issues/1",
4
+ "number": 1347,
5
+ "state": "open",
6
+ "title": "Found a bug",
7
+ "body": "I'm having a problem with this.",
8
+ "user": {
9
+ "login": "octocat",
10
+ "id": 1,
11
+ "avatar_url": "https://github.com/images/error/octocat",
12
+ "gravatar_id": "somehexcode",
13
+ "url": "https://api.github.com/users/octocat"
14
+ },
15
+ "labels": [
16
+ {
17
+ "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug",
18
+ "name": "bug",
19
+ "color": "f29513"
20
+ }
21
+ ],
22
+ "assignee": {
23
+ "login": "octocat",
24
+ "id": 1,
25
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
26
+ "gravatar_id": "somehexcode",
27
+ "url": "https://api.github.com/users/octocat"
28
+ },
29
+ "milestone": {
30
+ "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1",
31
+ "number": 1,
32
+ "state": "open",
33
+ "title": "v1.0",
34
+ "description": "",
35
+ "creator": {
36
+ "login": "octocat",
37
+ "id": 1,
38
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
39
+ "gravatar_id": "somehexcode",
40
+ "url": "https://api.github.com/users/octocat"
41
+ },
42
+ "open_issues": 4,
43
+ "closed_issues": 8,
44
+ "created_at": "2011-04-10T20:09:31Z",
45
+ "due_on": null
46
+ },
47
+ "comments": 0,
48
+ "pull_request": {
49
+ "html_url": "https://github.com/octocat/Hello-World/issues/1",
50
+ "diff_url": "https://github.com/octocat/Hello-World/issues/1.diff",
51
+ "patch_url": "https://github.com/octocat/Hello-World/issues/1.patch"
52
+ },
53
+ "closed_at": null,
54
+ "created_at": "2011-04-22T13:33:48Z",
55
+ "updated_at": "2011-04-22T13:33:48Z"
56
+ }
@@ -0,0 +1,58 @@
1
+ [
2
+ {
3
+ "url": "https://api.github.com/repos/octocat/Hello-World/issues/1",
4
+ "html_url": "https://github.com/octocat/Hello-World/issues/1",
5
+ "number": 1347,
6
+ "state": "open",
7
+ "title": "Found a bug",
8
+ "body": "I'm having a problem with this.",
9
+ "user": {
10
+ "login": "octocat",
11
+ "id": 1,
12
+ "avatar_url": "https://github.com/images/error/octocat",
13
+ "gravatar_id": "somehexcode",
14
+ "url": "https://api.github.com/users/octocat"
15
+ },
16
+ "labels": [
17
+ {
18
+ "url": "https://api.github.com/repos/octocat/Hello-World/labels/bug",
19
+ "name": "bug",
20
+ "color": "f29513"
21
+ }
22
+ ],
23
+ "assignee": {
24
+ "login": "octocat",
25
+ "id": 1,
26
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
27
+ "gravatar_id": "somehexcode",
28
+ "url": "https://api.github.com/users/octocat"
29
+ },
30
+ "milestone": {
31
+ "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1",
32
+ "number": 1,
33
+ "state": "open",
34
+ "title": "v1.0",
35
+ "description": "",
36
+ "creator": {
37
+ "login": "octocat",
38
+ "id": 1,
39
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
40
+ "gravatar_id": "somehexcode",
41
+ "url": "https://api.github.com/users/octocat"
42
+ },
43
+ "open_issues": 4,
44
+ "closed_issues": 8,
45
+ "created_at": "2011-04-10T20:09:31Z",
46
+ "due_on": null
47
+ },
48
+ "comments": 0,
49
+ "pull_request": {
50
+ "html_url": "https://github.com/octocat/Hello-World/issues/1",
51
+ "diff_url": "https://github.com/octocat/Hello-World/issues/1.diff",
52
+ "patch_url": "https://github.com/octocat/Hello-World/issues/1.patch"
53
+ },
54
+ "closed_at": null,
55
+ "created_at": "2011-04-22T13:33:48Z",
56
+ "updated_at": "2011-04-22T13:33:48Z"
57
+ }
58
+ ]
@@ -0,0 +1,18 @@
1
+ {
2
+ "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1",
3
+ "number": 1,
4
+ "state": "open",
5
+ "title": "v1.0",
6
+ "description": "",
7
+ "creator": {
8
+ "login": "octocat",
9
+ "id": 1,
10
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
11
+ "gravatar_id": "somehexcode",
12
+ "url": "https://api.github.com/users/octocat"
13
+ },
14
+ "open_issues": 4,
15
+ "closed_issues": 8,
16
+ "created_at": "2011-04-10T20:09:31Z",
17
+ "due_on": null
18
+ }
@@ -0,0 +1,20 @@
1
+ [
2
+ {
3
+ "url": "https://api.github.com/repos/octocat/Hello-World/milestones/1",
4
+ "number": 1,
5
+ "state": "open",
6
+ "title": "v1.0",
7
+ "description": "",
8
+ "creator": {
9
+ "login": "octocat",
10
+ "id": 1,
11
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
12
+ "gravatar_id": "somehexcode",
13
+ "url": "https://api.github.com/users/octocat"
14
+ },
15
+ "open_issues": 4,
16
+ "closed_issues": 8,
17
+ "created_at": "2011-04-10T20:09:31Z",
18
+ "due_on": null
19
+ }
20
+ ]
@@ -0,0 +1,9 @@
1
+ [
2
+ {
3
+ "login": "octocat",
4
+ "id": 1,
5
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
6
+ "gravatar_id": "somehexcode",
7
+ "url": "https://api.github.com/users/octocat"
8
+ }
9
+ ]
@@ -0,0 +1,18 @@
1
+ {
2
+ "login": "github",
3
+ "id": 1,
4
+ "url": "https://api.github.com/orgs/1",
5
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
6
+ "name": "github",
7
+ "company": "GitHub",
8
+ "blog": "https://github.com/blog",
9
+ "location": "San Francisco",
10
+ "email": "octocat@github.com",
11
+ "public_repos": 2,
12
+ "public_gists": 1,
13
+ "followers": 20,
14
+ "following": 0,
15
+ "html_url": "https://github.com/octocat",
16
+ "created_at": "2008-01-14T04:33:35Z",
17
+ "type": "Organization"
18
+ }
@@ -0,0 +1,8 @@
1
+ [
2
+ {
3
+ "login": "github",
4
+ "id": 1,
5
+ "url": "https://api.github.com/orgs/1",
6
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif"
7
+ }
8
+ ]
@@ -0,0 +1,8 @@
1
+ {
2
+ "url": "https://api.github.com/teams/1",
3
+ "name": "Owners",
4
+ "id": 1,
5
+ "permission": "admin",
6
+ "members_count": 3,
7
+ "repos_count": 10
8
+ }
@@ -0,0 +1,29 @@
1
+ [
2
+ {
3
+ "url": "https://api.github.com/repos/octocat/Hello-World",
4
+ "html_url": "https://github.com/octocat/Hello-World",
5
+ "clone_url": "https://github.com/octocat/Hello-World.git",
6
+ "git_url": "git://github.com/octocat/Hello-World.git",
7
+ "ssh_url": "git@github.com:octocat/Hello-World.git",
8
+ "owner": {
9
+ "login": "octocat",
10
+ "id": 1,
11
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
12
+ "gravatar_id": "somehexcode",
13
+ "url": "https://api.github.com/users/octocat"
14
+ },
15
+ "name": "github",
16
+ "description": "This your first repo!",
17
+ "homepage": "https://github.com",
18
+ "language": null,
19
+ "private": false,
20
+ "fork": false,
21
+ "forks": 9,
22
+ "watchers": 80,
23
+ "size": 108,
24
+ "master_branch": "master",
25
+ "open_issues": 0,
26
+ "pushed_at": "2011-01-26T19:06:43Z",
27
+ "created_at": "2011-01-26T19:01:12Z"
28
+ }
29
+ ]
@@ -0,0 +1,7 @@
1
+ [
2
+ {
3
+ "url": "https://api.github.com/teams/1",
4
+ "name": "Owners",
5
+ "id": 1
6
+ }
7
+ ]
@@ -0,0 +1,9 @@
1
+ [
2
+ {
3
+ "name": "master",
4
+ "commit": {
5
+ "sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
6
+ "url": "https://api.github.com/octocat/Hello-World/commits/c5b97d5ae6c19d5c5df71a34c7fbeeda2479ccbc"
7
+ }
8
+ }
9
+ ]
@@ -0,0 +1,8 @@
1
+ [
2
+ {
3
+ "login": "octocat",
4
+ "id": 1,
5
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
6
+ "url": "https://api.github.com/users/octocat"
7
+ }
8
+ ]