octokit 1.25.0 → 2.0.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (502) hide show
  1. data/Rakefile +10 -7
  2. data/lib/octokit.rb +22 -15
  3. data/lib/octokit/arguments.rb +14 -0
  4. data/lib/octokit/authentication.rb +48 -25
  5. data/lib/octokit/client.rb +245 -44
  6. data/lib/octokit/client/authorizations.rb +36 -10
  7. data/lib/octokit/client/commit_comments.rb +96 -0
  8. data/lib/octokit/client/commits.rb +152 -94
  9. data/lib/octokit/client/contents.rb +32 -24
  10. data/lib/octokit/client/downloads.rb +11 -7
  11. data/lib/octokit/client/emojis.rb +3 -1
  12. data/lib/octokit/client/events.rb +62 -18
  13. data/lib/octokit/client/gists.rb +27 -26
  14. data/lib/octokit/client/gitignore.rb +7 -3
  15. data/lib/octokit/client/issues.rb +43 -71
  16. data/lib/octokit/client/labels.rb +24 -20
  17. data/lib/octokit/client/legacy_search.rb +78 -0
  18. data/lib/octokit/client/markdown.rb +6 -1
  19. data/lib/octokit/client/meta.rb +21 -0
  20. data/lib/octokit/client/milestones.rb +13 -9
  21. data/lib/octokit/client/notifications.rb +24 -64
  22. data/lib/octokit/client/objects.rb +17 -12
  23. data/lib/octokit/client/organizations.rb +43 -52
  24. data/lib/octokit/client/pub_sub_hubbub.rb +68 -8
  25. data/lib/octokit/client/{pulls.rb → pull_requests.rb} +65 -41
  26. data/lib/octokit/client/rate_limit.rb +42 -8
  27. data/lib/octokit/client/refs.rb +16 -10
  28. data/lib/octokit/client/repositories.rb +73 -124
  29. data/lib/octokit/client/say.rb +7 -1
  30. data/lib/octokit/client/service_status.rb +39 -0
  31. data/lib/octokit/client/stats.rb +12 -6
  32. data/lib/octokit/client/statuses.rb +8 -29
  33. data/lib/octokit/client/users.rb +56 -75
  34. data/lib/octokit/configurable.rb +117 -0
  35. data/lib/octokit/default.rb +140 -0
  36. data/lib/octokit/error.rb +6 -5
  37. data/lib/octokit/gist.rb +11 -0
  38. data/lib/octokit/rate_limit.rb +22 -0
  39. data/lib/octokit/repo_arguments.rb +19 -0
  40. data/lib/octokit/repository.rb +11 -4
  41. data/lib/octokit/response/raise_error.rb +35 -0
  42. data/lib/octokit/version.rb +5 -1
  43. data/octokit.gemspec +4 -9
  44. data/spec/cassettes/Octokit_Client/_get/handles_query_params.json +1 -0
  45. data/spec/cassettes/Octokit_Client/_head/handles_query_params.json +1 -0
  46. data/spec/cassettes/Octokit_Client/_last_response/caches_the_last_agent_response.json +1 -0
  47. data/spec/cassettes/Octokit_Client/authentication/when_token_authenticated/fetches_and_memoizes_login.json +1 -0
  48. data/spec/cassettes/Octokit_Client/auto_pagination/fetches_all_the_pages.json +1 -0
  49. data/spec/cassettes/Octokit_Client/error_handling/raises_on_404.json +1 -0
  50. data/spec/cassettes/Octokit_Client_Authorizations/_authorization/returns_a_single_authorization.json +1 -0
  51. data/spec/cassettes/Octokit_Client_Authorizations/_authorizations/lists_existing_authorizations.json +1 -0
  52. data/spec/cassettes/Octokit_Client_Authorizations/_create_authorization/creates_a_new_authorization_with_options.json +1 -0
  53. data/spec/cassettes/Octokit_Client_Authorizations/_create_authorization/creates_an_API_authorization.json +1 -0
  54. data/spec/cassettes/Octokit_Client_Authorizations/_scopes/checks_the_scopes_on_a_one-off_token.json +1 -0
  55. data/spec/cassettes/Octokit_Client_Authorizations/_scopes/checks_the_scopes_on_the_current_token.json +1 -0
  56. data/spec/cassettes/Octokit_Client_Authorizations/_update_authorization/updates_and_existing_authorization.json +1 -0
  57. data/spec/cassettes/Octokit_Client_CommitComments/_commit_comment/returns_a_single_commit_comment.json +1 -0
  58. data/spec/cassettes/Octokit_Client_CommitComments/_commit_comments/returns_a_list_of_comments_for_a_specific_commit.json +1 -0
  59. data/spec/cassettes/Octokit_Client_CommitComments/_create_commit_comment/creates_a_commit_comment.json +1 -0
  60. data/spec/cassettes/Octokit_Client_CommitComments/_delete_commit_comment/deletes_a_commit_comment.json +1 -0
  61. data/spec/cassettes/Octokit_Client_CommitComments/_list_commit_comments/returns_a_list_of_all_commit_comments.json +1 -0
  62. data/spec/cassettes/Octokit_Client_CommitComments/_update_commit_comment/updates_a_commit_comment.json +1 -0
  63. data/spec/cassettes/Octokit_Client_Commits/_commit/returns_a_commit.json +1 -0
  64. data/spec/cassettes/Octokit_Client_Commits/_commits/handles_branch_or_sha_argument.json +1 -0
  65. data/spec/cassettes/Octokit_Client_Commits/_commits/handles_the_sha_option.json +1 -0
  66. data/spec/cassettes/Octokit_Client_Commits/_commits/returns_all_commits.json +1 -0
  67. data/spec/cassettes/Octokit_Client_Commits/_commits_before/handles_branch_or_sha_argument.json +1 -0
  68. data/spec/cassettes/Octokit_Client_Commits/_commits_before/handles_the_sha_option.json +1 -0
  69. data/spec/cassettes/Octokit_Client_Commits/_commits_before/returns_all_commits_until_the_specified_date.json +1 -0
  70. data/spec/cassettes/Octokit_Client_Commits/_commits_between/handles_branch_or_sha_argument.json +1 -0
  71. data/spec/cassettes/Octokit_Client_Commits/_commits_between/handles_the_sha_option.json +1 -0
  72. data/spec/cassettes/Octokit_Client_Commits/_commits_between/returns_all_commits_until_the_specified_date.json +1 -0
  73. data/spec/cassettes/Octokit_Client_Commits/_commits_on/handles_branch_or_sha_argument.json +1 -0
  74. data/spec/cassettes/Octokit_Client_Commits/_commits_on/handles_the_sha_option.json +1 -0
  75. data/spec/cassettes/Octokit_Client_Commits/_commits_on/returns_all_commits_on_the_specified_date.json +1 -0
  76. data/spec/cassettes/Octokit_Client_Commits/_commits_since/handles_branch_or_sha_argument.json +1 -0
  77. data/spec/cassettes/Octokit_Client_Commits/_commits_since/handles_the_sha_option.json +1 -0
  78. data/spec/cassettes/Octokit_Client_Commits/_commits_since/returns_all_commits_since_the_specified_date.json +1 -0
  79. data/spec/cassettes/Octokit_Client_Commits/_compare/returns_a_comparison.json +1 -0
  80. data/spec/cassettes/Octokit_Client_Commits/_create_commit/creates_a_commit.json +1 -0
  81. data/spec/cassettes/Octokit_Client_Commits/_merge/merges_a_branch_into_another.json +1 -0
  82. data/spec/cassettes/Octokit_Client_Contents/_archive_link/returns_the_headers_of_the_request.json +1 -0
  83. data/spec/cassettes/Octokit_Client_Contents/_contents/returns_the_contents_of_a_file.json +1 -0
  84. data/spec/cassettes/Octokit_Client_Contents/_create_contents/creates_contents_from_File_object.json +1 -0
  85. data/spec/cassettes/Octokit_Client_Contents/_create_contents/creates_contents_from_file_path.json +1 -0
  86. data/spec/cassettes/Octokit_Client_Contents/_create_contents/creates_repository_contents_at_a_path.json +1 -0
  87. data/spec/cassettes/Octokit_Client_Contents/_delete_contents/deletes_repository_contents_at_a_path.json +1 -0
  88. data/spec/cassettes/Octokit_Client_Contents/_readme/returns_the_default_readme.json +1 -0
  89. data/spec/cassettes/Octokit_Client_Contents/_update_contents/updates_repository_contents_at_a_path.json +1 -0
  90. data/spec/cassettes/Octokit_Client_Downloads/_download/gets_a_single_download.json +1 -0
  91. data/spec/cassettes/Octokit_Client_Downloads/_downloads/lists_available_downloads.json +1 -0
  92. data/spec/cassettes/Octokit_Client_Downloads/methods_that_require_a_download/_create_download/creates_a_download_resource.json +1 -0
  93. data/spec/cassettes/Octokit_Client_Downloads/methods_that_require_a_download/_create_download/posts_to_an_S3_url.json +1 -0
  94. data/spec/cassettes/Octokit_Client_Downloads/methods_that_require_a_download/_delete_download/deletes_a_download.json +1 -0
  95. data/spec/cassettes/Octokit_Client_Emojis/_emojis/returns_all_github_emojis.json +1 -0
  96. data/spec/cassettes/Octokit_Client_Events/_issue_event/lists_issue_events_for_a_repository.json +1 -0
  97. data/spec/cassettes/Octokit_Client_Events/_issue_events/lists_issue_events_for_a_repository.json +1 -0
  98. data/spec/cassettes/Octokit_Client_Events/_organization_events/returns_all_events_for_an_organization.json +1 -0
  99. data/spec/cassettes/Octokit_Client_Events/_organization_public_events/returns_an_organization_s_public_events.json +1 -0
  100. data/spec/cassettes/Octokit_Client_Events/_public_events/returns_all_public_events.json +1 -0
  101. data/spec/cassettes/Octokit_Client_Events/_received_events/returns_all_user_received_events.json +1 -0
  102. data/spec/cassettes/Octokit_Client_Events/_received_public_events/returns_public_user_received_events.json +1 -0
  103. data/spec/cassettes/Octokit_Client_Events/_repo_issue_events/lists_issue_events_for_a_repository.json +1 -0
  104. data/spec/cassettes/Octokit_Client_Events/_repository_events/returns_events_for_a_repository.json +1 -0
  105. data/spec/cassettes/Octokit_Client_Events/_repository_network_events/returns_events_for_a_repository_s_network.json +1 -0
  106. data/spec/cassettes/Octokit_Client_Events/_user_events/returns_all_user_events.json +1 -0
  107. data/spec/cassettes/Octokit_Client_Events/_user_public_events/returns_public_events_performed_by_a_user.json +1 -0
  108. data/spec/cassettes/Octokit_Client_Gists/unauthenticated/_gist/returns_the_gist_by_ID.json +1 -0
  109. data/spec/cassettes/Octokit_Client_Gists/unauthenticated/_gists/with_username_passed/returns_a_list_of_gists.json +1 -0
  110. data/spec/cassettes/Octokit_Client_Gists/unauthenticated/_gists/without_a_username_passed/returns_a_list_of_gists.json +1 -0
  111. data/spec/cassettes/Octokit_Client_Gists/unauthenticated/_public_gists/returns_public_gists.json +1 -0
  112. data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_create_gist/creates_a_new_gist.json +1 -0
  113. data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_create_gist_comment/creates_a_gist_comment.json +1 -0
  114. data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_delete_gist/deletes_an_existing_gist.json +1 -0
  115. data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_delete_gist_comment/deletes_a_gist_comment.json +1 -0
  116. data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_edit_gist/edit_an_existing_gist.json +1 -0
  117. data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_fork_gist/forks_an_existing_gist.json +1 -0
  118. data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_gist_comment/returns_a_gist_comment.json +1 -0
  119. data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_gist_comments/returns_the_list_of_gist_comments.json +1 -0
  120. data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_gist_starred_/is_not_starred.json +1 -0
  121. data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_gist_starred_/is_starred.json +1 -0
  122. data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_gists/returns_a_list_of_gists.json +1 -0
  123. data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_star_gist/stars_an_existing_gist.json +1 -0
  124. data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_starred_gists/returns_the_user_s_starred_gists.json +1 -0
  125. data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_unstar_gist/unstars_an_existing_gist.json +1 -0
  126. data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_update_gist_comment/updates_a_gist_comment.json +1 -0
  127. data/spec/cassettes/Octokit_Client_Gitignore/_gitignore_template/returns_the_ruby_gitignore_template.json +1 -0
  128. data/spec/cassettes/Octokit_Client_Gitignore/_gitignore_templates/returns_all_gitignore_templates.json +1 -0
  129. data/spec/cassettes/Octokit_Client_Issues/_create_issue/creates_an_issue.json +1 -0
  130. data/spec/cassettes/Octokit_Client_Issues/_create_issue/creates_an_issue_with_delimited_labels.json +1 -0
  131. data/spec/cassettes/Octokit_Client_Issues/_create_issue/creates_an_issue_with_labels_array.json +1 -0
  132. data/spec/cassettes/Octokit_Client_Issues/_issue_comment/returns_a_single_comment_for_an_issue.json +1 -0
  133. data/spec/cassettes/Octokit_Client_Issues/_issue_comments/returns_comments_for_an_issue.json +1 -0
  134. data/spec/cassettes/Octokit_Client_Issues/_list_issues/returns_dashboard_issues_for_the_authenticated_user.json +1 -0
  135. data/spec/cassettes/Octokit_Client_Issues/_list_issues/returns_issues_for_a_repository.json +1 -0
  136. data/spec/cassettes/Octokit_Client_Issues/_org_issues/returns_issues_for_the_organization_for_the_authenticated_user.json +1 -0
  137. data/spec/cassettes/Octokit_Client_Issues/_repository_issues_comments/returns_comments_for_all_issues_in_a_repository.json +1 -0
  138. data/spec/cassettes/Octokit_Client_Issues/_user_issues/returns_issues_for_the_authenticated_user_for_owned_and_member_repos.json +1 -0
  139. data/spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_add_comment/adds_a_comment.json +1 -0
  140. data/spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_close_issue/closes_an_issue.json +1 -0
  141. data/spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_issue/returns_a_full_issue.json +1 -0
  142. data/spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_issue/returns_an_issue.json +1 -0
  143. data/spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_reopen_issue/reopens_an_issue.json +1 -0
  144. data/spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_update_issue/updates_an_issue.json +1 -0
  145. data/spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/methods_requiring_a_new_issue_comment/_delete_comment/deletes_an_existing_comment.json +1 -0
  146. data/spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/methods_requiring_a_new_issue_comment/_update_comment/updates_an_existing_comment.json +1 -0
  147. data/spec/cassettes/Octokit_Client_Labels/_add_label/adds_a_label_with_a_color.json +1 -0
  148. data/spec/cassettes/Octokit_Client_Labels/_add_label/adds_a_label_with_default_color.json +1 -0
  149. data/spec/cassettes/Octokit_Client_Labels/_delete_label_/deletes_a_label_from_the_repository.json +1 -0
  150. data/spec/cassettes/Octokit_Client_Labels/_label/returns_a_single_label.json +1 -0
  151. data/spec/cassettes/Octokit_Client_Labels/_labels/returns_labels.json +1 -0
  152. data/spec/cassettes/Octokit_Client_Labels/_lables_for_milestone/returns_all_labels_for_a_repository.json +1 -0
  153. data/spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_issue/_add_labels_to_an_issue/adds_labels_to_a_given_issue.json +1 -0
  154. data/spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_issue/_labels_for_issue/returns_all_labels_for_a_given_issue.json +1 -0
  155. data/spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_issue/_remove_all_labels/removes_all_labels_from_the_specified_issue.json +1 -0
  156. data/spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_issue/_remove_label/removes_a_label_from_the_specified_issue.json +1 -0
  157. data/spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_issue/_replace_all_labels/replaces_all_labels_for_an_issue.json +1 -0
  158. data/spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_label/_update_label/updates_a_label_with_a_new_color.json +1 -0
  159. data/spec/cassettes/Octokit_Client_LegacySearch/_legacy_search_issues/returns_matching_issues.json +1 -0
  160. data/spec/cassettes/Octokit_Client_LegacySearch/_legacy_search_repos/returns_matching_repositories.json +1 -0
  161. data/spec/cassettes/Octokit_Client_LegacySearch/_legacy_search_users/returns_matching_username.json +1 -0
  162. data/spec/cassettes/Octokit_Client_Markdown/_markdown/renders_markdown.json +1 -0
  163. data/spec/cassettes/Octokit_Client_Meta/_github_meta/returns_meta_information_about_github.json +1 -0
  164. data/spec/cassettes/Octokit_Client_Milestones/_list_milestones/lists_milestones_belonging_to_repository.json +1 -0
  165. data/spec/cassettes/Octokit_Client_Milestones/methods_that_need_a_milestone/_create_milestone/creates_a_milestone.json +1 -0
  166. data/spec/cassettes/Octokit_Client_Milestones/methods_that_need_a_milestone/_delete_milestone/deletes_a_milestone_from_a_repository.json +1 -0
  167. data/spec/cassettes/Octokit_Client_Milestones/methods_that_need_a_milestone/_milestone/gets_a_single_milestone_belonging_to_repository.json +1 -0
  168. data/spec/cassettes/Octokit_Client_Milestones/methods_that_need_a_milestone/_update_milestone/updates_a_milestone.json +1 -0
  169. data/spec/cassettes/Octokit_Client_Notifications/_mark_notifications_as_read/returns_true_when_notifications_are_marked_as_read.json +1 -0
  170. data/spec/cassettes/Octokit_Client_Notifications/_mark_repository_notifications_as_read/returns_true_when_notifications_for_a_repo_are_marked_as_read.json +1 -0
  171. data/spec/cassettes/Octokit_Client_Notifications/_notifications/lists_the_notifications_for_the_current_user.json +1 -0
  172. data/spec/cassettes/Octokit_Client_Notifications/_repository_notifications/lists_all_notifications_for_a_repository.json +1 -0
  173. data/spec/cassettes/Octokit_Client_Notifications/methods_that_need_a_thread_context/_delete_thread_subscription/returns_true_with_successful_thread_deletion.json +1 -0
  174. data/spec/cassettes/Octokit_Client_Notifications/methods_that_need_a_thread_context/_mark_thread_as_read/marks_a_thread_as_read.json +1 -0
  175. data/spec/cassettes/Octokit_Client_Notifications/methods_that_need_a_thread_context/_thread_notifications/returns_notifications_for_a_specific_thread.json +1 -0
  176. data/spec/cassettes/Octokit_Client_Notifications/methods_that_need_a_thread_context/_thread_subscription/returns_a_thread_subscription.json +1 -0
  177. data/spec/cassettes/Octokit_Client_Notifications/methods_that_need_a_thread_context/_update_thread_subscription/updates_a_thread_subscription.json +1 -0
  178. data/spec/cassettes/Octokit_Client_Objects/_blob/returns_a_blob.json +1 -0
  179. data/spec/cassettes/Octokit_Client_Objects/_create_blob/creates_a_blob.json +1 -0
  180. data/spec/cassettes/Octokit_Client_Objects/_create_tag/creates_a_tag.json +1 -0
  181. data/spec/cassettes/Octokit_Client_Objects/_create_tree/creates_a_tree.json +1 -0
  182. data/spec/cassettes/Octokit_Client_Objects/_tag/returns_a_tag.json +1 -0
  183. data/spec/cassettes/Octokit_Client_Objects/_tree/gets_a_tree.json +1 -0
  184. data/spec/cassettes/Octokit_Client_Objects/_tree/gets_a_tree_recursively.json +1 -0
  185. data/spec/cassettes/Octokit_Client_Organizations/_organization/returns_an_organization.json +1 -0
  186. data/spec/cassettes/Octokit_Client_Organizations/_organization_member_/checks_organization_membership.json +1 -0
  187. data/spec/cassettes/Octokit_Client_Organizations/_organization_members/returns_all_public_members_of_an_organization.json +1 -0
  188. data/spec/cassettes/Octokit_Client_Organizations/_organization_public_member_/checks_publicized_org_membership.json +1 -0
  189. data/spec/cassettes/Octokit_Client_Organizations/_organization_repositories/returns_all_public_repositories_for_an_organization.json +1 -0
  190. data/spec/cassettes/Octokit_Client_Organizations/_organization_teams/returns_all_teams_for_an_organization.json +1 -0
  191. data/spec/cassettes/Octokit_Client_Organizations/_organizations/returns_all_organizations_for_a_user.json +1 -0
  192. data/spec/cassettes/Octokit_Client_Organizations/_organizations/returns_all_organizations_for_the_authenticated_user.json +1 -0
  193. data/spec/cassettes/Octokit_Client_Organizations/_update_organization/updates_an_organization.json +1 -0
  194. data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_add_team_member/adds_a_team_member.json +1 -0
  195. data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_add_team_repository/adds_a_team_repository.json +1 -0
  196. data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_create_team/creates_a_team.json +1 -0
  197. data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_delete_team/deletes_a_team.json +1 -0
  198. data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_publicize_membership/publicizes_membership.json +1 -0
  199. data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_remove_team_member/removes_a_team_member.json +1 -0
  200. data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_remove_team_repository/removes_a_team_repository.json +1 -0
  201. data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_team/returns_a_team.json +1 -0
  202. data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_team_member_/checks_if_a_user_is_member_of_a_team.json +1 -0
  203. data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_team_members/returns_team_members.json +1 -0
  204. data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_team_repositories/returns_team_repositories.json +1 -0
  205. data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_unpublicize_membership/unpublicizes_membership.json +1 -0
  206. data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_update_team/updates_a_team.json +1 -0
  207. data/spec/cassettes/Octokit_Client_PubSubHubbub/_subscribe/raises_an_error_when_topic_is_not_recognized.json +1 -0
  208. data/spec/cassettes/Octokit_Client_PubSubHubbub/_subscribe/subscribes_to_pull_events.json +1 -0
  209. data/spec/cassettes/Octokit_Client_PubSubHubbub/_subscribe_service_hook/subscribes_to_pull_events_on_specified_topic.json +1 -0
  210. data/spec/cassettes/Octokit_Client_PubSubHubbub/_unsubscribe/unsubscribes_from_pull_events.json +1 -0
  211. data/spec/cassettes/Octokit_Client_PubSubHubbub/unsubscribe_service_hook/unsubscribes_to_stop_receiving_events_on_specified_topic.json +1 -0
  212. data/spec/cassettes/Octokit_Client_PullRequests/_create_pull_request_for_issue/creates_a_pull_request_and_attach_it_to_an_existing_issue.json +1 -0
  213. data/spec/cassettes/Octokit_Client_PullRequests/_pull_request_comment/returns_a_comment_on_a_pull_request.json +1 -0
  214. data/spec/cassettes/Octokit_Client_PullRequests/_pull_request_comments/returns_the_comments_for_a_pull_request.json +1 -0
  215. data/spec/cassettes/Octokit_Client_PullRequests/_pull_request_commits/returns_the_commits_for_a_pull_request.json +1 -0
  216. data/spec/cassettes/Octokit_Client_PullRequests/_pull_request_files/lists_files_for_a_pull_request.json +1 -0
  217. data/spec/cassettes/Octokit_Client_PullRequests/_pull_requests/returns_all_pull_requests.json +1 -0
  218. data/spec/cassettes/Octokit_Client_PullRequests/_pull_requests_comments/returns_all_comments_on_all_pull_requests.json +1 -0
  219. data/spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_close_pull_request/closes_a_pull_request.json +1 -0
  220. data/spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_create_pull_request/creates_a_pull_request.json +1 -0
  221. data/spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_merge_pull_request/merges_the_pull_request.json +1 -0
  222. data/spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_pull_merged_/returns_whether_the_pull_request_has_been_merged.json +1 -0
  223. data/spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_pull_request/returns_a_pull_request.json +1 -0
  224. data/spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_update_pull_request/updates_a_pull_request.json +1 -0
  225. data/spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/methods_requiring_a_pull_request_comment/_create_pull_request_comment/creates_a_new_comment_on_a_pull_request.json +1 -0
  226. data/spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/methods_requiring_a_pull_request_comment/_create_pull_request_comment_reply/creates_a_new_reply_to_a_pull_request_comment.json +1 -0
  227. data/spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/methods_requiring_a_pull_request_comment/_delete_pull_request_comment/deletes_a_pull_request_comment.json +1 -0
  228. data/spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/methods_requiring_a_pull_request_comment/_update_pull_request_comment/updates_a_pull_request_comment.json +1 -0
  229. data/spec/cassettes/Octokit_Client_Refs/_ref/returns_a_tags_ref.json +1 -0
  230. data/spec/cassettes/Octokit_Client_Refs/_refs/returns_all_refs.json +1 -0
  231. data/spec/cassettes/Octokit_Client_Refs/_refs/returns_all_tag_refs.json +1 -0
  232. data/spec/cassettes/Octokit_Client_Refs/methods_that_require_a_ref/_create_ref/creates_a_ref.json +1 -0
  233. data/spec/cassettes/Octokit_Client_Refs/methods_that_require_a_ref/_delete_ref/deletes_an_existing_ref.json +1 -0
  234. data/spec/cassettes/Octokit_Client_Refs/methods_that_require_a_ref/_update_ref/updates_a_ref.json +1 -0
  235. data/spec/cassettes/Octokit_Client_Repositories/_all_repositories/returns_all_repositories_on_github.json +1 -0
  236. data/spec/cassettes/Octokit_Client_Repositories/_assignees/lists_all_the_available_assignees_owner_collaborators_.json +1 -0
  237. data/spec/cassettes/Octokit_Client_Repositories/_branches/returns_a_repository_s_branches.json +1 -0
  238. data/spec/cassettes/Octokit_Client_Repositories/_branches/returns_a_single_branch.json +1 -0
  239. data/spec/cassettes/Octokit_Client_Repositories/_check_assignee/checks_to_see_if_a_particular_user_is_an_assignee_for_a_repository.json +1 -0
  240. data/spec/cassettes/Octokit_Client_Repositories/_collaborators/returns_a_repository_s_collaborators.json +1 -0
  241. data/spec/cassettes/Octokit_Client_Repositories/_contributors/returns_repository_contributors.json +1 -0
  242. data/spec/cassettes/Octokit_Client_Repositories/_contributors/returns_repository_contributors_excluding_anonymous.json +1 -0
  243. data/spec/cassettes/Octokit_Client_Repositories/_create_repository/creates_a_repository_for_an_organization.json +1 -0
  244. data/spec/cassettes/Octokit_Client_Repositories/_delete_subscription/returns_true_when_repo_subscription_deleted.json +1 -0
  245. data/spec/cassettes/Octokit_Client_Repositories/_fork/forks_a_repository.json +1 -0
  246. data/spec/cassettes/Octokit_Client_Repositories/_languages/returns_a_repository_s_languages.json +1 -0
  247. data/spec/cassettes/Octokit_Client_Repositories/_network/returns_a_repository_s_network.json +1 -0
  248. data/spec/cassettes/Octokit_Client_Repositories/_repositories/returns_a_user_s_repositories.json +1 -0
  249. data/spec/cassettes/Octokit_Client_Repositories/_repositories/returns_authenticated_user_s_repositories.json +1 -0
  250. data/spec/cassettes/Octokit_Client_Repositories/_repository/returns_the_matching_repository.json +1 -0
  251. data/spec/cassettes/Octokit_Client_Repositories/_repository_/returns_false_if_the_repository_doesn_t_exist.json +1 -0
  252. data/spec/cassettes/Octokit_Client_Repositories/_repository_/returns_true_if_the_repository_exists.json +1 -0
  253. data/spec/cassettes/Octokit_Client_Repositories/_star/stars_a_repository.json +1 -0
  254. data/spec/cassettes/Octokit_Client_Repositories/_stargazers/returns_all_repository_stargazers.json +1 -0
  255. data/spec/cassettes/Octokit_Client_Repositories/_subscribers/lists_all_the_users_watching_the_repository.json +1 -0
  256. data/spec/cassettes/Octokit_Client_Repositories/_subscription/returns_a_repository_subscription.json +1 -0
  257. data/spec/cassettes/Octokit_Client_Repositories/_tags/returns_a_repository_s_tags.json +1 -0
  258. data/spec/cassettes/Octokit_Client_Repositories/_unstar/unstars_a_repository.json +1 -0
  259. data/spec/cassettes/Octokit_Client_Repositories/_unwatch/unwatches_a_repository.json +1 -0
  260. data/spec/cassettes/Octokit_Client_Repositories/_update_subscription/updates_a_repository_subscription.json +1 -0
  261. data/spec/cassettes/Octokit_Client_Repositories/_watch/watches_a_repository.json +1 -0
  262. data/spec/cassettes/Octokit_Client_Repositories/_watchers/returns_all_repository_watchers.json +1 -0
  263. data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_add_collaborator/adds_a_repository_collaborators.json +1 -0
  264. data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_create_repository/creates_a_repository.json +1 -0
  265. data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_delete_repository/deletes_a_repository.json +1 -0
  266. data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_deploy_keys/returns_a_repository_s_deploy_keys.json +1 -0
  267. data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_hooks/returns_a_repository_s_hooks.json +1 -0
  268. data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_remove_collaborator/removes_a_repository_collaborators.json +1 -0
  269. data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_repository_teams/returns_all_repository_teams.json +1 -0
  270. data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_update_repository/updates_the_matching_repository.json +1 -0
  271. data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_requiring_an_existing_deploy_key/_add_deploy_key/adds_a_repository_deploy_keys.json +1 -0
  272. data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_that_need_an_existing_hook/_create_hook/creates_a_hook.json +1 -0
  273. data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_that_need_an_existing_hook/_edit_hook/edits_a_hook.json +1 -0
  274. data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_that_need_an_existing_hook/_hook/returns_a_repository_s_single_hook.json +1 -0
  275. data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_that_need_an_existing_hook/_remove_hook/removes_a_hook.json +1 -0
  276. data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_that_need_an_existing_hook/_test_hook/tests_a_hook.json +1 -0
  277. data/spec/cassettes/Octokit_Client_Say/_say/returns_an_ASCII_octocat.json +1 -0
  278. data/spec/cassettes/Octokit_Client_Say/_say/returns_an_ASCII_octocat_with_custom_text.json +1 -0
  279. data/spec/cassettes/Octokit_Client_ServiceStatus/_github_status/returns_the_current_system_status.json +1 -0
  280. data/spec/cassettes/Octokit_Client_ServiceStatus/_github_status/returns_the_most_recent_status_messages.json +1 -0
  281. data/spec/cassettes/Octokit_Client_ServiceStatus/_github_status_last_message/returns_the_last_human_message.json +1 -0
  282. data/spec/cassettes/Octokit_Client_Stats/_code_frequency_stats/returns_the_code_frequency_stats.json +1 -0
  283. data/spec/cassettes/Octokit_Client_Stats/_commit_activity_stats/returns_the_commit_activity_stats.json +1 -0
  284. data/spec/cassettes/Octokit_Client_Stats/_contributors_stats/returns_contributors_and_their_contribution_stats.json +1 -0
  285. data/spec/cassettes/Octokit_Client_Stats/_participation_stats/returns_the_owner_and_contributor_participation_stats.json +1 -0
  286. data/spec/cassettes/Octokit_Client_Stats/_punch_card_stats/returns_commit_count_by_hour_punch_card_stats.json +1 -0
  287. data/spec/cassettes/Octokit_Client_Statuses/_create_status/creates_status.json +1 -0
  288. data/spec/cassettes/Octokit_Client_Statuses/_statuses/lists_commit_statuses.json +1 -0
  289. data/spec/cassettes/Octokit_Client_Users/_add_email/adds_an_email_address.json +1 -0
  290. data/spec/cassettes/Octokit_Client_Users/_all_users/returns_all_GitHub_users.json +1 -0
  291. data/spec/cassettes/Octokit_Client_Users/_emails/returns_email_addresses.json +1 -0
  292. data/spec/cassettes/Octokit_Client_Users/_follow/follows_a_user.json +1 -0
  293. data/spec/cassettes/Octokit_Client_Users/_followers/returns_followers_for_a_user.json +1 -0
  294. data/spec/cassettes/Octokit_Client_Users/_followers/returns_the_authenticated_user_s_followers.json +1 -0
  295. data/spec/cassettes/Octokit_Client_Users/_following/returns_following_for_a_user.json +1 -0
  296. data/spec/cassettes/Octokit_Client_Users/_following/returns_the_authenticated_user_s_following.json +1 -0
  297. data/spec/cassettes/Octokit_Client_Users/_follows_/checks_if_the_authenticated_user_follows_another.json +1 -0
  298. data/spec/cassettes/Octokit_Client_Users/_keys/returns_public_keys_for_the_authenticated_user.json +1 -0
  299. data/spec/cassettes/Octokit_Client_Users/_remove_email/removes_an_email_address.json +1 -0
  300. data/spec/cassettes/Octokit_Client_Users/_starred/returns_starred_repositories_for_a_user.json +1 -0
  301. data/spec/cassettes/Octokit_Client_Users/_starred/returns_starred_repositories_for_the_authenticated_user.json +1 -0
  302. data/spec/cassettes/Octokit_Client_Users/_starred_/checks_if_the_authenticated_user_has_starred_a_repository.json +1 -0
  303. data/spec/cassettes/Octokit_Client_Users/_subscriptions/returns_the_repositories_a_user_watches_for_notifications.json +1 -0
  304. data/spec/cassettes/Octokit_Client_Users/_subscriptions/returns_the_repositories_the_authenticated_user_watches_for_notifications.json +1 -0
  305. data/spec/cassettes/Octokit_Client_Users/_unfollow/unfollows_a_user.json +1 -0
  306. data/spec/cassettes/Octokit_Client_Users/_update_user/updates_a_user_profile.json +1 -0
  307. data/spec/cassettes/Octokit_Client_Users/_user/returns_a_user.json +1 -0
  308. data/spec/cassettes/Octokit_Client_Users/_user/returns_the_authenticated_user.json +1 -0
  309. data/spec/cassettes/Octokit_Client_Users/_user_keys/returns_public_keys_for_another_user.json +1 -0
  310. data/spec/cassettes/Octokit_Client_Users/_validate_credentials/validates_username_and_password.json +1 -0
  311. data/spec/cassettes/Octokit_Client_Users/methods_requiring_an_existing_public_key/_add_key/adds_a_public_key.json +1 -0
  312. data/spec/cassettes/Octokit_Client_Users/methods_requiring_an_existing_public_key/_key/returns_a_public_key.json +1 -0
  313. data/spec/cassettes/Octokit_Client_Users/methods_requiring_an_existing_public_key/_remove_key/removes_a_public_key.json +1 -0
  314. data/spec/cassettes/Octokit_Client_Users/methods_requiring_an_existing_public_key/_update_key/updates_a_public_key.json +1 -0
  315. data/spec/cassettes/delete_authorization.json +1 -0
  316. data/spec/cassettes/rate_limit.json +1 -0
  317. data/spec/cassettes/root.json +1 -0
  318. data/spec/fixtures/user.json +29 -18
  319. data/spec/fixtures/{user_token.json → web_flow_token.json} +0 -0
  320. data/spec/helper.rb +49 -22
  321. data/spec/octokit/client/authorizations_spec.rb +69 -80
  322. data/spec/octokit/client/commit_comments_spec.rb +62 -0
  323. data/spec/octokit/client/commits_spec.rb +93 -226
  324. data/spec/octokit/client/contents_spec.rb +64 -119
  325. data/spec/octokit/client/downloads_spec.rb +34 -38
  326. data/spec/octokit/client/emojis_spec.rb +5 -11
  327. data/spec/octokit/client/events_spec.rb +67 -51
  328. data/spec/octokit/client/gists_spec.rb +148 -142
  329. data/spec/octokit/client/gitignore_spec.rb +11 -14
  330. data/spec/octokit/client/issues_spec.rb +129 -161
  331. data/spec/octokit/client/labels_spec.rb +81 -114
  332. data/spec/octokit/client/legacy_search_spec.rb +42 -0
  333. data/spec/octokit/client/markdown_spec.rb +9 -12
  334. data/spec/octokit/client/meta_spec.rb +14 -0
  335. data/spec/octokit/client/milestones_spec.rb +40 -48
  336. data/spec/octokit/client/notifications_spec.rb +57 -113
  337. data/spec/octokit/client/objects_spec.rb +36 -74
  338. data/spec/octokit/client/organizations_spec.rb +140 -262
  339. data/spec/octokit/client/pub_sub_hubbub_spec.rb +58 -49
  340. data/spec/octokit/client/pull_requests_spec.rb +186 -0
  341. data/spec/octokit/client/rate_limit_spec.rb +40 -0
  342. data/spec/octokit/client/refs_spec.rb +47 -56
  343. data/spec/octokit/client/repositories_spec.rb +301 -438
  344. data/spec/octokit/client/say_spec.rb +8 -22
  345. data/spec/octokit/client/service_status_spec.rb +37 -0
  346. data/spec/octokit/client/stats_spec.rb +82 -32
  347. data/spec/octokit/client/statuses_spec.rb +11 -51
  348. data/spec/octokit/client/users_spec.rb +144 -348
  349. data/spec/octokit/client_spec.rb +345 -195
  350. data/spec/octokit/rate_limit_spec.rb +25 -0
  351. data/spec/octokit_spec.rb +31 -15
  352. metadata +585 -387
  353. data/lib/faraday/response/raise_octokit_error.rb +0 -25
  354. data/lib/octokit/client/github.rb +0 -19
  355. data/lib/octokit/client/pub_sub_hubbub/service_hooks.rb +0 -37
  356. data/lib/octokit/configuration.rb +0 -77
  357. data/lib/octokit/connection.rb +0 -53
  358. data/lib/octokit/request.rb +0 -110
  359. data/spec/faraday/response_spec.rb +0 -63
  360. data/spec/fixtures/all_repositories.json +0 -122
  361. data/spec/fixtures/all_users.json +0 -34
  362. data/spec/fixtures/authorization.json +0 -16
  363. data/spec/fixtures/authorizations.json +0 -66
  364. data/spec/fixtures/blob.json +0 -7
  365. data/spec/fixtures/blob_create.json +0 -3
  366. data/spec/fixtures/branches.json +0 -16
  367. data/spec/fixtures/code_frequency_stats.json +0 -897
  368. data/spec/fixtures/collaborators.json +0 -62
  369. data/spec/fixtures/comment.json +0 -14
  370. data/spec/fixtures/comments.json +0 -44
  371. data/spec/fixtures/commit.json +0 -50
  372. data/spec/fixtures/commit_activity_stats.json +0 -678
  373. data/spec/fixtures/commit_comment.json +0 -19
  374. data/spec/fixtures/commit_comment_create.json +0 -19
  375. data/spec/fixtures/commit_comment_update.json +0 -19
  376. data/spec/fixtures/commit_comments.json +0 -78
  377. data/spec/fixtures/commit_create.json +0 -25
  378. data/spec/fixtures/commits.json +0 -1414
  379. data/spec/fixtures/compare.json +0 -98
  380. data/spec/fixtures/contents.json +0 -14
  381. data/spec/fixtures/contributor_stats.json +0 -2196
  382. data/spec/fixtures/contributors.json +0 -891
  383. data/spec/fixtures/create_content.json +0 -44
  384. data/spec/fixtures/delete_content.json +0 -30
  385. data/spec/fixtures/download.json +0 -11
  386. data/spec/fixtures/download_create.json +0 -21
  387. data/spec/fixtures/downloads.json +0 -35
  388. data/spec/fixtures/emails.json +0 -4
  389. data/spec/fixtures/emojis.json +0 -500
  390. data/spec/fixtures/followers.json +0 -212
  391. data/spec/fixtures/following.json +0 -209
  392. data/spec/fixtures/forks.json +0 -872
  393. data/spec/fixtures/gist.json +0 -51
  394. data/spec/fixtures/gist_comment.json +0 -19
  395. data/spec/fixtures/gist_comment_create.json +0 -19
  396. data/spec/fixtures/gist_comment_update.json +0 -19
  397. data/spec/fixtures/gist_comments.json +0 -40
  398. data/spec/fixtures/gists.json +0 -548
  399. data/spec/fixtures/github_meta.json +0 -9
  400. data/spec/fixtures/github_status.json +0 -4
  401. data/spec/fixtures/github_status_last_message.json +0 -5
  402. data/spec/fixtures/github_status_messages.json +0 -12
  403. data/spec/fixtures/gitignore_template_ruby.json +0 -4
  404. data/spec/fixtures/gitignore_templates.json +0 -78
  405. data/spec/fixtures/hook.json +0 -18
  406. data/spec/fixtures/hooks.json +0 -70
  407. data/spec/fixtures/issue.json +0 -35
  408. data/spec/fixtures/issue_closed.json +0 -35
  409. data/spec/fixtures/issue_event.json +0 -42
  410. data/spec/fixtures/issue_events.json +0 -72
  411. data/spec/fixtures/issue_full.json +0 -38
  412. data/spec/fixtures/issues.json +0 -1562
  413. data/spec/fixtures/label.json +0 -5
  414. data/spec/fixtures/labels.json +0 -17
  415. data/spec/fixtures/languages.json +0 -5
  416. data/spec/fixtures/legacy/issues.json +0 -49
  417. data/spec/fixtures/legacy/repositories.json +0 -173
  418. data/spec/fixtures/legacy/users.json +0 -24
  419. data/spec/fixtures/list_commit_comments.json +0 -572
  420. data/spec/fixtures/markdown_gfm +0 -1
  421. data/spec/fixtures/merge.json +0 -47
  422. data/spec/fixtures/milestone.json +0 -11
  423. data/spec/fixtures/milestones.json +0 -28
  424. data/spec/fixtures/not_found.json +0 -3
  425. data/spec/fixtures/notification_thread.json +0 -32
  426. data/spec/fixtures/notifications.json +0 -32
  427. data/spec/fixtures/org_issues.json +0 -710
  428. data/spec/fixtures/organization-repositories.json +0 -4292
  429. data/spec/fixtures/organization-repository.json +0 -42
  430. data/spec/fixtures/organization.json +0 -18
  431. data/spec/fixtures/organization_events.json +0 -61
  432. data/spec/fixtures/organization_members.json +0 -576
  433. data/spec/fixtures/organization_public_events.json +0 -61
  434. data/spec/fixtures/organization_team_members.json +0 -16
  435. data/spec/fixtures/organization_team_repos.json +0 -62
  436. data/spec/fixtures/organizations.json +0 -44
  437. data/spec/fixtures/participation_stats.json +0 -110
  438. data/spec/fixtures/public_events.json +0 -1104
  439. data/spec/fixtures/public_gists.json +0 -968
  440. data/spec/fixtures/public_key.json +0 -5
  441. data/spec/fixtures/public_key_update.json +0 -5
  442. data/spec/fixtures/public_keys.json +0 -7
  443. data/spec/fixtures/pull_created.json +0 -138
  444. data/spec/fixtures/pull_request.json +0 -138
  445. data/spec/fixtures/pull_request_comment.json +0 -35
  446. data/spec/fixtures/pull_request_comment_create.json +0 -35
  447. data/spec/fixtures/pull_request_comment_reply.json +0 -35
  448. data/spec/fixtures/pull_request_comment_update.json +0 -35
  449. data/spec/fixtures/pull_request_comments.json +0 -35
  450. data/spec/fixtures/pull_request_commits.json +0 -45
  451. data/spec/fixtures/pull_request_files.json +0 -35
  452. data/spec/fixtures/pull_request_merged.json +0 -5
  453. data/spec/fixtures/pull_requests.json +0 -187
  454. data/spec/fixtures/pull_requests_comments.json +0 -82
  455. data/spec/fixtures/pull_update.json +0 -138
  456. data/spec/fixtures/punch_card_stats.json +0 -842
  457. data/spec/fixtures/readme.json +0 -14
  458. data/spec/fixtures/ref.json +0 -9
  459. data/spec/fixtures/ref_create.json +0 -29
  460. data/spec/fixtures/ref_update.json +0 -11
  461. data/spec/fixtures/refs.json +0 -38
  462. data/spec/fixtures/refs_tags.json +0 -29
  463. data/spec/fixtures/repo_assignees.json +0 -30
  464. data/spec/fixtures/repo_events.json +0 -1652
  465. data/spec/fixtures/repo_issues_events.json +0 -128
  466. data/spec/fixtures/repositories.json +0 -872
  467. data/spec/fixtures/repository.json +0 -34
  468. data/spec/fixtures/repository_issues_comments.json +0 -52
  469. data/spec/fixtures/repository_network_events.json +0 -155
  470. data/spec/fixtures/repository_notifications.json +0 -32
  471. data/spec/fixtures/say.txt +0 -22
  472. data/spec/fixtures/say_custom.txt +0 -22
  473. data/spec/fixtures/stargazers.json +0 -212
  474. data/spec/fixtures/starred.json +0 -1114
  475. data/spec/fixtures/starred_gists.json +0 -30
  476. data/spec/fixtures/status.json +0 -16
  477. data/spec/fixtures/statuses.json +0 -34
  478. data/spec/fixtures/subscribers.json +0 -9
  479. data/spec/fixtures/subscription.json +0 -8
  480. data/spec/fixtures/subscription_update.json +0 -8
  481. data/spec/fixtures/subscriptions.json +0 -39
  482. data/spec/fixtures/tag.json +0 -16
  483. data/spec/fixtures/tag_create.json +0 -16
  484. data/spec/fixtures/tags.json +0 -173
  485. data/spec/fixtures/team.json +0 -8
  486. data/spec/fixtures/teams.json +0 -12
  487. data/spec/fixtures/thread_subscription.json +0 -8
  488. data/spec/fixtures/thread_subscription_update.json +0 -8
  489. data/spec/fixtures/tree.json +0 -112
  490. data/spec/fixtures/tree_create.json +0 -14
  491. data/spec/fixtures/update_content.json +0 -44
  492. data/spec/fixtures/user_events.json +0 -101
  493. data/spec/fixtures/user_issues.json +0 -710
  494. data/spec/fixtures/user_performed_public_events.json +0 -78
  495. data/spec/fixtures/user_public_events.json +0 -78
  496. data/spec/fixtures/validation_failed.json +0 -11
  497. data/spec/fixtures/watched.json +0 -1022
  498. data/spec/fixtures/watchers.json +0 -182
  499. data/spec/octokit/client/github_spec.rb +0 -19
  500. data/spec/octokit/client/issue_events_spec.rb +0 -30
  501. data/spec/octokit/client/pub_sub_hubbub/service_hooks_spec.rb +0 -48
  502. data/spec/octokit/client/pulls_spec.rb +0 -210
@@ -0,0 +1,25 @@
1
+ require 'helper'
2
+ require 'octokit/rate_limit'
3
+
4
+ describe Octokit::RateLimit do
5
+
6
+ it "parses rate limit info from response headers" do
7
+ response = double()
8
+ response.should_receive(:headers).
9
+ at_least(:once).
10
+ and_return({
11
+ "X-RateLimit-Limit" => 60,
12
+ "X-RateLimit-Remaining" => 42
13
+ })
14
+ info = Octokit::RateLimit.from_response(response)
15
+ expect(info.limit).to eq 60
16
+ expect(info.remaining).to eq 42
17
+ end
18
+
19
+ it "handles nil responses" do
20
+ info = Octokit::RateLimit.from_response(nil)
21
+ expect(info.limit).to be_nil
22
+ expect(info.remaining).to be_nil
23
+ end
24
+
25
+ end
@@ -1,30 +1,46 @@
1
- # -*- encoding: utf-8 -*-
2
1
  require 'helper'
3
2
 
4
3
  describe Octokit do
4
+ before do
5
+ Octokit.reset!
6
+ end
7
+
5
8
  after do
6
- Octokit.reset
9
+ Octokit.reset!
7
10
  end
8
11
 
9
- describe ".respond_to?" do
10
- it "is true if method exists" do
11
- expect(Octokit.respond_to?(:new, true)).to eq(true)
12
+ it "sets defaults" do
13
+ Octokit::Configurable.keys.each do |key|
14
+ expect(Octokit.instance_variable_get(:"@#{key}")).to eq Octokit::Default.send(key)
12
15
  end
13
16
  end
14
17
 
15
- describe ".new" do
16
- it "is a Octokit::Client" do
17
- expect(Octokit.new).to be_a Octokit::Client
18
+ describe ".client" do
19
+ it "creates an Octokit::Client" do
20
+ expect(Octokit.client).to be_kind_of Octokit::Client
21
+ end
22
+ it "caches the client when the same options are passed" do
23
+ expect(Octokit.client).to eq Octokit.client
24
+ end
25
+ it "returns a fresh client when options are not the same" do
26
+ client = Octokit.client
27
+ Octokit.access_token = "87614b09dd141c22800f96f11737ade5226d7ba8"
28
+ client_two = Octokit.client
29
+ client_three = Octokit.client
30
+ expect(client).to_not eq client_two
31
+ expect(client_three).to eq client_two
18
32
  end
19
33
  end
20
34
 
21
- describe ".delegate" do
22
- it "delegates missing methods to Octokit::Client" do
23
- stub_get("/repos/pengwynn/octokit/issues").
24
- to_return(json_response('issues.json'))
25
- issues = Octokit.issues('pengwynn/octokit')
26
- expect(issues.last.user.login).to eq('fellix')
35
+ describe ".configure" do
36
+ Octokit::Configurable.keys.each do |key|
37
+ it "sets the #{key.to_s.gsub('_', ' ')}" do
38
+ Octokit.configure do |config|
39
+ config.send("#{key}=", key)
40
+ end
41
+ expect(Octokit.instance_variable_get(:"@#{key}")).to eq key
42
+ end
27
43
  end
28
-
29
44
  end
45
+
30
46
  end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octokit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.25.0
5
- prerelease:
4
+ version: 2.0.0.pre
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Wynn Netherland
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-07-03 00:00:00.000000000 Z
14
+ date: 2013-07-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler
@@ -30,13 +30,13 @@ dependencies:
30
30
  - !ruby/object:Gem::Version
31
31
  version: '1.0'
32
32
  - !ruby/object:Gem::Dependency
33
- name: addressable
33
+ name: sawyer
34
34
  requirement: !ruby/object:Gem::Requirement
35
35
  none: false
36
36
  requirements:
37
37
  - - ~>
38
38
  - !ruby/object:Gem::Version
39
- version: '2.2'
39
+ version: 0.1.0
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
@@ -44,88 +44,8 @@ dependencies:
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: '2.2'
48
- - !ruby/object:Gem::Dependency
49
- name: faraday
50
- requirement: !ruby/object:Gem::Requirement
51
- none: false
52
- requirements:
53
- - - ~>
54
- - !ruby/object:Gem::Version
55
- version: '0.8'
56
- type: :runtime
57
- prerelease: false
58
- version_requirements: !ruby/object:Gem::Requirement
59
- none: false
60
- requirements:
61
- - - ~>
62
- - !ruby/object:Gem::Version
63
- version: '0.8'
64
- - !ruby/object:Gem::Dependency
65
- name: faraday_middleware
66
- requirement: !ruby/object:Gem::Requirement
67
- none: false
68
- requirements:
69
- - - ~>
70
- - !ruby/object:Gem::Version
71
- version: '0.9'
72
- type: :runtime
73
- prerelease: false
74
- version_requirements: !ruby/object:Gem::Requirement
75
- none: false
76
- requirements:
77
- - - ~>
78
- - !ruby/object:Gem::Version
79
- version: '0.9'
80
- - !ruby/object:Gem::Dependency
81
- name: hashie
82
- requirement: !ruby/object:Gem::Requirement
83
- none: false
84
- requirements:
85
- - - ~>
86
- - !ruby/object:Gem::Version
87
- version: '2.0'
88
- type: :runtime
89
- prerelease: false
90
- version_requirements: !ruby/object:Gem::Requirement
91
- none: false
92
- requirements:
93
- - - ~>
94
- - !ruby/object:Gem::Version
95
- version: '2.0'
96
- - !ruby/object:Gem::Dependency
97
- name: multi_json
98
- requirement: !ruby/object:Gem::Requirement
99
- none: false
100
- requirements:
101
- - - ~>
102
- - !ruby/object:Gem::Version
103
- version: '1.3'
104
- type: :runtime
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- none: false
108
- requirements:
109
- - - ~>
110
- - !ruby/object:Gem::Version
111
- version: '1.3'
112
- - !ruby/object:Gem::Dependency
113
- name: netrc
114
- requirement: !ruby/object:Gem::Requirement
115
- none: false
116
- requirements:
117
- - - ~>
118
- - !ruby/object:Gem::Version
119
- version: 0.7.7
120
- type: :runtime
121
- prerelease: false
122
- version_requirements: !ruby/object:Gem::Requirement
123
- none: false
124
- requirements:
125
- - - ~>
126
- - !ruby/object:Gem::Version
127
- version: 0.7.7
128
- description: Simple wrapper for the GitHub v3 API
47
+ version: 0.1.0
48
+ description: Simple wrapper for the GitHub API
129
49
  email:
130
50
  - wynn.netherland@gmail.com
131
51
  - sferik@gmail.com
@@ -141,216 +61,357 @@ files:
141
61
  - README.md
142
62
  - Rakefile
143
63
  - octokit.gemspec
144
- - lib/faraday/response/raise_octokit_error.rb
64
+ - lib/octokit/arguments.rb
145
65
  - lib/octokit/authentication.rb
146
66
  - lib/octokit/client/authorizations.rb
67
+ - lib/octokit/client/commit_comments.rb
147
68
  - lib/octokit/client/commits.rb
148
69
  - lib/octokit/client/contents.rb
149
70
  - lib/octokit/client/downloads.rb
150
71
  - lib/octokit/client/emojis.rb
151
72
  - lib/octokit/client/events.rb
152
73
  - lib/octokit/client/gists.rb
153
- - lib/octokit/client/github.rb
154
74
  - lib/octokit/client/gitignore.rb
155
75
  - lib/octokit/client/issues.rb
156
76
  - lib/octokit/client/labels.rb
77
+ - lib/octokit/client/legacy_search.rb
157
78
  - lib/octokit/client/markdown.rb
79
+ - lib/octokit/client/meta.rb
158
80
  - lib/octokit/client/milestones.rb
159
81
  - lib/octokit/client/notifications.rb
160
82
  - lib/octokit/client/objects.rb
161
83
  - lib/octokit/client/organizations.rb
162
- - lib/octokit/client/pub_sub_hubbub/service_hooks.rb
163
84
  - lib/octokit/client/pub_sub_hubbub.rb
164
- - lib/octokit/client/pulls.rb
85
+ - lib/octokit/client/pull_requests.rb
165
86
  - lib/octokit/client/rate_limit.rb
166
87
  - lib/octokit/client/refs.rb
167
88
  - lib/octokit/client/repositories.rb
168
89
  - lib/octokit/client/say.rb
90
+ - lib/octokit/client/service_status.rb
169
91
  - lib/octokit/client/stats.rb
170
92
  - lib/octokit/client/statuses.rb
171
93
  - lib/octokit/client/users.rb
172
94
  - lib/octokit/client.rb
173
- - lib/octokit/configuration.rb
174
- - lib/octokit/connection.rb
95
+ - lib/octokit/configurable.rb
96
+ - lib/octokit/default.rb
175
97
  - lib/octokit/error.rb
176
98
  - lib/octokit/gist.rb
99
+ - lib/octokit/rate_limit.rb
100
+ - lib/octokit/repo_arguments.rb
177
101
  - lib/octokit/repository.rb
178
- - lib/octokit/request.rb
102
+ - lib/octokit/response/raise_error.rb
179
103
  - lib/octokit/version.rb
180
104
  - lib/octokit.rb
181
- - spec/faraday/response_spec.rb
182
- - spec/fixtures/all_repositories.json
183
- - spec/fixtures/all_users.json
184
- - spec/fixtures/authorization.json
185
- - spec/fixtures/authorizations.json
186
- - spec/fixtures/blob.json
187
- - spec/fixtures/blob_create.json
188
- - spec/fixtures/branches.json
189
- - spec/fixtures/code_frequency_stats.json
190
- - spec/fixtures/collaborators.json
191
- - spec/fixtures/comment.json
192
- - spec/fixtures/comments.json
193
- - spec/fixtures/commit.json
194
- - spec/fixtures/commit_activity_stats.json
195
- - spec/fixtures/commit_comment.json
196
- - spec/fixtures/commit_comment_create.json
197
- - spec/fixtures/commit_comment_update.json
198
- - spec/fixtures/commit_comments.json
199
- - spec/fixtures/commit_create.json
200
- - spec/fixtures/commits.json
201
- - spec/fixtures/compare.json
202
- - spec/fixtures/contents.json
203
- - spec/fixtures/contributor_stats.json
204
- - spec/fixtures/contributors.json
205
- - spec/fixtures/create_content.json
206
- - spec/fixtures/delete_content.json
207
- - spec/fixtures/download.json
208
- - spec/fixtures/download_create.json
209
- - spec/fixtures/downloads.json
210
- - spec/fixtures/emails.json
211
- - spec/fixtures/emojis.json
212
- - spec/fixtures/followers.json
213
- - spec/fixtures/following.json
214
- - spec/fixtures/forks.json
215
- - spec/fixtures/gist.json
216
- - spec/fixtures/gist_comment.json
217
- - spec/fixtures/gist_comment_create.json
218
- - spec/fixtures/gist_comment_update.json
219
- - spec/fixtures/gist_comments.json
220
- - spec/fixtures/gists.json
221
- - spec/fixtures/github_meta.json
222
- - spec/fixtures/github_status.json
223
- - spec/fixtures/github_status_last_message.json
224
- - spec/fixtures/github_status_messages.json
225
- - spec/fixtures/gitignore_template_ruby.json
226
- - spec/fixtures/gitignore_templates.json
227
- - spec/fixtures/hook.json
228
- - spec/fixtures/hooks.json
229
- - spec/fixtures/issue.json
230
- - spec/fixtures/issue_closed.json
231
- - spec/fixtures/issue_event.json
232
- - spec/fixtures/issue_events.json
233
- - spec/fixtures/issue_full.json
234
- - spec/fixtures/issues.json
235
- - spec/fixtures/label.json
236
- - spec/fixtures/labels.json
237
- - spec/fixtures/languages.json
238
- - spec/fixtures/legacy/issues.json
239
- - spec/fixtures/legacy/repositories.json
240
- - spec/fixtures/legacy/users.json
241
- - spec/fixtures/list_commit_comments.json
242
- - spec/fixtures/markdown_gfm
243
- - spec/fixtures/merge.json
244
- - spec/fixtures/milestone.json
245
- - spec/fixtures/milestones.json
105
+ - spec/cassettes/delete_authorization.json
106
+ - spec/cassettes/Octokit_Client/_get/handles_query_params.json
107
+ - spec/cassettes/Octokit_Client/_head/handles_query_params.json
108
+ - spec/cassettes/Octokit_Client/_last_response/caches_the_last_agent_response.json
109
+ - spec/cassettes/Octokit_Client/authentication/when_token_authenticated/fetches_and_memoizes_login.json
110
+ - spec/cassettes/Octokit_Client/auto_pagination/fetches_all_the_pages.json
111
+ - spec/cassettes/Octokit_Client/error_handling/raises_on_404.json
112
+ - spec/cassettes/Octokit_Client_Authorizations/_authorization/returns_a_single_authorization.json
113
+ - spec/cassettes/Octokit_Client_Authorizations/_authorizations/lists_existing_authorizations.json
114
+ - spec/cassettes/Octokit_Client_Authorizations/_create_authorization/creates_a_new_authorization_with_options.json
115
+ - spec/cassettes/Octokit_Client_Authorizations/_create_authorization/creates_an_API_authorization.json
116
+ - spec/cassettes/Octokit_Client_Authorizations/_scopes/checks_the_scopes_on_a_one-off_token.json
117
+ - spec/cassettes/Octokit_Client_Authorizations/_scopes/checks_the_scopes_on_the_current_token.json
118
+ - spec/cassettes/Octokit_Client_Authorizations/_update_authorization/updates_and_existing_authorization.json
119
+ - spec/cassettes/Octokit_Client_CommitComments/_commit_comment/returns_a_single_commit_comment.json
120
+ - spec/cassettes/Octokit_Client_CommitComments/_commit_comments/returns_a_list_of_comments_for_a_specific_commit.json
121
+ - spec/cassettes/Octokit_Client_CommitComments/_create_commit_comment/creates_a_commit_comment.json
122
+ - spec/cassettes/Octokit_Client_CommitComments/_delete_commit_comment/deletes_a_commit_comment.json
123
+ - spec/cassettes/Octokit_Client_CommitComments/_list_commit_comments/returns_a_list_of_all_commit_comments.json
124
+ - spec/cassettes/Octokit_Client_CommitComments/_update_commit_comment/updates_a_commit_comment.json
125
+ - spec/cassettes/Octokit_Client_Commits/_commit/returns_a_commit.json
126
+ - spec/cassettes/Octokit_Client_Commits/_commits/handles_branch_or_sha_argument.json
127
+ - spec/cassettes/Octokit_Client_Commits/_commits/handles_the_sha_option.json
128
+ - spec/cassettes/Octokit_Client_Commits/_commits/returns_all_commits.json
129
+ - spec/cassettes/Octokit_Client_Commits/_commits_before/handles_branch_or_sha_argument.json
130
+ - spec/cassettes/Octokit_Client_Commits/_commits_before/handles_the_sha_option.json
131
+ - spec/cassettes/Octokit_Client_Commits/_commits_before/returns_all_commits_until_the_specified_date.json
132
+ - spec/cassettes/Octokit_Client_Commits/_commits_between/handles_branch_or_sha_argument.json
133
+ - spec/cassettes/Octokit_Client_Commits/_commits_between/handles_the_sha_option.json
134
+ - spec/cassettes/Octokit_Client_Commits/_commits_between/returns_all_commits_until_the_specified_date.json
135
+ - spec/cassettes/Octokit_Client_Commits/_commits_on/handles_branch_or_sha_argument.json
136
+ - spec/cassettes/Octokit_Client_Commits/_commits_on/handles_the_sha_option.json
137
+ - spec/cassettes/Octokit_Client_Commits/_commits_on/returns_all_commits_on_the_specified_date.json
138
+ - spec/cassettes/Octokit_Client_Commits/_commits_since/handles_branch_or_sha_argument.json
139
+ - spec/cassettes/Octokit_Client_Commits/_commits_since/handles_the_sha_option.json
140
+ - spec/cassettes/Octokit_Client_Commits/_commits_since/returns_all_commits_since_the_specified_date.json
141
+ - spec/cassettes/Octokit_Client_Commits/_compare/returns_a_comparison.json
142
+ - spec/cassettes/Octokit_Client_Commits/_create_commit/creates_a_commit.json
143
+ - spec/cassettes/Octokit_Client_Commits/_merge/merges_a_branch_into_another.json
144
+ - spec/cassettes/Octokit_Client_Contents/_archive_link/returns_the_headers_of_the_request.json
145
+ - spec/cassettes/Octokit_Client_Contents/_contents/returns_the_contents_of_a_file.json
146
+ - spec/cassettes/Octokit_Client_Contents/_create_contents/creates_contents_from_File_object.json
147
+ - spec/cassettes/Octokit_Client_Contents/_create_contents/creates_contents_from_file_path.json
148
+ - spec/cassettes/Octokit_Client_Contents/_create_contents/creates_repository_contents_at_a_path.json
149
+ - spec/cassettes/Octokit_Client_Contents/_delete_contents/deletes_repository_contents_at_a_path.json
150
+ - spec/cassettes/Octokit_Client_Contents/_readme/returns_the_default_readme.json
151
+ - spec/cassettes/Octokit_Client_Contents/_update_contents/updates_repository_contents_at_a_path.json
152
+ - spec/cassettes/Octokit_Client_Downloads/_download/gets_a_single_download.json
153
+ - spec/cassettes/Octokit_Client_Downloads/_downloads/lists_available_downloads.json
154
+ - spec/cassettes/Octokit_Client_Downloads/methods_that_require_a_download/_create_download/creates_a_download_resource.json
155
+ - spec/cassettes/Octokit_Client_Downloads/methods_that_require_a_download/_create_download/posts_to_an_S3_url.json
156
+ - spec/cassettes/Octokit_Client_Downloads/methods_that_require_a_download/_delete_download/deletes_a_download.json
157
+ - spec/cassettes/Octokit_Client_Emojis/_emojis/returns_all_github_emojis.json
158
+ - spec/cassettes/Octokit_Client_Events/_issue_event/lists_issue_events_for_a_repository.json
159
+ - spec/cassettes/Octokit_Client_Events/_issue_events/lists_issue_events_for_a_repository.json
160
+ - spec/cassettes/Octokit_Client_Events/_organization_events/returns_all_events_for_an_organization.json
161
+ - spec/cassettes/Octokit_Client_Events/_organization_public_events/returns_an_organization_s_public_events.json
162
+ - spec/cassettes/Octokit_Client_Events/_public_events/returns_all_public_events.json
163
+ - spec/cassettes/Octokit_Client_Events/_received_events/returns_all_user_received_events.json
164
+ - spec/cassettes/Octokit_Client_Events/_received_public_events/returns_public_user_received_events.json
165
+ - spec/cassettes/Octokit_Client_Events/_repo_issue_events/lists_issue_events_for_a_repository.json
166
+ - spec/cassettes/Octokit_Client_Events/_repository_events/returns_events_for_a_repository.json
167
+ - spec/cassettes/Octokit_Client_Events/_repository_network_events/returns_events_for_a_repository_s_network.json
168
+ - spec/cassettes/Octokit_Client_Events/_user_events/returns_all_user_events.json
169
+ - spec/cassettes/Octokit_Client_Events/_user_public_events/returns_public_events_performed_by_a_user.json
170
+ - spec/cassettes/Octokit_Client_Gists/unauthenticated/_gist/returns_the_gist_by_ID.json
171
+ - spec/cassettes/Octokit_Client_Gists/unauthenticated/_gists/with_username_passed/returns_a_list_of_gists.json
172
+ - spec/cassettes/Octokit_Client_Gists/unauthenticated/_gists/without_a_username_passed/returns_a_list_of_gists.json
173
+ - spec/cassettes/Octokit_Client_Gists/unauthenticated/_public_gists/returns_public_gists.json
174
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_create_gist/creates_a_new_gist.json
175
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_create_gist_comment/creates_a_gist_comment.json
176
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_delete_gist/deletes_an_existing_gist.json
177
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_delete_gist_comment/deletes_a_gist_comment.json
178
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_edit_gist/edit_an_existing_gist.json
179
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_fork_gist/forks_an_existing_gist.json
180
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_gist_comment/returns_a_gist_comment.json
181
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_gist_comments/returns_the_list_of_gist_comments.json
182
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_gist_starred_/is_not_starred.json
183
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_gist_starred_/is_starred.json
184
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_gists/returns_a_list_of_gists.json
185
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_star_gist/stars_an_existing_gist.json
186
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_starred_gists/returns_the_user_s_starred_gists.json
187
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_unstar_gist/unstars_an_existing_gist.json
188
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_update_gist_comment/updates_a_gist_comment.json
189
+ - spec/cassettes/Octokit_Client_Gitignore/_gitignore_template/returns_the_ruby_gitignore_template.json
190
+ - spec/cassettes/Octokit_Client_Gitignore/_gitignore_templates/returns_all_gitignore_templates.json
191
+ - spec/cassettes/Octokit_Client_Issues/_create_issue/creates_an_issue.json
192
+ - spec/cassettes/Octokit_Client_Issues/_create_issue/creates_an_issue_with_delimited_labels.json
193
+ - spec/cassettes/Octokit_Client_Issues/_create_issue/creates_an_issue_with_labels_array.json
194
+ - spec/cassettes/Octokit_Client_Issues/_issue_comment/returns_a_single_comment_for_an_issue.json
195
+ - spec/cassettes/Octokit_Client_Issues/_issue_comments/returns_comments_for_an_issue.json
196
+ - spec/cassettes/Octokit_Client_Issues/_list_issues/returns_dashboard_issues_for_the_authenticated_user.json
197
+ - spec/cassettes/Octokit_Client_Issues/_list_issues/returns_issues_for_a_repository.json
198
+ - spec/cassettes/Octokit_Client_Issues/_org_issues/returns_issues_for_the_organization_for_the_authenticated_user.json
199
+ - spec/cassettes/Octokit_Client_Issues/_repository_issues_comments/returns_comments_for_all_issues_in_a_repository.json
200
+ - spec/cassettes/Octokit_Client_Issues/_user_issues/returns_issues_for_the_authenticated_user_for_owned_and_member_repos.json
201
+ - spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_add_comment/adds_a_comment.json
202
+ - spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_close_issue/closes_an_issue.json
203
+ - spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_issue/returns_a_full_issue.json
204
+ - spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_issue/returns_an_issue.json
205
+ - spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_reopen_issue/reopens_an_issue.json
206
+ - spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_update_issue/updates_an_issue.json
207
+ - spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/methods_requiring_a_new_issue_comment/_delete_comment/deletes_an_existing_comment.json
208
+ - spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/methods_requiring_a_new_issue_comment/_update_comment/updates_an_existing_comment.json
209
+ - spec/cassettes/Octokit_Client_Labels/_add_label/adds_a_label_with_a_color.json
210
+ - spec/cassettes/Octokit_Client_Labels/_add_label/adds_a_label_with_default_color.json
211
+ - spec/cassettes/Octokit_Client_Labels/_delete_label_/deletes_a_label_from_the_repository.json
212
+ - spec/cassettes/Octokit_Client_Labels/_label/returns_a_single_label.json
213
+ - spec/cassettes/Octokit_Client_Labels/_labels/returns_labels.json
214
+ - spec/cassettes/Octokit_Client_Labels/_lables_for_milestone/returns_all_labels_for_a_repository.json
215
+ - spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_issue/_add_labels_to_an_issue/adds_labels_to_a_given_issue.json
216
+ - spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_issue/_labels_for_issue/returns_all_labels_for_a_given_issue.json
217
+ - spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_issue/_remove_all_labels/removes_all_labels_from_the_specified_issue.json
218
+ - spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_issue/_remove_label/removes_a_label_from_the_specified_issue.json
219
+ - spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_issue/_replace_all_labels/replaces_all_labels_for_an_issue.json
220
+ - spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_label/_update_label/updates_a_label_with_a_new_color.json
221
+ - spec/cassettes/Octokit_Client_LegacySearch/_legacy_search_issues/returns_matching_issues.json
222
+ - spec/cassettes/Octokit_Client_LegacySearch/_legacy_search_repos/returns_matching_repositories.json
223
+ - spec/cassettes/Octokit_Client_LegacySearch/_legacy_search_users/returns_matching_username.json
224
+ - spec/cassettes/Octokit_Client_Markdown/_markdown/renders_markdown.json
225
+ - spec/cassettes/Octokit_Client_Meta/_github_meta/returns_meta_information_about_github.json
226
+ - spec/cassettes/Octokit_Client_Milestones/_list_milestones/lists_milestones_belonging_to_repository.json
227
+ - spec/cassettes/Octokit_Client_Milestones/methods_that_need_a_milestone/_create_milestone/creates_a_milestone.json
228
+ - spec/cassettes/Octokit_Client_Milestones/methods_that_need_a_milestone/_delete_milestone/deletes_a_milestone_from_a_repository.json
229
+ - spec/cassettes/Octokit_Client_Milestones/methods_that_need_a_milestone/_milestone/gets_a_single_milestone_belonging_to_repository.json
230
+ - spec/cassettes/Octokit_Client_Milestones/methods_that_need_a_milestone/_update_milestone/updates_a_milestone.json
231
+ - spec/cassettes/Octokit_Client_Notifications/_mark_notifications_as_read/returns_true_when_notifications_are_marked_as_read.json
232
+ - spec/cassettes/Octokit_Client_Notifications/_mark_repository_notifications_as_read/returns_true_when_notifications_for_a_repo_are_marked_as_read.json
233
+ - spec/cassettes/Octokit_Client_Notifications/_notifications/lists_the_notifications_for_the_current_user.json
234
+ - spec/cassettes/Octokit_Client_Notifications/_repository_notifications/lists_all_notifications_for_a_repository.json
235
+ - spec/cassettes/Octokit_Client_Notifications/methods_that_need_a_thread_context/_delete_thread_subscription/returns_true_with_successful_thread_deletion.json
236
+ - spec/cassettes/Octokit_Client_Notifications/methods_that_need_a_thread_context/_mark_thread_as_read/marks_a_thread_as_read.json
237
+ - spec/cassettes/Octokit_Client_Notifications/methods_that_need_a_thread_context/_thread_notifications/returns_notifications_for_a_specific_thread.json
238
+ - spec/cassettes/Octokit_Client_Notifications/methods_that_need_a_thread_context/_thread_subscription/returns_a_thread_subscription.json
239
+ - spec/cassettes/Octokit_Client_Notifications/methods_that_need_a_thread_context/_update_thread_subscription/updates_a_thread_subscription.json
240
+ - spec/cassettes/Octokit_Client_Objects/_blob/returns_a_blob.json
241
+ - spec/cassettes/Octokit_Client_Objects/_create_blob/creates_a_blob.json
242
+ - spec/cassettes/Octokit_Client_Objects/_create_tag/creates_a_tag.json
243
+ - spec/cassettes/Octokit_Client_Objects/_create_tree/creates_a_tree.json
244
+ - spec/cassettes/Octokit_Client_Objects/_tag/returns_a_tag.json
245
+ - spec/cassettes/Octokit_Client_Objects/_tree/gets_a_tree.json
246
+ - spec/cassettes/Octokit_Client_Objects/_tree/gets_a_tree_recursively.json
247
+ - spec/cassettes/Octokit_Client_Organizations/_organization/returns_an_organization.json
248
+ - spec/cassettes/Octokit_Client_Organizations/_organization_member_/checks_organization_membership.json
249
+ - spec/cassettes/Octokit_Client_Organizations/_organization_members/returns_all_public_members_of_an_organization.json
250
+ - spec/cassettes/Octokit_Client_Organizations/_organization_public_member_/checks_publicized_org_membership.json
251
+ - spec/cassettes/Octokit_Client_Organizations/_organization_repositories/returns_all_public_repositories_for_an_organization.json
252
+ - spec/cassettes/Octokit_Client_Organizations/_organization_teams/returns_all_teams_for_an_organization.json
253
+ - spec/cassettes/Octokit_Client_Organizations/_organizations/returns_all_organizations_for_a_user.json
254
+ - spec/cassettes/Octokit_Client_Organizations/_organizations/returns_all_organizations_for_the_authenticated_user.json
255
+ - spec/cassettes/Octokit_Client_Organizations/_update_organization/updates_an_organization.json
256
+ - spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_add_team_member/adds_a_team_member.json
257
+ - spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_add_team_repository/adds_a_team_repository.json
258
+ - spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_create_team/creates_a_team.json
259
+ - spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_delete_team/deletes_a_team.json
260
+ - spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_publicize_membership/publicizes_membership.json
261
+ - spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_remove_team_member/removes_a_team_member.json
262
+ - spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_remove_team_repository/removes_a_team_repository.json
263
+ - spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_team/returns_a_team.json
264
+ - spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_team_member_/checks_if_a_user_is_member_of_a_team.json
265
+ - spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_team_members/returns_team_members.json
266
+ - spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_team_repositories/returns_team_repositories.json
267
+ - spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_unpublicize_membership/unpublicizes_membership.json
268
+ - spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_update_team/updates_a_team.json
269
+ - spec/cassettes/Octokit_Client_PubSubHubbub/_subscribe/raises_an_error_when_topic_is_not_recognized.json
270
+ - spec/cassettes/Octokit_Client_PubSubHubbub/_subscribe/subscribes_to_pull_events.json
271
+ - spec/cassettes/Octokit_Client_PubSubHubbub/_subscribe_service_hook/subscribes_to_pull_events_on_specified_topic.json
272
+ - spec/cassettes/Octokit_Client_PubSubHubbub/_unsubscribe/unsubscribes_from_pull_events.json
273
+ - spec/cassettes/Octokit_Client_PubSubHubbub/unsubscribe_service_hook/unsubscribes_to_stop_receiving_events_on_specified_topic.json
274
+ - spec/cassettes/Octokit_Client_PullRequests/_create_pull_request_for_issue/creates_a_pull_request_and_attach_it_to_an_existing_issue.json
275
+ - spec/cassettes/Octokit_Client_PullRequests/_pull_request_comment/returns_a_comment_on_a_pull_request.json
276
+ - spec/cassettes/Octokit_Client_PullRequests/_pull_request_comments/returns_the_comments_for_a_pull_request.json
277
+ - spec/cassettes/Octokit_Client_PullRequests/_pull_request_commits/returns_the_commits_for_a_pull_request.json
278
+ - spec/cassettes/Octokit_Client_PullRequests/_pull_request_files/lists_files_for_a_pull_request.json
279
+ - spec/cassettes/Octokit_Client_PullRequests/_pull_requests/returns_all_pull_requests.json
280
+ - spec/cassettes/Octokit_Client_PullRequests/_pull_requests_comments/returns_all_comments_on_all_pull_requests.json
281
+ - spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_close_pull_request/closes_a_pull_request.json
282
+ - spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_create_pull_request/creates_a_pull_request.json
283
+ - spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_merge_pull_request/merges_the_pull_request.json
284
+ - spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_pull_merged_/returns_whether_the_pull_request_has_been_merged.json
285
+ - spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_pull_request/returns_a_pull_request.json
286
+ - spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_update_pull_request/updates_a_pull_request.json
287
+ - spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/methods_requiring_a_pull_request_comment/_create_pull_request_comment/creates_a_new_comment_on_a_pull_request.json
288
+ - spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/methods_requiring_a_pull_request_comment/_create_pull_request_comment_reply/creates_a_new_reply_to_a_pull_request_comment.json
289
+ - spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/methods_requiring_a_pull_request_comment/_delete_pull_request_comment/deletes_a_pull_request_comment.json
290
+ - spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/methods_requiring_a_pull_request_comment/_update_pull_request_comment/updates_a_pull_request_comment.json
291
+ - spec/cassettes/Octokit_Client_Refs/_ref/returns_a_tags_ref.json
292
+ - spec/cassettes/Octokit_Client_Refs/_refs/returns_all_refs.json
293
+ - spec/cassettes/Octokit_Client_Refs/_refs/returns_all_tag_refs.json
294
+ - spec/cassettes/Octokit_Client_Refs/methods_that_require_a_ref/_create_ref/creates_a_ref.json
295
+ - spec/cassettes/Octokit_Client_Refs/methods_that_require_a_ref/_delete_ref/deletes_an_existing_ref.json
296
+ - spec/cassettes/Octokit_Client_Refs/methods_that_require_a_ref/_update_ref/updates_a_ref.json
297
+ - spec/cassettes/Octokit_Client_Repositories/_all_repositories/returns_all_repositories_on_github.json
298
+ - spec/cassettes/Octokit_Client_Repositories/_assignees/lists_all_the_available_assignees_owner_collaborators_.json
299
+ - spec/cassettes/Octokit_Client_Repositories/_branches/returns_a_repository_s_branches.json
300
+ - spec/cassettes/Octokit_Client_Repositories/_branches/returns_a_single_branch.json
301
+ - spec/cassettes/Octokit_Client_Repositories/_check_assignee/checks_to_see_if_a_particular_user_is_an_assignee_for_a_repository.json
302
+ - spec/cassettes/Octokit_Client_Repositories/_collaborators/returns_a_repository_s_collaborators.json
303
+ - spec/cassettes/Octokit_Client_Repositories/_contributors/returns_repository_contributors.json
304
+ - spec/cassettes/Octokit_Client_Repositories/_contributors/returns_repository_contributors_excluding_anonymous.json
305
+ - spec/cassettes/Octokit_Client_Repositories/_create_repository/creates_a_repository_for_an_organization.json
306
+ - spec/cassettes/Octokit_Client_Repositories/_delete_subscription/returns_true_when_repo_subscription_deleted.json
307
+ - spec/cassettes/Octokit_Client_Repositories/_fork/forks_a_repository.json
308
+ - spec/cassettes/Octokit_Client_Repositories/_languages/returns_a_repository_s_languages.json
309
+ - spec/cassettes/Octokit_Client_Repositories/_network/returns_a_repository_s_network.json
310
+ - spec/cassettes/Octokit_Client_Repositories/_repositories/returns_a_user_s_repositories.json
311
+ - spec/cassettes/Octokit_Client_Repositories/_repositories/returns_authenticated_user_s_repositories.json
312
+ - spec/cassettes/Octokit_Client_Repositories/_repository/returns_the_matching_repository.json
313
+ - spec/cassettes/Octokit_Client_Repositories/_repository_/returns_false_if_the_repository_doesn_t_exist.json
314
+ - spec/cassettes/Octokit_Client_Repositories/_repository_/returns_true_if_the_repository_exists.json
315
+ - spec/cassettes/Octokit_Client_Repositories/_star/stars_a_repository.json
316
+ - spec/cassettes/Octokit_Client_Repositories/_stargazers/returns_all_repository_stargazers.json
317
+ - spec/cassettes/Octokit_Client_Repositories/_subscribers/lists_all_the_users_watching_the_repository.json
318
+ - spec/cassettes/Octokit_Client_Repositories/_subscription/returns_a_repository_subscription.json
319
+ - spec/cassettes/Octokit_Client_Repositories/_tags/returns_a_repository_s_tags.json
320
+ - spec/cassettes/Octokit_Client_Repositories/_unstar/unstars_a_repository.json
321
+ - spec/cassettes/Octokit_Client_Repositories/_unwatch/unwatches_a_repository.json
322
+ - spec/cassettes/Octokit_Client_Repositories/_update_subscription/updates_a_repository_subscription.json
323
+ - spec/cassettes/Octokit_Client_Repositories/_watch/watches_a_repository.json
324
+ - spec/cassettes/Octokit_Client_Repositories/_watchers/returns_all_repository_watchers.json
325
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_add_collaborator/adds_a_repository_collaborators.json
326
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_create_repository/creates_a_repository.json
327
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_delete_repository/deletes_a_repository.json
328
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_deploy_keys/returns_a_repository_s_deploy_keys.json
329
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_hooks/returns_a_repository_s_hooks.json
330
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_remove_collaborator/removes_a_repository_collaborators.json
331
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_repository_teams/returns_all_repository_teams.json
332
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_update_repository/updates_the_matching_repository.json
333
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_requiring_an_existing_deploy_key/_add_deploy_key/adds_a_repository_deploy_keys.json
334
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_that_need_an_existing_hook/_create_hook/creates_a_hook.json
335
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_that_need_an_existing_hook/_edit_hook/edits_a_hook.json
336
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_that_need_an_existing_hook/_hook/returns_a_repository_s_single_hook.json
337
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_that_need_an_existing_hook/_remove_hook/removes_a_hook.json
338
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_that_need_an_existing_hook/_test_hook/tests_a_hook.json
339
+ - spec/cassettes/Octokit_Client_Say/_say/returns_an_ASCII_octocat.json
340
+ - spec/cassettes/Octokit_Client_Say/_say/returns_an_ASCII_octocat_with_custom_text.json
341
+ - spec/cassettes/Octokit_Client_ServiceStatus/_github_status/returns_the_current_system_status.json
342
+ - spec/cassettes/Octokit_Client_ServiceStatus/_github_status/returns_the_most_recent_status_messages.json
343
+ - spec/cassettes/Octokit_Client_ServiceStatus/_github_status_last_message/returns_the_last_human_message.json
344
+ - spec/cassettes/Octokit_Client_Stats/_code_frequency_stats/returns_the_code_frequency_stats.json
345
+ - spec/cassettes/Octokit_Client_Stats/_commit_activity_stats/returns_the_commit_activity_stats.json
346
+ - spec/cassettes/Octokit_Client_Stats/_contributors_stats/returns_contributors_and_their_contribution_stats.json
347
+ - spec/cassettes/Octokit_Client_Stats/_participation_stats/returns_the_owner_and_contributor_participation_stats.json
348
+ - spec/cassettes/Octokit_Client_Stats/_punch_card_stats/returns_commit_count_by_hour_punch_card_stats.json
349
+ - spec/cassettes/Octokit_Client_Statuses/_create_status/creates_status.json
350
+ - spec/cassettes/Octokit_Client_Statuses/_statuses/lists_commit_statuses.json
351
+ - spec/cassettes/Octokit_Client_Users/_add_email/adds_an_email_address.json
352
+ - spec/cassettes/Octokit_Client_Users/_all_users/returns_all_GitHub_users.json
353
+ - spec/cassettes/Octokit_Client_Users/_emails/returns_email_addresses.json
354
+ - spec/cassettes/Octokit_Client_Users/_follow/follows_a_user.json
355
+ - spec/cassettes/Octokit_Client_Users/_followers/returns_followers_for_a_user.json
356
+ - spec/cassettes/Octokit_Client_Users/_followers/returns_the_authenticated_user_s_followers.json
357
+ - spec/cassettes/Octokit_Client_Users/_following/returns_following_for_a_user.json
358
+ - spec/cassettes/Octokit_Client_Users/_following/returns_the_authenticated_user_s_following.json
359
+ - spec/cassettes/Octokit_Client_Users/_follows_/checks_if_the_authenticated_user_follows_another.json
360
+ - spec/cassettes/Octokit_Client_Users/_keys/returns_public_keys_for_the_authenticated_user.json
361
+ - spec/cassettes/Octokit_Client_Users/_remove_email/removes_an_email_address.json
362
+ - spec/cassettes/Octokit_Client_Users/_starred/returns_starred_repositories_for_a_user.json
363
+ - spec/cassettes/Octokit_Client_Users/_starred/returns_starred_repositories_for_the_authenticated_user.json
364
+ - spec/cassettes/Octokit_Client_Users/_starred_/checks_if_the_authenticated_user_has_starred_a_repository.json
365
+ - spec/cassettes/Octokit_Client_Users/_subscriptions/returns_the_repositories_a_user_watches_for_notifications.json
366
+ - spec/cassettes/Octokit_Client_Users/_subscriptions/returns_the_repositories_the_authenticated_user_watches_for_notifications.json
367
+ - spec/cassettes/Octokit_Client_Users/_unfollow/unfollows_a_user.json
368
+ - spec/cassettes/Octokit_Client_Users/_update_user/updates_a_user_profile.json
369
+ - spec/cassettes/Octokit_Client_Users/_user/returns_a_user.json
370
+ - spec/cassettes/Octokit_Client_Users/_user/returns_the_authenticated_user.json
371
+ - spec/cassettes/Octokit_Client_Users/_user_keys/returns_public_keys_for_another_user.json
372
+ - spec/cassettes/Octokit_Client_Users/_validate_credentials/validates_username_and_password.json
373
+ - spec/cassettes/Octokit_Client_Users/methods_requiring_an_existing_public_key/_add_key/adds_a_public_key.json
374
+ - spec/cassettes/Octokit_Client_Users/methods_requiring_an_existing_public_key/_key/returns_a_public_key.json
375
+ - spec/cassettes/Octokit_Client_Users/methods_requiring_an_existing_public_key/_remove_key/removes_a_public_key.json
376
+ - spec/cassettes/Octokit_Client_Users/methods_requiring_an_existing_public_key/_update_key/updates_a_public_key.json
377
+ - spec/cassettes/rate_limit.json
378
+ - spec/cassettes/root.json
246
379
  - spec/fixtures/new_file.txt
247
- - spec/fixtures/not_found.json
248
- - spec/fixtures/notification_thread.json
249
- - spec/fixtures/notifications.json
250
- - spec/fixtures/org_issues.json
251
- - spec/fixtures/organization-repositories.json
252
- - spec/fixtures/organization-repository.json
253
- - spec/fixtures/organization.json
254
- - spec/fixtures/organization_events.json
255
- - spec/fixtures/organization_members.json
256
- - spec/fixtures/organization_public_events.json
257
- - spec/fixtures/organization_team_members.json
258
- - spec/fixtures/organization_team_repos.json
259
- - spec/fixtures/organizations.json
260
- - spec/fixtures/participation_stats.json
261
- - spec/fixtures/public_events.json
262
- - spec/fixtures/public_gists.json
263
- - spec/fixtures/public_key.json
264
- - spec/fixtures/public_key_update.json
265
- - spec/fixtures/public_keys.json
266
- - spec/fixtures/pull_created.json
267
- - spec/fixtures/pull_request.json
268
- - spec/fixtures/pull_request_comment.json
269
- - spec/fixtures/pull_request_comment_create.json
270
- - spec/fixtures/pull_request_comment_reply.json
271
- - spec/fixtures/pull_request_comment_update.json
272
- - spec/fixtures/pull_request_comments.json
273
- - spec/fixtures/pull_request_commits.json
274
- - spec/fixtures/pull_request_files.json
275
- - spec/fixtures/pull_request_merged.json
276
- - spec/fixtures/pull_requests.json
277
- - spec/fixtures/pull_requests_comments.json
278
- - spec/fixtures/pull_update.json
279
- - spec/fixtures/punch_card_stats.json
280
- - spec/fixtures/readme.json
281
- - spec/fixtures/ref.json
282
- - spec/fixtures/ref_create.json
283
- - spec/fixtures/ref_update.json
284
- - spec/fixtures/refs.json
285
- - spec/fixtures/refs_tags.json
286
- - spec/fixtures/repo_assignees.json
287
- - spec/fixtures/repo_events.json
288
- - spec/fixtures/repo_issues_events.json
289
- - spec/fixtures/repositories.json
290
- - spec/fixtures/repository.json
291
- - spec/fixtures/repository_issues_comments.json
292
- - spec/fixtures/repository_network_events.json
293
- - spec/fixtures/repository_notifications.json
294
- - spec/fixtures/say.txt
295
- - spec/fixtures/say_custom.txt
296
- - spec/fixtures/stargazers.json
297
- - spec/fixtures/starred.json
298
- - spec/fixtures/starred_gists.json
299
- - spec/fixtures/status.json
300
- - spec/fixtures/statuses.json
301
- - spec/fixtures/subscribers.json
302
- - spec/fixtures/subscription.json
303
- - spec/fixtures/subscription_update.json
304
- - spec/fixtures/subscriptions.json
305
- - spec/fixtures/tag.json
306
- - spec/fixtures/tag_create.json
307
- - spec/fixtures/tags.json
308
- - spec/fixtures/team.json
309
- - spec/fixtures/teams.json
310
- - spec/fixtures/thread_subscription.json
311
- - spec/fixtures/thread_subscription_update.json
312
- - spec/fixtures/tree.json
313
- - spec/fixtures/tree_create.json
314
- - spec/fixtures/update_content.json
315
380
  - spec/fixtures/updated_file.txt
316
381
  - spec/fixtures/user.json
317
- - spec/fixtures/user_events.json
318
- - spec/fixtures/user_issues.json
319
- - spec/fixtures/user_performed_public_events.json
320
- - spec/fixtures/user_public_events.json
321
- - spec/fixtures/user_token.json
322
- - spec/fixtures/validation_failed.json
323
- - spec/fixtures/watched.json
324
- - spec/fixtures/watchers.json
382
+ - spec/fixtures/web_flow_token.json
325
383
  - spec/helper.rb
326
384
  - spec/octokit/client/authorizations_spec.rb
385
+ - spec/octokit/client/commit_comments_spec.rb
327
386
  - spec/octokit/client/commits_spec.rb
328
387
  - spec/octokit/client/contents_spec.rb
329
388
  - spec/octokit/client/downloads_spec.rb
330
389
  - spec/octokit/client/emojis_spec.rb
331
390
  - spec/octokit/client/events_spec.rb
332
391
  - spec/octokit/client/gists_spec.rb
333
- - spec/octokit/client/github_spec.rb
334
392
  - spec/octokit/client/gitignore_spec.rb
335
- - spec/octokit/client/issue_events_spec.rb
336
393
  - spec/octokit/client/issues_spec.rb
337
394
  - spec/octokit/client/labels_spec.rb
395
+ - spec/octokit/client/legacy_search_spec.rb
338
396
  - spec/octokit/client/markdown_spec.rb
397
+ - spec/octokit/client/meta_spec.rb
339
398
  - spec/octokit/client/milestones_spec.rb
340
399
  - spec/octokit/client/notifications_spec.rb
341
400
  - spec/octokit/client/objects_spec.rb
342
401
  - spec/octokit/client/organizations_spec.rb
343
- - spec/octokit/client/pub_sub_hubbub/service_hooks_spec.rb
344
402
  - spec/octokit/client/pub_sub_hubbub_spec.rb
345
- - spec/octokit/client/pulls_spec.rb
403
+ - spec/octokit/client/pull_requests_spec.rb
404
+ - spec/octokit/client/rate_limit_spec.rb
346
405
  - spec/octokit/client/refs_spec.rb
347
406
  - spec/octokit/client/repositories_spec.rb
348
407
  - spec/octokit/client/say_spec.rb
408
+ - spec/octokit/client/service_status_spec.rb
349
409
  - spec/octokit/client/stats_spec.rb
350
410
  - spec/octokit/client/statuses_spec.rb
351
411
  - spec/octokit/client/users_spec.rb
352
412
  - spec/octokit/client_spec.rb
353
413
  - spec/octokit/gist_spec.rb
414
+ - spec/octokit/rate_limit_spec.rb
354
415
  - spec/octokit/repository_spec.rb
355
416
  - spec/octokit_spec.rb
356
417
  homepage: https://github.com/octokit/octokit.rb
@@ -369,189 +430,326 @@ required_ruby_version: !ruby/object:Gem::Requirement
369
430
  required_rubygems_version: !ruby/object:Gem::Requirement
370
431
  none: false
371
432
  requirements:
372
- - - ! '>='
433
+ - - ! '>'
373
434
  - !ruby/object:Gem::Version
374
- version: 1.3.5
435
+ version: 1.3.1
375
436
  requirements: []
376
437
  rubyforge_project:
377
438
  rubygems_version: 1.8.23
378
439
  signing_key:
379
440
  specification_version: 3
380
- summary: Simple wrapper for the GitHub v3 API
441
+ summary: Ruby toolkit for working with the GitHub API
381
442
  test_files:
382
- - spec/faraday/response_spec.rb
383
- - spec/fixtures/all_repositories.json
384
- - spec/fixtures/all_users.json
385
- - spec/fixtures/authorization.json
386
- - spec/fixtures/authorizations.json
387
- - spec/fixtures/blob.json
388
- - spec/fixtures/blob_create.json
389
- - spec/fixtures/branches.json
390
- - spec/fixtures/code_frequency_stats.json
391
- - spec/fixtures/collaborators.json
392
- - spec/fixtures/comment.json
393
- - spec/fixtures/comments.json
394
- - spec/fixtures/commit.json
395
- - spec/fixtures/commit_activity_stats.json
396
- - spec/fixtures/commit_comment.json
397
- - spec/fixtures/commit_comment_create.json
398
- - spec/fixtures/commit_comment_update.json
399
- - spec/fixtures/commit_comments.json
400
- - spec/fixtures/commit_create.json
401
- - spec/fixtures/commits.json
402
- - spec/fixtures/compare.json
403
- - spec/fixtures/contents.json
404
- - spec/fixtures/contributor_stats.json
405
- - spec/fixtures/contributors.json
406
- - spec/fixtures/create_content.json
407
- - spec/fixtures/delete_content.json
408
- - spec/fixtures/download.json
409
- - spec/fixtures/download_create.json
410
- - spec/fixtures/downloads.json
411
- - spec/fixtures/emails.json
412
- - spec/fixtures/emojis.json
413
- - spec/fixtures/followers.json
414
- - spec/fixtures/following.json
415
- - spec/fixtures/forks.json
416
- - spec/fixtures/gist.json
417
- - spec/fixtures/gist_comment.json
418
- - spec/fixtures/gist_comment_create.json
419
- - spec/fixtures/gist_comment_update.json
420
- - spec/fixtures/gist_comments.json
421
- - spec/fixtures/gists.json
422
- - spec/fixtures/github_meta.json
423
- - spec/fixtures/github_status.json
424
- - spec/fixtures/github_status_last_message.json
425
- - spec/fixtures/github_status_messages.json
426
- - spec/fixtures/gitignore_template_ruby.json
427
- - spec/fixtures/gitignore_templates.json
428
- - spec/fixtures/hook.json
429
- - spec/fixtures/hooks.json
430
- - spec/fixtures/issue.json
431
- - spec/fixtures/issue_closed.json
432
- - spec/fixtures/issue_event.json
433
- - spec/fixtures/issue_events.json
434
- - spec/fixtures/issue_full.json
435
- - spec/fixtures/issues.json
436
- - spec/fixtures/label.json
437
- - spec/fixtures/labels.json
438
- - spec/fixtures/languages.json
439
- - spec/fixtures/legacy/issues.json
440
- - spec/fixtures/legacy/repositories.json
441
- - spec/fixtures/legacy/users.json
442
- - spec/fixtures/list_commit_comments.json
443
- - spec/fixtures/markdown_gfm
444
- - spec/fixtures/merge.json
445
- - spec/fixtures/milestone.json
446
- - spec/fixtures/milestones.json
443
+ - spec/cassettes/delete_authorization.json
444
+ - spec/cassettes/Octokit_Client/_get/handles_query_params.json
445
+ - spec/cassettes/Octokit_Client/_head/handles_query_params.json
446
+ - spec/cassettes/Octokit_Client/_last_response/caches_the_last_agent_response.json
447
+ - spec/cassettes/Octokit_Client/authentication/when_token_authenticated/fetches_and_memoizes_login.json
448
+ - spec/cassettes/Octokit_Client/auto_pagination/fetches_all_the_pages.json
449
+ - spec/cassettes/Octokit_Client/error_handling/raises_on_404.json
450
+ - spec/cassettes/Octokit_Client_Authorizations/_authorization/returns_a_single_authorization.json
451
+ - spec/cassettes/Octokit_Client_Authorizations/_authorizations/lists_existing_authorizations.json
452
+ - spec/cassettes/Octokit_Client_Authorizations/_create_authorization/creates_a_new_authorization_with_options.json
453
+ - spec/cassettes/Octokit_Client_Authorizations/_create_authorization/creates_an_API_authorization.json
454
+ - spec/cassettes/Octokit_Client_Authorizations/_scopes/checks_the_scopes_on_a_one-off_token.json
455
+ - spec/cassettes/Octokit_Client_Authorizations/_scopes/checks_the_scopes_on_the_current_token.json
456
+ - spec/cassettes/Octokit_Client_Authorizations/_update_authorization/updates_and_existing_authorization.json
457
+ - spec/cassettes/Octokit_Client_CommitComments/_commit_comment/returns_a_single_commit_comment.json
458
+ - spec/cassettes/Octokit_Client_CommitComments/_commit_comments/returns_a_list_of_comments_for_a_specific_commit.json
459
+ - spec/cassettes/Octokit_Client_CommitComments/_create_commit_comment/creates_a_commit_comment.json
460
+ - spec/cassettes/Octokit_Client_CommitComments/_delete_commit_comment/deletes_a_commit_comment.json
461
+ - spec/cassettes/Octokit_Client_CommitComments/_list_commit_comments/returns_a_list_of_all_commit_comments.json
462
+ - spec/cassettes/Octokit_Client_CommitComments/_update_commit_comment/updates_a_commit_comment.json
463
+ - spec/cassettes/Octokit_Client_Commits/_commit/returns_a_commit.json
464
+ - spec/cassettes/Octokit_Client_Commits/_commits/handles_branch_or_sha_argument.json
465
+ - spec/cassettes/Octokit_Client_Commits/_commits/handles_the_sha_option.json
466
+ - spec/cassettes/Octokit_Client_Commits/_commits/returns_all_commits.json
467
+ - spec/cassettes/Octokit_Client_Commits/_commits_before/handles_branch_or_sha_argument.json
468
+ - spec/cassettes/Octokit_Client_Commits/_commits_before/handles_the_sha_option.json
469
+ - spec/cassettes/Octokit_Client_Commits/_commits_before/returns_all_commits_until_the_specified_date.json
470
+ - spec/cassettes/Octokit_Client_Commits/_commits_between/handles_branch_or_sha_argument.json
471
+ - spec/cassettes/Octokit_Client_Commits/_commits_between/handles_the_sha_option.json
472
+ - spec/cassettes/Octokit_Client_Commits/_commits_between/returns_all_commits_until_the_specified_date.json
473
+ - spec/cassettes/Octokit_Client_Commits/_commits_on/handles_branch_or_sha_argument.json
474
+ - spec/cassettes/Octokit_Client_Commits/_commits_on/handles_the_sha_option.json
475
+ - spec/cassettes/Octokit_Client_Commits/_commits_on/returns_all_commits_on_the_specified_date.json
476
+ - spec/cassettes/Octokit_Client_Commits/_commits_since/handles_branch_or_sha_argument.json
477
+ - spec/cassettes/Octokit_Client_Commits/_commits_since/handles_the_sha_option.json
478
+ - spec/cassettes/Octokit_Client_Commits/_commits_since/returns_all_commits_since_the_specified_date.json
479
+ - spec/cassettes/Octokit_Client_Commits/_compare/returns_a_comparison.json
480
+ - spec/cassettes/Octokit_Client_Commits/_create_commit/creates_a_commit.json
481
+ - spec/cassettes/Octokit_Client_Commits/_merge/merges_a_branch_into_another.json
482
+ - spec/cassettes/Octokit_Client_Contents/_archive_link/returns_the_headers_of_the_request.json
483
+ - spec/cassettes/Octokit_Client_Contents/_contents/returns_the_contents_of_a_file.json
484
+ - spec/cassettes/Octokit_Client_Contents/_create_contents/creates_contents_from_File_object.json
485
+ - spec/cassettes/Octokit_Client_Contents/_create_contents/creates_contents_from_file_path.json
486
+ - spec/cassettes/Octokit_Client_Contents/_create_contents/creates_repository_contents_at_a_path.json
487
+ - spec/cassettes/Octokit_Client_Contents/_delete_contents/deletes_repository_contents_at_a_path.json
488
+ - spec/cassettes/Octokit_Client_Contents/_readme/returns_the_default_readme.json
489
+ - spec/cassettes/Octokit_Client_Contents/_update_contents/updates_repository_contents_at_a_path.json
490
+ - spec/cassettes/Octokit_Client_Downloads/_download/gets_a_single_download.json
491
+ - spec/cassettes/Octokit_Client_Downloads/_downloads/lists_available_downloads.json
492
+ - spec/cassettes/Octokit_Client_Downloads/methods_that_require_a_download/_create_download/creates_a_download_resource.json
493
+ - spec/cassettes/Octokit_Client_Downloads/methods_that_require_a_download/_create_download/posts_to_an_S3_url.json
494
+ - spec/cassettes/Octokit_Client_Downloads/methods_that_require_a_download/_delete_download/deletes_a_download.json
495
+ - spec/cassettes/Octokit_Client_Emojis/_emojis/returns_all_github_emojis.json
496
+ - spec/cassettes/Octokit_Client_Events/_issue_event/lists_issue_events_for_a_repository.json
497
+ - spec/cassettes/Octokit_Client_Events/_issue_events/lists_issue_events_for_a_repository.json
498
+ - spec/cassettes/Octokit_Client_Events/_organization_events/returns_all_events_for_an_organization.json
499
+ - spec/cassettes/Octokit_Client_Events/_organization_public_events/returns_an_organization_s_public_events.json
500
+ - spec/cassettes/Octokit_Client_Events/_public_events/returns_all_public_events.json
501
+ - spec/cassettes/Octokit_Client_Events/_received_events/returns_all_user_received_events.json
502
+ - spec/cassettes/Octokit_Client_Events/_received_public_events/returns_public_user_received_events.json
503
+ - spec/cassettes/Octokit_Client_Events/_repo_issue_events/lists_issue_events_for_a_repository.json
504
+ - spec/cassettes/Octokit_Client_Events/_repository_events/returns_events_for_a_repository.json
505
+ - spec/cassettes/Octokit_Client_Events/_repository_network_events/returns_events_for_a_repository_s_network.json
506
+ - spec/cassettes/Octokit_Client_Events/_user_events/returns_all_user_events.json
507
+ - spec/cassettes/Octokit_Client_Events/_user_public_events/returns_public_events_performed_by_a_user.json
508
+ - spec/cassettes/Octokit_Client_Gists/unauthenticated/_gist/returns_the_gist_by_ID.json
509
+ - spec/cassettes/Octokit_Client_Gists/unauthenticated/_gists/with_username_passed/returns_a_list_of_gists.json
510
+ - spec/cassettes/Octokit_Client_Gists/unauthenticated/_gists/without_a_username_passed/returns_a_list_of_gists.json
511
+ - spec/cassettes/Octokit_Client_Gists/unauthenticated/_public_gists/returns_public_gists.json
512
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_create_gist/creates_a_new_gist.json
513
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_create_gist_comment/creates_a_gist_comment.json
514
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_delete_gist/deletes_an_existing_gist.json
515
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_delete_gist_comment/deletes_a_gist_comment.json
516
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_edit_gist/edit_an_existing_gist.json
517
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_fork_gist/forks_an_existing_gist.json
518
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_gist_comment/returns_a_gist_comment.json
519
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_gist_comments/returns_the_list_of_gist_comments.json
520
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_gist_starred_/is_not_starred.json
521
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_gist_starred_/is_starred.json
522
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_gists/returns_a_list_of_gists.json
523
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_star_gist/stars_an_existing_gist.json
524
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_starred_gists/returns_the_user_s_starred_gists.json
525
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_unstar_gist/unstars_an_existing_gist.json
526
+ - spec/cassettes/Octokit_Client_Gists/when_authenticated/_update_gist_comment/updates_a_gist_comment.json
527
+ - spec/cassettes/Octokit_Client_Gitignore/_gitignore_template/returns_the_ruby_gitignore_template.json
528
+ - spec/cassettes/Octokit_Client_Gitignore/_gitignore_templates/returns_all_gitignore_templates.json
529
+ - spec/cassettes/Octokit_Client_Issues/_create_issue/creates_an_issue.json
530
+ - spec/cassettes/Octokit_Client_Issues/_create_issue/creates_an_issue_with_delimited_labels.json
531
+ - spec/cassettes/Octokit_Client_Issues/_create_issue/creates_an_issue_with_labels_array.json
532
+ - spec/cassettes/Octokit_Client_Issues/_issue_comment/returns_a_single_comment_for_an_issue.json
533
+ - spec/cassettes/Octokit_Client_Issues/_issue_comments/returns_comments_for_an_issue.json
534
+ - spec/cassettes/Octokit_Client_Issues/_list_issues/returns_dashboard_issues_for_the_authenticated_user.json
535
+ - spec/cassettes/Octokit_Client_Issues/_list_issues/returns_issues_for_a_repository.json
536
+ - spec/cassettes/Octokit_Client_Issues/_org_issues/returns_issues_for_the_organization_for_the_authenticated_user.json
537
+ - spec/cassettes/Octokit_Client_Issues/_repository_issues_comments/returns_comments_for_all_issues_in_a_repository.json
538
+ - spec/cassettes/Octokit_Client_Issues/_user_issues/returns_issues_for_the_authenticated_user_for_owned_and_member_repos.json
539
+ - spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_add_comment/adds_a_comment.json
540
+ - spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_close_issue/closes_an_issue.json
541
+ - spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_issue/returns_a_full_issue.json
542
+ - spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_issue/returns_an_issue.json
543
+ - spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_reopen_issue/reopens_an_issue.json
544
+ - spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_update_issue/updates_an_issue.json
545
+ - spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/methods_requiring_a_new_issue_comment/_delete_comment/deletes_an_existing_comment.json
546
+ - spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/methods_requiring_a_new_issue_comment/_update_comment/updates_an_existing_comment.json
547
+ - spec/cassettes/Octokit_Client_Labels/_add_label/adds_a_label_with_a_color.json
548
+ - spec/cassettes/Octokit_Client_Labels/_add_label/adds_a_label_with_default_color.json
549
+ - spec/cassettes/Octokit_Client_Labels/_delete_label_/deletes_a_label_from_the_repository.json
550
+ - spec/cassettes/Octokit_Client_Labels/_label/returns_a_single_label.json
551
+ - spec/cassettes/Octokit_Client_Labels/_labels/returns_labels.json
552
+ - spec/cassettes/Octokit_Client_Labels/_lables_for_milestone/returns_all_labels_for_a_repository.json
553
+ - spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_issue/_add_labels_to_an_issue/adds_labels_to_a_given_issue.json
554
+ - spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_issue/_labels_for_issue/returns_all_labels_for_a_given_issue.json
555
+ - spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_issue/_remove_all_labels/removes_all_labels_from_the_specified_issue.json
556
+ - spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_issue/_remove_label/removes_a_label_from_the_specified_issue.json
557
+ - spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_issue/_replace_all_labels/replaces_all_labels_for_an_issue.json
558
+ - spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_label/_update_label/updates_a_label_with_a_new_color.json
559
+ - spec/cassettes/Octokit_Client_LegacySearch/_legacy_search_issues/returns_matching_issues.json
560
+ - spec/cassettes/Octokit_Client_LegacySearch/_legacy_search_repos/returns_matching_repositories.json
561
+ - spec/cassettes/Octokit_Client_LegacySearch/_legacy_search_users/returns_matching_username.json
562
+ - spec/cassettes/Octokit_Client_Markdown/_markdown/renders_markdown.json
563
+ - spec/cassettes/Octokit_Client_Meta/_github_meta/returns_meta_information_about_github.json
564
+ - spec/cassettes/Octokit_Client_Milestones/_list_milestones/lists_milestones_belonging_to_repository.json
565
+ - spec/cassettes/Octokit_Client_Milestones/methods_that_need_a_milestone/_create_milestone/creates_a_milestone.json
566
+ - spec/cassettes/Octokit_Client_Milestones/methods_that_need_a_milestone/_delete_milestone/deletes_a_milestone_from_a_repository.json
567
+ - spec/cassettes/Octokit_Client_Milestones/methods_that_need_a_milestone/_milestone/gets_a_single_milestone_belonging_to_repository.json
568
+ - spec/cassettes/Octokit_Client_Milestones/methods_that_need_a_milestone/_update_milestone/updates_a_milestone.json
569
+ - spec/cassettes/Octokit_Client_Notifications/_mark_notifications_as_read/returns_true_when_notifications_are_marked_as_read.json
570
+ - spec/cassettes/Octokit_Client_Notifications/_mark_repository_notifications_as_read/returns_true_when_notifications_for_a_repo_are_marked_as_read.json
571
+ - spec/cassettes/Octokit_Client_Notifications/_notifications/lists_the_notifications_for_the_current_user.json
572
+ - spec/cassettes/Octokit_Client_Notifications/_repository_notifications/lists_all_notifications_for_a_repository.json
573
+ - spec/cassettes/Octokit_Client_Notifications/methods_that_need_a_thread_context/_delete_thread_subscription/returns_true_with_successful_thread_deletion.json
574
+ - spec/cassettes/Octokit_Client_Notifications/methods_that_need_a_thread_context/_mark_thread_as_read/marks_a_thread_as_read.json
575
+ - spec/cassettes/Octokit_Client_Notifications/methods_that_need_a_thread_context/_thread_notifications/returns_notifications_for_a_specific_thread.json
576
+ - spec/cassettes/Octokit_Client_Notifications/methods_that_need_a_thread_context/_thread_subscription/returns_a_thread_subscription.json
577
+ - spec/cassettes/Octokit_Client_Notifications/methods_that_need_a_thread_context/_update_thread_subscription/updates_a_thread_subscription.json
578
+ - spec/cassettes/Octokit_Client_Objects/_blob/returns_a_blob.json
579
+ - spec/cassettes/Octokit_Client_Objects/_create_blob/creates_a_blob.json
580
+ - spec/cassettes/Octokit_Client_Objects/_create_tag/creates_a_tag.json
581
+ - spec/cassettes/Octokit_Client_Objects/_create_tree/creates_a_tree.json
582
+ - spec/cassettes/Octokit_Client_Objects/_tag/returns_a_tag.json
583
+ - spec/cassettes/Octokit_Client_Objects/_tree/gets_a_tree.json
584
+ - spec/cassettes/Octokit_Client_Objects/_tree/gets_a_tree_recursively.json
585
+ - spec/cassettes/Octokit_Client_Organizations/_organization/returns_an_organization.json
586
+ - spec/cassettes/Octokit_Client_Organizations/_organization_member_/checks_organization_membership.json
587
+ - spec/cassettes/Octokit_Client_Organizations/_organization_members/returns_all_public_members_of_an_organization.json
588
+ - spec/cassettes/Octokit_Client_Organizations/_organization_public_member_/checks_publicized_org_membership.json
589
+ - spec/cassettes/Octokit_Client_Organizations/_organization_repositories/returns_all_public_repositories_for_an_organization.json
590
+ - spec/cassettes/Octokit_Client_Organizations/_organization_teams/returns_all_teams_for_an_organization.json
591
+ - spec/cassettes/Octokit_Client_Organizations/_organizations/returns_all_organizations_for_a_user.json
592
+ - spec/cassettes/Octokit_Client_Organizations/_organizations/returns_all_organizations_for_the_authenticated_user.json
593
+ - spec/cassettes/Octokit_Client_Organizations/_update_organization/updates_an_organization.json
594
+ - spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_add_team_member/adds_a_team_member.json
595
+ - spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_add_team_repository/adds_a_team_repository.json
596
+ - spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_create_team/creates_a_team.json
597
+ - spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_delete_team/deletes_a_team.json
598
+ - spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_publicize_membership/publicizes_membership.json
599
+ - spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_remove_team_member/removes_a_team_member.json
600
+ - spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_remove_team_repository/removes_a_team_repository.json
601
+ - spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_team/returns_a_team.json
602
+ - spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_team_member_/checks_if_a_user_is_member_of_a_team.json
603
+ - spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_team_members/returns_team_members.json
604
+ - spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_team_repositories/returns_team_repositories.json
605
+ - spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_unpublicize_membership/unpublicizes_membership.json
606
+ - spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_update_team/updates_a_team.json
607
+ - spec/cassettes/Octokit_Client_PubSubHubbub/_subscribe/raises_an_error_when_topic_is_not_recognized.json
608
+ - spec/cassettes/Octokit_Client_PubSubHubbub/_subscribe/subscribes_to_pull_events.json
609
+ - spec/cassettes/Octokit_Client_PubSubHubbub/_subscribe_service_hook/subscribes_to_pull_events_on_specified_topic.json
610
+ - spec/cassettes/Octokit_Client_PubSubHubbub/_unsubscribe/unsubscribes_from_pull_events.json
611
+ - spec/cassettes/Octokit_Client_PubSubHubbub/unsubscribe_service_hook/unsubscribes_to_stop_receiving_events_on_specified_topic.json
612
+ - spec/cassettes/Octokit_Client_PullRequests/_create_pull_request_for_issue/creates_a_pull_request_and_attach_it_to_an_existing_issue.json
613
+ - spec/cassettes/Octokit_Client_PullRequests/_pull_request_comment/returns_a_comment_on_a_pull_request.json
614
+ - spec/cassettes/Octokit_Client_PullRequests/_pull_request_comments/returns_the_comments_for_a_pull_request.json
615
+ - spec/cassettes/Octokit_Client_PullRequests/_pull_request_commits/returns_the_commits_for_a_pull_request.json
616
+ - spec/cassettes/Octokit_Client_PullRequests/_pull_request_files/lists_files_for_a_pull_request.json
617
+ - spec/cassettes/Octokit_Client_PullRequests/_pull_requests/returns_all_pull_requests.json
618
+ - spec/cassettes/Octokit_Client_PullRequests/_pull_requests_comments/returns_all_comments_on_all_pull_requests.json
619
+ - spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_close_pull_request/closes_a_pull_request.json
620
+ - spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_create_pull_request/creates_a_pull_request.json
621
+ - spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_merge_pull_request/merges_the_pull_request.json
622
+ - spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_pull_merged_/returns_whether_the_pull_request_has_been_merged.json
623
+ - spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_pull_request/returns_a_pull_request.json
624
+ - spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_update_pull_request/updates_a_pull_request.json
625
+ - spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/methods_requiring_a_pull_request_comment/_create_pull_request_comment/creates_a_new_comment_on_a_pull_request.json
626
+ - spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/methods_requiring_a_pull_request_comment/_create_pull_request_comment_reply/creates_a_new_reply_to_a_pull_request_comment.json
627
+ - spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/methods_requiring_a_pull_request_comment/_delete_pull_request_comment/deletes_a_pull_request_comment.json
628
+ - spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/methods_requiring_a_pull_request_comment/_update_pull_request_comment/updates_a_pull_request_comment.json
629
+ - spec/cassettes/Octokit_Client_Refs/_ref/returns_a_tags_ref.json
630
+ - spec/cassettes/Octokit_Client_Refs/_refs/returns_all_refs.json
631
+ - spec/cassettes/Octokit_Client_Refs/_refs/returns_all_tag_refs.json
632
+ - spec/cassettes/Octokit_Client_Refs/methods_that_require_a_ref/_create_ref/creates_a_ref.json
633
+ - spec/cassettes/Octokit_Client_Refs/methods_that_require_a_ref/_delete_ref/deletes_an_existing_ref.json
634
+ - spec/cassettes/Octokit_Client_Refs/methods_that_require_a_ref/_update_ref/updates_a_ref.json
635
+ - spec/cassettes/Octokit_Client_Repositories/_all_repositories/returns_all_repositories_on_github.json
636
+ - spec/cassettes/Octokit_Client_Repositories/_assignees/lists_all_the_available_assignees_owner_collaborators_.json
637
+ - spec/cassettes/Octokit_Client_Repositories/_branches/returns_a_repository_s_branches.json
638
+ - spec/cassettes/Octokit_Client_Repositories/_branches/returns_a_single_branch.json
639
+ - spec/cassettes/Octokit_Client_Repositories/_check_assignee/checks_to_see_if_a_particular_user_is_an_assignee_for_a_repository.json
640
+ - spec/cassettes/Octokit_Client_Repositories/_collaborators/returns_a_repository_s_collaborators.json
641
+ - spec/cassettes/Octokit_Client_Repositories/_contributors/returns_repository_contributors.json
642
+ - spec/cassettes/Octokit_Client_Repositories/_contributors/returns_repository_contributors_excluding_anonymous.json
643
+ - spec/cassettes/Octokit_Client_Repositories/_create_repository/creates_a_repository_for_an_organization.json
644
+ - spec/cassettes/Octokit_Client_Repositories/_delete_subscription/returns_true_when_repo_subscription_deleted.json
645
+ - spec/cassettes/Octokit_Client_Repositories/_fork/forks_a_repository.json
646
+ - spec/cassettes/Octokit_Client_Repositories/_languages/returns_a_repository_s_languages.json
647
+ - spec/cassettes/Octokit_Client_Repositories/_network/returns_a_repository_s_network.json
648
+ - spec/cassettes/Octokit_Client_Repositories/_repositories/returns_a_user_s_repositories.json
649
+ - spec/cassettes/Octokit_Client_Repositories/_repositories/returns_authenticated_user_s_repositories.json
650
+ - spec/cassettes/Octokit_Client_Repositories/_repository/returns_the_matching_repository.json
651
+ - spec/cassettes/Octokit_Client_Repositories/_repository_/returns_false_if_the_repository_doesn_t_exist.json
652
+ - spec/cassettes/Octokit_Client_Repositories/_repository_/returns_true_if_the_repository_exists.json
653
+ - spec/cassettes/Octokit_Client_Repositories/_star/stars_a_repository.json
654
+ - spec/cassettes/Octokit_Client_Repositories/_stargazers/returns_all_repository_stargazers.json
655
+ - spec/cassettes/Octokit_Client_Repositories/_subscribers/lists_all_the_users_watching_the_repository.json
656
+ - spec/cassettes/Octokit_Client_Repositories/_subscription/returns_a_repository_subscription.json
657
+ - spec/cassettes/Octokit_Client_Repositories/_tags/returns_a_repository_s_tags.json
658
+ - spec/cassettes/Octokit_Client_Repositories/_unstar/unstars_a_repository.json
659
+ - spec/cassettes/Octokit_Client_Repositories/_unwatch/unwatches_a_repository.json
660
+ - spec/cassettes/Octokit_Client_Repositories/_update_subscription/updates_a_repository_subscription.json
661
+ - spec/cassettes/Octokit_Client_Repositories/_watch/watches_a_repository.json
662
+ - spec/cassettes/Octokit_Client_Repositories/_watchers/returns_all_repository_watchers.json
663
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_add_collaborator/adds_a_repository_collaborators.json
664
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_create_repository/creates_a_repository.json
665
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_delete_repository/deletes_a_repository.json
666
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_deploy_keys/returns_a_repository_s_deploy_keys.json
667
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_hooks/returns_a_repository_s_hooks.json
668
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_remove_collaborator/removes_a_repository_collaborators.json
669
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_repository_teams/returns_all_repository_teams.json
670
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_update_repository/updates_the_matching_repository.json
671
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_requiring_an_existing_deploy_key/_add_deploy_key/adds_a_repository_deploy_keys.json
672
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_that_need_an_existing_hook/_create_hook/creates_a_hook.json
673
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_that_need_an_existing_hook/_edit_hook/edits_a_hook.json
674
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_that_need_an_existing_hook/_hook/returns_a_repository_s_single_hook.json
675
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_that_need_an_existing_hook/_remove_hook/removes_a_hook.json
676
+ - spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_that_need_an_existing_hook/_test_hook/tests_a_hook.json
677
+ - spec/cassettes/Octokit_Client_Say/_say/returns_an_ASCII_octocat.json
678
+ - spec/cassettes/Octokit_Client_Say/_say/returns_an_ASCII_octocat_with_custom_text.json
679
+ - spec/cassettes/Octokit_Client_ServiceStatus/_github_status/returns_the_current_system_status.json
680
+ - spec/cassettes/Octokit_Client_ServiceStatus/_github_status/returns_the_most_recent_status_messages.json
681
+ - spec/cassettes/Octokit_Client_ServiceStatus/_github_status_last_message/returns_the_last_human_message.json
682
+ - spec/cassettes/Octokit_Client_Stats/_code_frequency_stats/returns_the_code_frequency_stats.json
683
+ - spec/cassettes/Octokit_Client_Stats/_commit_activity_stats/returns_the_commit_activity_stats.json
684
+ - spec/cassettes/Octokit_Client_Stats/_contributors_stats/returns_contributors_and_their_contribution_stats.json
685
+ - spec/cassettes/Octokit_Client_Stats/_participation_stats/returns_the_owner_and_contributor_participation_stats.json
686
+ - spec/cassettes/Octokit_Client_Stats/_punch_card_stats/returns_commit_count_by_hour_punch_card_stats.json
687
+ - spec/cassettes/Octokit_Client_Statuses/_create_status/creates_status.json
688
+ - spec/cassettes/Octokit_Client_Statuses/_statuses/lists_commit_statuses.json
689
+ - spec/cassettes/Octokit_Client_Users/_add_email/adds_an_email_address.json
690
+ - spec/cassettes/Octokit_Client_Users/_all_users/returns_all_GitHub_users.json
691
+ - spec/cassettes/Octokit_Client_Users/_emails/returns_email_addresses.json
692
+ - spec/cassettes/Octokit_Client_Users/_follow/follows_a_user.json
693
+ - spec/cassettes/Octokit_Client_Users/_followers/returns_followers_for_a_user.json
694
+ - spec/cassettes/Octokit_Client_Users/_followers/returns_the_authenticated_user_s_followers.json
695
+ - spec/cassettes/Octokit_Client_Users/_following/returns_following_for_a_user.json
696
+ - spec/cassettes/Octokit_Client_Users/_following/returns_the_authenticated_user_s_following.json
697
+ - spec/cassettes/Octokit_Client_Users/_follows_/checks_if_the_authenticated_user_follows_another.json
698
+ - spec/cassettes/Octokit_Client_Users/_keys/returns_public_keys_for_the_authenticated_user.json
699
+ - spec/cassettes/Octokit_Client_Users/_remove_email/removes_an_email_address.json
700
+ - spec/cassettes/Octokit_Client_Users/_starred/returns_starred_repositories_for_a_user.json
701
+ - spec/cassettes/Octokit_Client_Users/_starred/returns_starred_repositories_for_the_authenticated_user.json
702
+ - spec/cassettes/Octokit_Client_Users/_starred_/checks_if_the_authenticated_user_has_starred_a_repository.json
703
+ - spec/cassettes/Octokit_Client_Users/_subscriptions/returns_the_repositories_a_user_watches_for_notifications.json
704
+ - spec/cassettes/Octokit_Client_Users/_subscriptions/returns_the_repositories_the_authenticated_user_watches_for_notifications.json
705
+ - spec/cassettes/Octokit_Client_Users/_unfollow/unfollows_a_user.json
706
+ - spec/cassettes/Octokit_Client_Users/_update_user/updates_a_user_profile.json
707
+ - spec/cassettes/Octokit_Client_Users/_user/returns_a_user.json
708
+ - spec/cassettes/Octokit_Client_Users/_user/returns_the_authenticated_user.json
709
+ - spec/cassettes/Octokit_Client_Users/_user_keys/returns_public_keys_for_another_user.json
710
+ - spec/cassettes/Octokit_Client_Users/_validate_credentials/validates_username_and_password.json
711
+ - spec/cassettes/Octokit_Client_Users/methods_requiring_an_existing_public_key/_add_key/adds_a_public_key.json
712
+ - spec/cassettes/Octokit_Client_Users/methods_requiring_an_existing_public_key/_key/returns_a_public_key.json
713
+ - spec/cassettes/Octokit_Client_Users/methods_requiring_an_existing_public_key/_remove_key/removes_a_public_key.json
714
+ - spec/cassettes/Octokit_Client_Users/methods_requiring_an_existing_public_key/_update_key/updates_a_public_key.json
715
+ - spec/cassettes/rate_limit.json
716
+ - spec/cassettes/root.json
447
717
  - spec/fixtures/new_file.txt
448
- - spec/fixtures/not_found.json
449
- - spec/fixtures/notification_thread.json
450
- - spec/fixtures/notifications.json
451
- - spec/fixtures/org_issues.json
452
- - spec/fixtures/organization-repositories.json
453
- - spec/fixtures/organization-repository.json
454
- - spec/fixtures/organization.json
455
- - spec/fixtures/organization_events.json
456
- - spec/fixtures/organization_members.json
457
- - spec/fixtures/organization_public_events.json
458
- - spec/fixtures/organization_team_members.json
459
- - spec/fixtures/organization_team_repos.json
460
- - spec/fixtures/organizations.json
461
- - spec/fixtures/participation_stats.json
462
- - spec/fixtures/public_events.json
463
- - spec/fixtures/public_gists.json
464
- - spec/fixtures/public_key.json
465
- - spec/fixtures/public_key_update.json
466
- - spec/fixtures/public_keys.json
467
- - spec/fixtures/pull_created.json
468
- - spec/fixtures/pull_request.json
469
- - spec/fixtures/pull_request_comment.json
470
- - spec/fixtures/pull_request_comment_create.json
471
- - spec/fixtures/pull_request_comment_reply.json
472
- - spec/fixtures/pull_request_comment_update.json
473
- - spec/fixtures/pull_request_comments.json
474
- - spec/fixtures/pull_request_commits.json
475
- - spec/fixtures/pull_request_files.json
476
- - spec/fixtures/pull_request_merged.json
477
- - spec/fixtures/pull_requests.json
478
- - spec/fixtures/pull_requests_comments.json
479
- - spec/fixtures/pull_update.json
480
- - spec/fixtures/punch_card_stats.json
481
- - spec/fixtures/readme.json
482
- - spec/fixtures/ref.json
483
- - spec/fixtures/ref_create.json
484
- - spec/fixtures/ref_update.json
485
- - spec/fixtures/refs.json
486
- - spec/fixtures/refs_tags.json
487
- - spec/fixtures/repo_assignees.json
488
- - spec/fixtures/repo_events.json
489
- - spec/fixtures/repo_issues_events.json
490
- - spec/fixtures/repositories.json
491
- - spec/fixtures/repository.json
492
- - spec/fixtures/repository_issues_comments.json
493
- - spec/fixtures/repository_network_events.json
494
- - spec/fixtures/repository_notifications.json
495
- - spec/fixtures/say.txt
496
- - spec/fixtures/say_custom.txt
497
- - spec/fixtures/stargazers.json
498
- - spec/fixtures/starred.json
499
- - spec/fixtures/starred_gists.json
500
- - spec/fixtures/status.json
501
- - spec/fixtures/statuses.json
502
- - spec/fixtures/subscribers.json
503
- - spec/fixtures/subscription.json
504
- - spec/fixtures/subscription_update.json
505
- - spec/fixtures/subscriptions.json
506
- - spec/fixtures/tag.json
507
- - spec/fixtures/tag_create.json
508
- - spec/fixtures/tags.json
509
- - spec/fixtures/team.json
510
- - spec/fixtures/teams.json
511
- - spec/fixtures/thread_subscription.json
512
- - spec/fixtures/thread_subscription_update.json
513
- - spec/fixtures/tree.json
514
- - spec/fixtures/tree_create.json
515
- - spec/fixtures/update_content.json
516
718
  - spec/fixtures/updated_file.txt
517
719
  - spec/fixtures/user.json
518
- - spec/fixtures/user_events.json
519
- - spec/fixtures/user_issues.json
520
- - spec/fixtures/user_performed_public_events.json
521
- - spec/fixtures/user_public_events.json
522
- - spec/fixtures/user_token.json
523
- - spec/fixtures/validation_failed.json
524
- - spec/fixtures/watched.json
525
- - spec/fixtures/watchers.json
720
+ - spec/fixtures/web_flow_token.json
526
721
  - spec/helper.rb
527
722
  - spec/octokit/client/authorizations_spec.rb
723
+ - spec/octokit/client/commit_comments_spec.rb
528
724
  - spec/octokit/client/commits_spec.rb
529
725
  - spec/octokit/client/contents_spec.rb
530
726
  - spec/octokit/client/downloads_spec.rb
531
727
  - spec/octokit/client/emojis_spec.rb
532
728
  - spec/octokit/client/events_spec.rb
533
729
  - spec/octokit/client/gists_spec.rb
534
- - spec/octokit/client/github_spec.rb
535
730
  - spec/octokit/client/gitignore_spec.rb
536
- - spec/octokit/client/issue_events_spec.rb
537
731
  - spec/octokit/client/issues_spec.rb
538
732
  - spec/octokit/client/labels_spec.rb
733
+ - spec/octokit/client/legacy_search_spec.rb
539
734
  - spec/octokit/client/markdown_spec.rb
735
+ - spec/octokit/client/meta_spec.rb
540
736
  - spec/octokit/client/milestones_spec.rb
541
737
  - spec/octokit/client/notifications_spec.rb
542
738
  - spec/octokit/client/objects_spec.rb
543
739
  - spec/octokit/client/organizations_spec.rb
544
- - spec/octokit/client/pub_sub_hubbub/service_hooks_spec.rb
545
740
  - spec/octokit/client/pub_sub_hubbub_spec.rb
546
- - spec/octokit/client/pulls_spec.rb
741
+ - spec/octokit/client/pull_requests_spec.rb
742
+ - spec/octokit/client/rate_limit_spec.rb
547
743
  - spec/octokit/client/refs_spec.rb
548
744
  - spec/octokit/client/repositories_spec.rb
549
745
  - spec/octokit/client/say_spec.rb
746
+ - spec/octokit/client/service_status_spec.rb
550
747
  - spec/octokit/client/stats_spec.rb
551
748
  - spec/octokit/client/statuses_spec.rb
552
749
  - spec/octokit/client/users_spec.rb
553
750
  - spec/octokit/client_spec.rb
554
751
  - spec/octokit/gist_spec.rb
752
+ - spec/octokit/rate_limit_spec.rb
555
753
  - spec/octokit/repository_spec.rb
556
754
  - spec/octokit_spec.rb
557
755
  has_rdoc: