octokit 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/octokit/version.rb +1 -1
- data/octokit.gemspec +0 -1
- metadata +5 -682
- data/spec/cassettes/Octokit_Client/_get/handles_query_params.json +0 -1
- data/spec/cassettes/Octokit_Client/_head/handles_query_params.json +0 -1
- data/spec/cassettes/Octokit_Client/_last_response/caches_the_last_agent_response.json +0 -1
- data/spec/cassettes/Octokit_Client/authentication/when_token_authenticated/fetches_and_memoizes_login.json +0 -1
- data/spec/cassettes/Octokit_Client/auto_pagination/fetches_all_the_pages.json +0 -1
- data/spec/cassettes/Octokit_Client/error_handling/raises_on_404.json +0 -1
- data/spec/cassettes/Octokit_Client_Authorizations/_authorization/returns_a_single_authorization.json +0 -1
- data/spec/cassettes/Octokit_Client_Authorizations/_authorizations/lists_existing_authorizations.json +0 -1
- data/spec/cassettes/Octokit_Client_Authorizations/_create_authorization/with_idempotent_true/creates_a_new_authorization_with_options.json +0 -1
- data/spec/cassettes/Octokit_Client_Authorizations/_create_authorization/with_idempotent_true/returns_an_existing_API_authorization_if_one_already_exists.json +0 -1
- data/spec/cassettes/Octokit_Client_Authorizations/_create_authorization/without_idempotent_true/creates_a_new_API_authorization_each_time.json +0 -1
- data/spec/cassettes/Octokit_Client_Authorizations/_create_authorization/without_idempotent_true/creates_a_new_authorization_with_options.json +0 -1
- data/spec/cassettes/Octokit_Client_Authorizations/_create_authorization/without_idempotent_true/creates_an_API_authorization.json +0 -1
- data/spec/cassettes/Octokit_Client_Authorizations/_scopes/checks_the_scopes_on_a_one-off_token.json +0 -1
- data/spec/cassettes/Octokit_Client_Authorizations/_scopes/checks_the_scopes_on_the_current_token.json +0 -1
- data/spec/cassettes/Octokit_Client_Authorizations/_update_authorization/updates_and_existing_authorization.json +0 -1
- data/spec/cassettes/Octokit_Client_CommitComments/_commit_comment/returns_a_single_commit_comment.json +0 -1
- data/spec/cassettes/Octokit_Client_CommitComments/_commit_comments/returns_a_list_of_comments_for_a_specific_commit.json +0 -1
- data/spec/cassettes/Octokit_Client_CommitComments/_create_commit_comment/creates_a_commit_comment.json +0 -1
- data/spec/cassettes/Octokit_Client_CommitComments/_delete_commit_comment/deletes_a_commit_comment.json +0 -1
- data/spec/cassettes/Octokit_Client_CommitComments/_list_commit_comments/returns_a_list_of_all_commit_comments.json +0 -1
- data/spec/cassettes/Octokit_Client_CommitComments/_update_commit_comment/updates_a_commit_comment.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commit/returns_a_commit.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits/handles_branch_or_sha_argument.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits/handles_the_sha_option.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits/returns_all_commits.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits_before/handles_branch_or_sha_argument.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits_before/handles_the_sha_option.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits_before/returns_all_commits_until_the_specified_date.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits_between/handles_branch_or_sha_argument.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits_between/handles_the_sha_option.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits_between/returns_all_commits_until_the_specified_date.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits_on/handles_branch_or_sha_argument.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits_on/handles_the_sha_option.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits_on/returns_all_commits_on_the_specified_date.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits_since/handles_branch_or_sha_argument.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits_since/handles_the_sha_option.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_commits_since/returns_all_commits_since_the_specified_date.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_compare/returns_a_comparison.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_create_commit/creates_a_commit.json +0 -1
- data/spec/cassettes/Octokit_Client_Commits/_merge/merges_a_branch_into_another.json +0 -1
- data/spec/cassettes/Octokit_Client_Contents/_archive_link/returns_the_headers_of_the_request.json +0 -1
- data/spec/cassettes/Octokit_Client_Contents/_contents/returns_the_contents_of_a_file.json +0 -1
- data/spec/cassettes/Octokit_Client_Contents/_create_contents/creates_contents_from_File_object.json +0 -1
- data/spec/cassettes/Octokit_Client_Contents/_create_contents/creates_contents_from_file_path.json +0 -1
- data/spec/cassettes/Octokit_Client_Contents/_create_contents/creates_repository_contents_at_a_path.json +0 -1
- data/spec/cassettes/Octokit_Client_Contents/_create_contents/does_not_add_new_lines.json +0 -1
- data/spec/cassettes/Octokit_Client_Contents/_delete_contents/deletes_repository_contents_at_a_path.json +0 -1
- data/spec/cassettes/Octokit_Client_Contents/_readme/returns_the_default_readme.json +0 -1
- data/spec/cassettes/Octokit_Client_Contents/_update_contents/does_not_add_new_lines.json +0 -1
- data/spec/cassettes/Octokit_Client_Contents/_update_contents/updates_repository_contents_at_a_path.json +0 -1
- data/spec/cassettes/Octokit_Client_Downloads/_download/gets_a_single_download.json +0 -1
- data/spec/cassettes/Octokit_Client_Downloads/_downloads/lists_available_downloads.json +0 -1
- data/spec/cassettes/Octokit_Client_Downloads/methods_that_require_a_download/_create_download/creates_a_download_resource.json +0 -1
- data/spec/cassettes/Octokit_Client_Downloads/methods_that_require_a_download/_create_download/posts_to_an_S3_url.json +0 -1
- data/spec/cassettes/Octokit_Client_Downloads/methods_that_require_a_download/_delete_download/deletes_a_download.json +0 -1
- data/spec/cassettes/Octokit_Client_Emojis/_emojis/returns_all_github_emojis.json +0 -1
- data/spec/cassettes/Octokit_Client_Events/_issue_event/lists_issue_events_for_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Events/_issue_events/lists_issue_events_for_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Events/_organization_events/returns_all_events_for_an_organization.json +0 -1
- data/spec/cassettes/Octokit_Client_Events/_organization_public_events/returns_an_organization_s_public_events.json +0 -1
- data/spec/cassettes/Octokit_Client_Events/_public_events/returns_all_public_events.json +0 -1
- data/spec/cassettes/Octokit_Client_Events/_received_events/returns_all_user_received_events.json +0 -1
- data/spec/cassettes/Octokit_Client_Events/_received_public_events/returns_public_user_received_events.json +0 -1
- data/spec/cassettes/Octokit_Client_Events/_repo_issue_events/lists_issue_events_for_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Events/_repository_events/returns_events_for_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Events/_repository_network_events/returns_events_for_a_repository_s_network.json +0 -1
- data/spec/cassettes/Octokit_Client_Events/_user_events/returns_all_user_events.json +0 -1
- data/spec/cassettes/Octokit_Client_Events/_user_public_events/returns_public_events_performed_by_a_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/unauthenticated/_gist/returns_the_gist_by_ID.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/unauthenticated/_gists/with_username_passed/returns_a_list_of_gists.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/unauthenticated/_gists/without_a_username_passed/returns_a_list_of_gists.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/unauthenticated/_public_gists/returns_public_gists.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_create_gist/creates_a_new_gist.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_create_gist_comment/creates_a_gist_comment.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_delete_gist/deletes_an_existing_gist.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_delete_gist_comment/deletes_a_gist_comment.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_edit_gist/edit_an_existing_gist.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_fork_gist/forks_an_existing_gist.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_gist_comment/returns_a_gist_comment.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_gist_comments/returns_the_list_of_gist_comments.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_gist_starred_/is_not_starred.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_gist_starred_/is_starred.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_gists/returns_a_list_of_gists.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_star_gist/stars_an_existing_gist.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_starred_gists/returns_the_user_s_starred_gists.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_unstar_gist/unstars_an_existing_gist.json +0 -1
- data/spec/cassettes/Octokit_Client_Gists/when_authenticated/_update_gist_comment/updates_a_gist_comment.json +0 -1
- data/spec/cassettes/Octokit_Client_Gitignore/_gitignore_template/returns_the_ruby_gitignore_template.json +0 -1
- data/spec/cassettes/Octokit_Client_Gitignore/_gitignore_templates/returns_all_gitignore_templates.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/_create_issue/creates_an_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/_create_issue/creates_an_issue_with_delimited_labels.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/_create_issue/creates_an_issue_with_labels_array.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/_issue_comment/returns_a_single_comment_for_an_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/_issue_comments/returns_comments_for_an_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/_list_issues/returns_dashboard_issues_for_the_authenticated_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/_list_issues/returns_issues_for_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/_org_issues/returns_issues_for_the_organization_for_the_authenticated_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/_repository_issues_comments/returns_comments_for_all_issues_in_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/_user_issues/returns_issues_for_the_authenticated_user_for_owned_and_member_repos.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_add_comment/adds_a_comment.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_close_issue/closes_an_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_issue/returns_a_full_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_issue/returns_an_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_reopen_issue/reopens_an_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/_update_issue/updates_an_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/methods_requiring_a_new_issue_comment/_delete_comment/deletes_an_existing_comment.json +0 -1
- data/spec/cassettes/Octokit_Client_Issues/methods_requiring_a_new_issue/methods_requiring_a_new_issue_comment/_update_comment/updates_an_existing_comment.json +0 -1
- data/spec/cassettes/Octokit_Client_Labels/_add_label/adds_a_label_with_a_color.json +0 -1
- data/spec/cassettes/Octokit_Client_Labels/_add_label/adds_a_label_with_default_color.json +0 -1
- data/spec/cassettes/Octokit_Client_Labels/_delete_label_/deletes_a_label_from_the_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Labels/_label/returns_a_single_label.json +0 -1
- data/spec/cassettes/Octokit_Client_Labels/_labels/returns_labels.json +0 -1
- data/spec/cassettes/Octokit_Client_Labels/_lables_for_milestone/returns_all_labels_for_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_issue/_add_labels_to_an_issue/adds_labels_to_a_given_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_issue/_labels_for_issue/returns_all_labels_for_a_given_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_issue/_remove_all_labels/removes_all_labels_from_the_specified_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_issue/_remove_label/removes_a_label_from_the_specified_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_issue/_replace_all_labels/replaces_all_labels_for_an_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_Labels/methods_requiring_a_new_label/_update_label/updates_a_label_with_a_new_color.json +0 -1
- data/spec/cassettes/Octokit_Client_LegacySearch/_legacy_search_issues/returns_matching_issues.json +0 -1
- data/spec/cassettes/Octokit_Client_LegacySearch/_legacy_search_repos/returns_matching_repositories.json +0 -1
- data/spec/cassettes/Octokit_Client_LegacySearch/_legacy_search_users/returns_matching_username.json +0 -1
- data/spec/cassettes/Octokit_Client_Markdown/_markdown/renders_markdown.json +0 -1
- data/spec/cassettes/Octokit_Client_Meta/_github_meta/returns_meta_information_about_github.json +0 -1
- data/spec/cassettes/Octokit_Client_Milestones/_list_milestones/lists_milestones_belonging_to_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Milestones/methods_that_need_a_milestone/_create_milestone/creates_a_milestone.json +0 -1
- data/spec/cassettes/Octokit_Client_Milestones/methods_that_need_a_milestone/_delete_milestone/deletes_a_milestone_from_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Milestones/methods_that_need_a_milestone/_milestone/gets_a_single_milestone_belonging_to_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Milestones/methods_that_need_a_milestone/_update_milestone/updates_a_milestone.json +0 -1
- data/spec/cassettes/Octokit_Client_Notifications/_mark_notifications_as_read/returns_true_when_notifications_are_marked_as_read.json +0 -1
- data/spec/cassettes/Octokit_Client_Notifications/_mark_repository_notifications_as_read/returns_true_when_notifications_for_a_repo_are_marked_as_read.json +0 -1
- data/spec/cassettes/Octokit_Client_Notifications/_notifications/lists_the_notifications_for_the_current_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Notifications/_repository_notifications/lists_all_notifications_for_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Notifications/methods_that_need_a_thread_context/_delete_thread_subscription/returns_true_with_successful_thread_deletion.json +0 -1
- data/spec/cassettes/Octokit_Client_Notifications/methods_that_need_a_thread_context/_mark_thread_as_read/marks_a_thread_as_read.json +0 -1
- data/spec/cassettes/Octokit_Client_Notifications/methods_that_need_a_thread_context/_thread_notifications/returns_notifications_for_a_specific_thread.json +0 -1
- data/spec/cassettes/Octokit_Client_Notifications/methods_that_need_a_thread_context/_thread_subscription/returns_a_thread_subscription.json +0 -1
- data/spec/cassettes/Octokit_Client_Notifications/methods_that_need_a_thread_context/_update_thread_subscription/updates_a_thread_subscription.json +0 -1
- data/spec/cassettes/Octokit_Client_Objects/_blob/returns_a_blob.json +0 -1
- data/spec/cassettes/Octokit_Client_Objects/_create_blob/creates_a_blob.json +0 -1
- data/spec/cassettes/Octokit_Client_Objects/_create_tag/creates_a_tag.json +0 -1
- data/spec/cassettes/Octokit_Client_Objects/_create_tree/creates_a_tree.json +0 -1
- data/spec/cassettes/Octokit_Client_Objects/_tag/returns_a_tag.json +0 -1
- data/spec/cassettes/Octokit_Client_Objects/_tree/gets_a_tree.json +0 -1
- data/spec/cassettes/Octokit_Client_Objects/_tree/gets_a_tree_recursively.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/_organization/returns_an_organization.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/_organization_member_/checks_organization_membership.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/_organization_members/returns_all_public_members_of_an_organization.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/_organization_public_member_/checks_publicized_org_membership.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/_organization_repositories/returns_all_public_repositories_for_an_organization.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/_organization_teams/returns_all_teams_for_an_organization.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/_organizations/returns_all_organizations_for_a_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/_organizations/returns_all_organizations_for_the_authenticated_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/_update_organization/updates_an_organization.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_add_team_member/adds_a_team_member.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_add_team_repository/adds_a_team_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_create_team/creates_a_team.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_delete_team/deletes_a_team.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_publicize_membership/publicizes_membership.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_remove_team_member/removes_a_team_member.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_remove_team_repository/removes_a_team_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_team/returns_a_team.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_team_member_/checks_if_a_user_is_member_of_a_team.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_team_members/returns_team_members.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_team_repositories/returns_team_repositories.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_unpublicize_membership/unpublicizes_membership.json +0 -1
- data/spec/cassettes/Octokit_Client_Organizations/methods_that_require_a_new_team/_update_team/updates_a_team.json +0 -1
- data/spec/cassettes/Octokit_Client_PubSubHubbub/_subscribe/raises_an_error_when_topic_is_not_recognized.json +0 -1
- data/spec/cassettes/Octokit_Client_PubSubHubbub/_subscribe/subscribes_to_pull_events.json +0 -1
- data/spec/cassettes/Octokit_Client_PubSubHubbub/_subscribe_service_hook/subscribes_to_pull_events_on_specified_topic.json +0 -1
- data/spec/cassettes/Octokit_Client_PubSubHubbub/_unsubscribe/unsubscribes_from_pull_events.json +0 -1
- data/spec/cassettes/Octokit_Client_PubSubHubbub/unsubscribe_service_hook/unsubscribes_to_stop_receiving_events_on_specified_topic.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/_create_pull_request_for_issue/creates_a_pull_request_and_attach_it_to_an_existing_issue.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/_pull_request_comment/returns_a_comment_on_a_pull_request.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/_pull_request_comments/returns_the_comments_for_a_pull_request.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/_pull_request_commits/returns_the_commits_for_a_pull_request.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/_pull_request_files/lists_files_for_a_pull_request.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/_pull_requests/returns_all_pull_requests.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/_pull_requests_comments/returns_all_comments_on_all_pull_requests.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_close_pull_request/closes_a_pull_request.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_create_pull_request/creates_a_pull_request.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_merge_pull_request/merges_the_pull_request.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_pull_merged_/returns_whether_the_pull_request_has_been_merged.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_pull_request/returns_a_pull_request.json +0 -1
- data/spec/cassettes/Octokit_Client_PullRequests/methods_that_require_a_new_pull/_update_pull_request/updates_a_pull_request.json +0 -1
- 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 +0 -1
- 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 +0 -1
- 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 +0 -1
- 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 +0 -1
- data/spec/cassettes/Octokit_Client_Refs/_ref/returns_a_tags_ref.json +0 -1
- data/spec/cassettes/Octokit_Client_Refs/_refs/returns_all_refs.json +0 -1
- data/spec/cassettes/Octokit_Client_Refs/_refs/returns_all_tag_refs.json +0 -1
- data/spec/cassettes/Octokit_Client_Refs/methods_that_require_a_ref/_create_ref/creates_a_ref.json +0 -1
- data/spec/cassettes/Octokit_Client_Refs/methods_that_require_a_ref/_delete_ref/deletes_an_existing_ref.json +0 -1
- data/spec/cassettes/Octokit_Client_Refs/methods_that_require_a_ref/_update_ref/updates_a_ref.json +0 -1
- data/spec/cassettes/Octokit_Client_Releases/_create_release/creates_a_release.json +0 -1
- data/spec/cassettes/Octokit_Client_Releases/_delete_release/deletes_a_release.json +0 -1
- data/spec/cassettes/Octokit_Client_Releases/_release/gets_a_single_release.json +0 -1
- data/spec/cassettes/Octokit_Client_Releases/_release_assets/lists_assets_for_a_release.json +0 -1
- data/spec/cassettes/Octokit_Client_Releases/_releases/lists_releases_for_a_repo.json +0 -1
- data/spec/cassettes/Octokit_Client_Releases/_update_release/updates_a_release.json +0 -1
- data/spec/cassettes/Octokit_Client_Releases/handling_release_assets/_release_assets/lists_assets_for_a_release.json +0 -1
- data/spec/cassettes/Octokit_Client_Releases/handling_release_assets/_update_release_asset/edits_a_release_asset.json +0 -1
- data/spec/cassettes/Octokit_Client_Releases/handling_release_assets/_upload_release_asset/guesses_the_content_type_for_an_asset.json +0 -1
- data/spec/cassettes/Octokit_Client_Releases/handling_release_assets/_upload_release_asset/uploads_a_release_asset_as_file_object.json +0 -1
- data/spec/cassettes/Octokit_Client_Releases/handling_release_assets/_upload_release_asset/uploads_a_release_asset_by_path.json +0 -1
- data/spec/cassettes/Octokit_Client_Releases/handling_release_assets/_upload_release_asset/uploads_a_release_asset_with_a_default_name.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_all_repositories/returns_all_repositories_on_github.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_assignees/lists_all_the_available_assignees_owner_collaborators_.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_branches/returns_a_repository_s_branches.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_branches/returns_a_single_branch.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_check_assignee/checks_to_see_if_a_particular_user_is_an_assignee_for_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_collaborators/returns_a_repository_s_collaborators.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_contributors/returns_repository_contributors.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_contributors/returns_repository_contributors_excluding_anonymous.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_create_repository/creates_a_repository_for_an_organization.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_delete_subscription/returns_true_when_repo_subscription_deleted.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_fork/forks_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_languages/returns_a_repository_s_languages.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_network/returns_a_repository_s_network.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_repositories/returns_a_user_s_repositories.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_repositories/returns_authenticated_user_s_repositories.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_repository/returns_the_matching_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_repository_/returns_false_if_the_repository_doesn_t_exist.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_repository_/returns_true_if_the_repository_exists.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_star/stars_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_stargazers/returns_all_repository_stargazers.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_subscribers/lists_all_the_users_watching_the_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_subscription/returns_a_repository_subscription.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_tags/returns_a_repository_s_tags.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_unstar/unstars_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_unwatch/unwatches_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_update_subscription/updates_a_repository_subscription.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_watch/watches_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/_watchers/returns_all_repository_watchers.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_add_collaborator/adds_a_repository_collaborators.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_create_repository/creates_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_delete_repository/deletes_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_deploy_keys/returns_a_repository_s_deploy_keys.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_hooks/returns_a_repository_s_hooks.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_remove_collaborator/removes_a_repository_collaborators.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_repository_teams/returns_all_repository_teams.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/_update_repository/updates_the_matching_repository.json +0 -1
- 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 +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_that_need_an_existing_hook/_create_hook/creates_a_hook.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_that_need_an_existing_hook/_edit_hook/edits_a_hook.json +0 -1
- 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 +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_that_need_an_existing_hook/_remove_hook/removes_a_hook.json +0 -1
- data/spec/cassettes/Octokit_Client_Repositories/methods_that_require_a_new_repo/methods_that_need_an_existing_hook/_test_hook/tests_a_hook.json +0 -1
- data/spec/cassettes/Octokit_Client_Say/_say/returns_an_ASCII_octocat.json +0 -1
- data/spec/cassettes/Octokit_Client_Say/_say/returns_an_ASCII_octocat_with_custom_text.json +0 -1
- data/spec/cassettes/Octokit_Client_Search/_search_code/searches_code.json +0 -1
- data/spec/cassettes/Octokit_Client_Search/_search_issues/searches_issues.json +0 -1
- data/spec/cassettes/Octokit_Client_Search/_search_repositories/searches_repositories.json +0 -1
- data/spec/cassettes/Octokit_Client_Search/_search_users/searches_users.json +0 -1
- data/spec/cassettes/Octokit_Client_ServiceStatus/_github_status/returns_the_current_system_status.json +0 -1
- data/spec/cassettes/Octokit_Client_ServiceStatus/_github_status/returns_the_most_recent_status_messages.json +0 -1
- data/spec/cassettes/Octokit_Client_ServiceStatus/_github_status_last_message/returns_the_last_human_message.json +0 -1
- data/spec/cassettes/Octokit_Client_Stats/_code_frequency_stats/returns_the_code_frequency_stats.json +0 -1
- data/spec/cassettes/Octokit_Client_Stats/_commit_activity_stats/returns_the_commit_activity_stats.json +0 -1
- data/spec/cassettes/Octokit_Client_Stats/_contributors_stats/returns_contributors_and_their_contribution_stats.json +0 -1
- data/spec/cassettes/Octokit_Client_Stats/_participation_stats/returns_the_owner_and_contributor_participation_stats.json +0 -1
- data/spec/cassettes/Octokit_Client_Stats/_punch_card_stats/returns_commit_count_by_hour_punch_card_stats.json +0 -1
- data/spec/cassettes/Octokit_Client_Statuses/_create_status/creates_status.json +0 -1
- data/spec/cassettes/Octokit_Client_Statuses/_statuses/lists_commit_statuses.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_add_email/adds_an_email_address.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_all_users/returns_all_GitHub_users.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_emails/returns_email_addresses.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_follow/follows_a_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_followers/returns_followers_for_a_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_followers/returns_the_authenticated_user_s_followers.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_following/returns_following_for_a_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_following/returns_the_authenticated_user_s_following.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_follows_/checks_if_given_user_is_following_target_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_follows_/checks_if_the_authenticated_user_follows_another.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_keys/returns_public_keys_for_the_authenticated_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_remove_email/removes_an_email_address.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_starred/returns_starred_repositories_for_a_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_starred/returns_starred_repositories_for_the_authenticated_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_starred_/checks_if_the_authenticated_user_has_starred_a_repository.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_starred_/checks_if_the_authenticated_user_has_starred_a_repository_deprecated_.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_subscriptions/returns_the_repositories_a_user_watches_for_notifications.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_subscriptions/returns_the_repositories_the_authenticated_user_watches_for_notifications.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_unfollow/unfollows_a_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_update_user/updates_a_user_profile.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_user/returns_a_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_user/returns_the_authenticated_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_user_keys/returns_public_keys_for_another_user.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/_validate_credentials/validates_username_and_password.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/methods_requiring_an_existing_public_key/_add_key/adds_a_public_key.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/methods_requiring_an_existing_public_key/_key/returns_a_public_key.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/methods_requiring_an_existing_public_key/_remove_key/removes_a_public_key.json +0 -1
- data/spec/cassettes/Octokit_Client_Users/methods_requiring_an_existing_public_key/_update_key/updates_a_public_key.json +0 -1
- data/spec/cassettes/delete_authorization.json +0 -1
- data/spec/cassettes/rate_limit.json +0 -1
- data/spec/cassettes/root.json +0 -1
- data/spec/fixtures/large_file.txt +0 -48
- data/spec/fixtures/new_file.txt +0 -1
- data/spec/fixtures/updated_file.txt +0 -1
- data/spec/fixtures/upload.png +0 -0
- data/spec/fixtures/user.json +0 -31
- data/spec/fixtures/web_flow_token.json +0 -4
- data/spec/helper.rb +0 -133
- data/spec/octokit/client/authorizations_spec.rb +0 -118
- data/spec/octokit/client/commit_comments_spec.rb +0 -62
- data/spec/octokit/client/commits_spec.rb +0 -139
- data/spec/octokit/client/contents_spec.rb +0 -131
- data/spec/octokit/client/downloads_spec.rb +0 -59
- data/spec/octokit/client/emojis_spec.rb +0 -12
- data/spec/octokit/client/events_spec.rb +0 -106
- data/spec/octokit/client/gists_spec.rb +0 -184
- data/spec/octokit/client/gitignore_spec.rb +0 -26
- data/spec/octokit/client/issues_spec.rb +0 -174
- data/spec/octokit/client/labels_spec.rb +0 -115
- data/spec/octokit/client/legacy_search_spec.rb +0 -42
- data/spec/octokit/client/markdown_spec.rb +0 -20
- data/spec/octokit/client/meta_spec.rb +0 -14
- data/spec/octokit/client/milestones_spec.rb +0 -59
- data/spec/octokit/client/notifications_spec.rb +0 -85
- data/spec/octokit/client/objects_spec.rb +0 -71
- data/spec/octokit/client/organizations_spec.rb +0 -197
- data/spec/octokit/client/pub_sub_hubbub_spec.rb +0 -93
- data/spec/octokit/client/pull_requests_spec.rb +0 -186
- data/spec/octokit/client/rate_limit_spec.rb +0 -44
- data/spec/octokit/client/refs_spec.rb +0 -70
- data/spec/octokit/client/releases_spec.rb +0 -137
- data/spec/octokit/client/repositories_spec.rb +0 -406
- data/spec/octokit/client/say_spec.rb +0 -23
- data/spec/octokit/client/search_spec.rb +0 -59
- data/spec/octokit/client/service_status_spec.rb +0 -37
- data/spec/octokit/client/stats_spec.rb +0 -105
- data/spec/octokit/client/statuses_spec.rb +0 -28
- data/spec/octokit/client/users_spec.rb +0 -220
- data/spec/octokit/client_spec.rb +0 -576
- data/spec/octokit/gist_spec.rb +0 -49
- data/spec/octokit/rate_limit_spec.rb +0 -30
- data/spec/octokit/repository_spec.rb +0 -55
- data/spec/octokit_spec.rb +0 -46
@@ -1,23 +0,0 @@
|
|
1
|
-
require 'helper'
|
2
|
-
|
3
|
-
describe Octokit::Client::Say do
|
4
|
-
before do
|
5
|
-
Octokit.reset!
|
6
|
-
@client = oauth_client
|
7
|
-
end
|
8
|
-
|
9
|
-
describe ".say", :vcr do
|
10
|
-
it "returns an ASCII octocat" do
|
11
|
-
text = @client.say
|
12
|
-
expect(text).to match /MMMMMMMMMMMMMMMMMMMMM/
|
13
|
-
assert_requested :get, github_url("/octocat")
|
14
|
-
end
|
15
|
-
|
16
|
-
it "returns an ASCII octocat with custom text" do
|
17
|
-
text = @client.say "There is no need to be upset"
|
18
|
-
expect(text).to match /upset/
|
19
|
-
assert_requested :get, github_url("/octocat?s=There+is+no+need+to+be+upset")
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
end
|
@@ -1,59 +0,0 @@
|
|
1
|
-
require 'helper'
|
2
|
-
|
3
|
-
describe Octokit::Client::Search do
|
4
|
-
|
5
|
-
before do
|
6
|
-
Octokit.reset!
|
7
|
-
@client = oauth_client
|
8
|
-
end
|
9
|
-
|
10
|
-
describe ".search_code" do
|
11
|
-
it "searches code", :vcr do
|
12
|
-
results = @client.search_code 'code in:file extension:gemspec -repo:octokit/octokit.rb', \
|
13
|
-
:sort => 'indexed',
|
14
|
-
:order => 'asc'
|
15
|
-
|
16
|
-
assert_requested :get, github_url('/search/code?q=code%20in:file%20extension:gemspec%20-repo:octokit/octokit.rb&sort=indexed&order=asc')
|
17
|
-
expect(results.total_count).to be_kind_of Fixnum
|
18
|
-
expect(results.items).to be_kind_of Array
|
19
|
-
end
|
20
|
-
end # .search_code
|
21
|
-
|
22
|
-
describe ".search_issues" do
|
23
|
-
it "searches issues", :vcr do
|
24
|
-
results = @client.search_issues 'http author:jasonrudolph', \
|
25
|
-
:sort => 'created',
|
26
|
-
:order => 'desc'
|
27
|
-
|
28
|
-
assert_requested :get, github_url('/search/issues?q=http%20author:jasonrudolph&sort=created&order=desc')
|
29
|
-
expect(results.total_count).to be_kind_of Fixnum
|
30
|
-
expect(results.items).to be_kind_of Array
|
31
|
-
end
|
32
|
-
end # .search_issues
|
33
|
-
|
34
|
-
describe ".search_repositories" do
|
35
|
-
it "searches repositories", :vcr do
|
36
|
-
results = @client.search_repositories 'tetris language:assembly', \
|
37
|
-
:sort => 'stars',
|
38
|
-
:order => 'desc'
|
39
|
-
|
40
|
-
assert_requested :get, github_url('/search/repositories?q=tetris%20language:assembly&sort=stars&order=desc')
|
41
|
-
expect(results.total_count).to be_kind_of Fixnum
|
42
|
-
expect(results.items).to be_kind_of Array
|
43
|
-
end
|
44
|
-
end # .search_repositories
|
45
|
-
|
46
|
-
describe ".search_users" do
|
47
|
-
it "searches users", :vcr do
|
48
|
-
results = @client.search_users 'mike followers:>10', \
|
49
|
-
:sort => 'joined',
|
50
|
-
:order => 'desc'
|
51
|
-
|
52
|
-
assert_requested :get, github_url('/search/users?q=mike%20followers:%3E10&sort=joined&order=desc')
|
53
|
-
expect(results.total_count).to be_kind_of Fixnum
|
54
|
-
expect(results.items).to be_kind_of Array
|
55
|
-
end
|
56
|
-
end # .search_users
|
57
|
-
|
58
|
-
end
|
59
|
-
|
@@ -1,37 +0,0 @@
|
|
1
|
-
require 'helper'
|
2
|
-
|
3
|
-
describe Octokit::Client::ServiceStatus do
|
4
|
-
|
5
|
-
before do
|
6
|
-
Octokit.reset!
|
7
|
-
end
|
8
|
-
|
9
|
-
describe ".github_status", :vcr do
|
10
|
-
it "returns the current system status" do
|
11
|
-
current_status = Octokit.github_status
|
12
|
-
expect(current_status.status).to_not be_nil
|
13
|
-
assert_requested :get, "https://status.github.com/api.json"
|
14
|
-
assert_requested :get, "https://status.github.com/api/status.json"
|
15
|
-
end
|
16
|
-
end # .github_status
|
17
|
-
|
18
|
-
describe ".github_status_last_message", :vcr do
|
19
|
-
it "returns the last human message" do
|
20
|
-
message = Octokit.github_status_last_message
|
21
|
-
expect(message.status).to_not be_nil
|
22
|
-
expect(message.body).to_not be_nil
|
23
|
-
assert_requested :get, "https://status.github.com/api.json"
|
24
|
-
assert_requested :get, "https://status.github.com/api/last-message.json"
|
25
|
-
end
|
26
|
-
end # .github_status_last_message
|
27
|
-
|
28
|
-
describe ".github_status", :vcr do
|
29
|
-
it "returns the most recent status messages" do
|
30
|
-
messages = Octokit.github_status_messages
|
31
|
-
expect(messages).to be_kind_of Array
|
32
|
-
assert_requested :get, "https://status.github.com/api.json"
|
33
|
-
assert_requested :get, "https://status.github.com/api/messages.json"
|
34
|
-
end
|
35
|
-
end # .github_status
|
36
|
-
|
37
|
-
end
|
@@ -1,105 +0,0 @@
|
|
1
|
-
require 'helper'
|
2
|
-
|
3
|
-
describe Octokit::Client::Stats do
|
4
|
-
|
5
|
-
before do
|
6
|
-
Octokit.reset!
|
7
|
-
@client = oauth_client
|
8
|
-
end
|
9
|
-
|
10
|
-
context "with cold graph cache" do
|
11
|
-
|
12
|
-
before do
|
13
|
-
VCR.turn_off!
|
14
|
-
stub_request(:any, /api\.github\.com\/repos\/octokit/).
|
15
|
-
to_return(:status => 202)
|
16
|
-
end
|
17
|
-
|
18
|
-
after do
|
19
|
-
VCR.turn_on!
|
20
|
-
end
|
21
|
-
|
22
|
-
describe ".contributors_stats" do
|
23
|
-
it "returns contributors and their contribution stats" do
|
24
|
-
stats = @client.contributors_stats("octokit/octokit.rb")
|
25
|
-
expect(stats).to be_nil
|
26
|
-
assert_requested :get, github_url("/repos/octokit/octokit.rb/stats/contributors")
|
27
|
-
end
|
28
|
-
end # .contributors_stats
|
29
|
-
|
30
|
-
describe ".commit_activity_stats" do
|
31
|
-
it "returns the commit activity stats" do
|
32
|
-
stats = @client.commit_activity_stats("octokit/octokit.rb")
|
33
|
-
expect(stats).to be_nil
|
34
|
-
assert_requested :get, github_url("/repos/octokit/octokit.rb/stats/commit_activity")
|
35
|
-
end
|
36
|
-
end # .commit_activity_stats
|
37
|
-
|
38
|
-
describe ".code_frequency_stats" do
|
39
|
-
it "returns the code frequency stats" do
|
40
|
-
stats = @client.code_frequency_stats('octokit/octokit.rb')
|
41
|
-
expect(stats).to be_nil
|
42
|
-
assert_requested :get, github_url("/repos/octokit/octokit.rb/stats/code_frequency")
|
43
|
-
end
|
44
|
-
end # .code_frequency_stats
|
45
|
-
|
46
|
-
describe ".participation_stats" do
|
47
|
-
it "returns the owner and contributor participation stats" do
|
48
|
-
stats = @client.participation_stats('octokit/octokit.rb')
|
49
|
-
expect(stats).to be_nil
|
50
|
-
assert_requested :get, github_url("/repos/octokit/octokit.rb/stats/participation")
|
51
|
-
end
|
52
|
-
end # .participation_stats
|
53
|
-
|
54
|
-
describe ".punch_card_stats" do
|
55
|
-
it "returns commit count by hour punch card stats" do
|
56
|
-
stats = @client.punch_card_stats('octokit/octokit.rb')
|
57
|
-
expect(stats).to be_nil
|
58
|
-
assert_requested :get, github_url("/repos/octokit/octokit.rb/stats/punch_card")
|
59
|
-
end
|
60
|
-
end # .punch_card_stats
|
61
|
-
end
|
62
|
-
|
63
|
-
describe ".contributors_stats", :vcr do
|
64
|
-
it "returns contributors and their contribution stats" do
|
65
|
-
stats = @client.contributors_stats("octokit/octokit.rb")
|
66
|
-
expect(stats).to be_kind_of Array
|
67
|
-
expect(stats.first.author.login).to_not be_nil
|
68
|
-
assert_requested :get, github_url("/repos/octokit/octokit.rb/stats/contributors")
|
69
|
-
end
|
70
|
-
end # .contributors_stats
|
71
|
-
|
72
|
-
describe ".commit_activity_stats", :vcr do
|
73
|
-
it "returns the commit activity stats" do
|
74
|
-
stats = @client.commit_activity_stats("octokit/octokit.rb")
|
75
|
-
expect(stats).to be_kind_of Array
|
76
|
-
expect(stats.first.week).to be_kind_of Fixnum
|
77
|
-
assert_requested :get, github_url("/repos/octokit/octokit.rb/stats/commit_activity")
|
78
|
-
end
|
79
|
-
end # .commit_activity_stats
|
80
|
-
|
81
|
-
describe ".code_frequency_stats", :vcr do
|
82
|
-
it "returns the code frequency stats" do
|
83
|
-
stats = @client.code_frequency_stats('octokit/octokit.rb')
|
84
|
-
expect(stats).to be_kind_of Array
|
85
|
-
assert_requested :get, github_url("/repos/octokit/octokit.rb/stats/code_frequency")
|
86
|
-
end
|
87
|
-
end # .code_frequency_stats
|
88
|
-
|
89
|
-
describe ".participation_stats", :vcr do
|
90
|
-
it "returns the owner and contributor participation stats" do
|
91
|
-
stats = @client.participation_stats('octokit/octokit.rb')
|
92
|
-
expect(stats.fields).to include :owner
|
93
|
-
assert_requested :get, github_url("/repos/octokit/octokit.rb/stats/participation")
|
94
|
-
end
|
95
|
-
end # .participation_stats
|
96
|
-
|
97
|
-
describe ".punch_card_stats", :vcr do
|
98
|
-
it "returns commit count by hour punch card stats" do
|
99
|
-
stats = @client.punch_card_stats('octokit/octokit.rb')
|
100
|
-
expect(stats).to be_kind_of Array
|
101
|
-
assert_requested :get, github_url("/repos/octokit/octokit.rb/stats/punch_card")
|
102
|
-
end
|
103
|
-
end # .punch_card_stats
|
104
|
-
|
105
|
-
end
|
@@ -1,28 +0,0 @@
|
|
1
|
-
require 'helper'
|
2
|
-
|
3
|
-
describe Octokit::Client::Statuses do
|
4
|
-
|
5
|
-
before do
|
6
|
-
Octokit.reset!
|
7
|
-
@client = oauth_client
|
8
|
-
end
|
9
|
-
|
10
|
-
describe ".statuses", :vcr do
|
11
|
-
it "lists commit statuses" do
|
12
|
-
statuses = Octokit.statuses('octokit/octokit.rb', '7d069dedd4cb56bf57760688657abd0e6b5a28b8')
|
13
|
-
expect(statuses).to be_kind_of Array
|
14
|
-
assert_requested :get, github_url("/repos/octokit/octokit.rb/statuses/7d069dedd4cb56bf57760688657abd0e6b5a28b8")
|
15
|
-
end
|
16
|
-
end # .statuses
|
17
|
-
|
18
|
-
describe ".create_status", :vcr do
|
19
|
-
it "creates status" do
|
20
|
-
info = {
|
21
|
-
:target_url => 'http://wynnnetherland.com'
|
22
|
-
}
|
23
|
-
@client.create_status("api-playground/api-sandbox", '78c9dcae41c7c5f81b012d15d06d843623a4988a', 'success', info)
|
24
|
-
assert_requested :post, github_url("/repos/api-playground/api-sandbox/statuses/78c9dcae41c7c5f81b012d15d06d843623a4988a")
|
25
|
-
end
|
26
|
-
end # .create_status
|
27
|
-
|
28
|
-
end
|
@@ -1,220 +0,0 @@
|
|
1
|
-
require 'helper'
|
2
|
-
|
3
|
-
describe Octokit::Client::Users do
|
4
|
-
|
5
|
-
before(:each) do
|
6
|
-
Octokit.reset!
|
7
|
-
@client = oauth_client
|
8
|
-
end
|
9
|
-
|
10
|
-
describe ".all_users", :vcr do
|
11
|
-
it "returns all GitHub users" do
|
12
|
-
users = Octokit.all_users
|
13
|
-
expect(users).to be_kind_of Array
|
14
|
-
end
|
15
|
-
end # .all_users
|
16
|
-
|
17
|
-
describe ".user", :vcr do
|
18
|
-
it "returns a user" do
|
19
|
-
user = Octokit.client.user("sferik")
|
20
|
-
expect(user.login).to eq 'sferik'
|
21
|
-
end
|
22
|
-
it "returns the authenticated user" do
|
23
|
-
user = @client.user
|
24
|
-
expect(user.login).to eq test_github_login
|
25
|
-
end
|
26
|
-
end # .user
|
27
|
-
|
28
|
-
describe ".validate_credentials", :vcr do
|
29
|
-
it "validates username and password" do
|
30
|
-
expect(Octokit.validate_credentials(:login => test_github_login, :password => test_github_password)).to be_true
|
31
|
-
end
|
32
|
-
end # .validate_credentials
|
33
|
-
|
34
|
-
describe ".update_user", :vcr do
|
35
|
-
it "updates a user profile" do
|
36
|
-
user = @client.update_user(:location => "San Francisco, CA", :hireable => false)
|
37
|
-
expect(user.login).to eq test_github_login
|
38
|
-
assert_requested :patch, github_url("/user")
|
39
|
-
end
|
40
|
-
end # .update_user
|
41
|
-
|
42
|
-
describe ".followers", :vcr do
|
43
|
-
it "returns followers for a user" do
|
44
|
-
users = Octokit.followers("sferik")
|
45
|
-
expect(users).to be_kind_of Array
|
46
|
-
assert_requested :get, github_url("/users/sferik/followers")
|
47
|
-
end
|
48
|
-
it "returns the authenticated user's followers" do
|
49
|
-
users = @client.followers
|
50
|
-
expect(users).to be_kind_of Array
|
51
|
-
assert_requested :get, github_url("/users/#{test_github_login}/followers")
|
52
|
-
end
|
53
|
-
end # .followers
|
54
|
-
|
55
|
-
describe ".following", :vcr do
|
56
|
-
it "returns following for a user" do
|
57
|
-
users = Octokit.following("sferik")
|
58
|
-
expect(users).to be_kind_of Array
|
59
|
-
assert_requested :get, github_url("/users/sferik/following")
|
60
|
-
end
|
61
|
-
it "returns the authenticated user's following" do
|
62
|
-
users = @client.following
|
63
|
-
expect(users).to be_kind_of Array
|
64
|
-
assert_requested :get, github_url("/users/#{test_github_login}/following")
|
65
|
-
end
|
66
|
-
end # .following
|
67
|
-
|
68
|
-
describe ".follows?", :vcr, :match_requests_on => [:uri] do
|
69
|
-
it "checks if the authenticated user follows another" do
|
70
|
-
follows = @client.follows?("sferik")
|
71
|
-
assert_requested :get, github_url("/user/following/sferik")
|
72
|
-
end
|
73
|
-
|
74
|
-
it "checks if given user is following target user" do
|
75
|
-
follows = @client.follows?("sferik", "pengwynn")
|
76
|
-
assert_requested :get, github_url("/users/sferik/following/pengwynn")
|
77
|
-
end
|
78
|
-
end # .follows?
|
79
|
-
|
80
|
-
describe ".follow", :vcr do
|
81
|
-
it "follows a user" do
|
82
|
-
following = @client.follow("pengwynn")
|
83
|
-
assert_requested :put, github_url("/user/following/pengwynn")
|
84
|
-
end
|
85
|
-
end # .follow
|
86
|
-
|
87
|
-
describe ".unfollow", :vcr do
|
88
|
-
it "unfollows a user" do
|
89
|
-
following = @client.unfollow("pengwynn")
|
90
|
-
assert_requested :delete, github_url("/user/following/pengwynn")
|
91
|
-
end
|
92
|
-
end # .unfollow
|
93
|
-
|
94
|
-
describe ".starred?", :vcr do
|
95
|
-
it "checks if the authenticated user has starred a repository" do
|
96
|
-
starred = @client.starred?("sferik/rails_admin")
|
97
|
-
assert_requested :get, github_url("/user/starred/sferik/rails_admin")
|
98
|
-
end
|
99
|
-
it "checks if the authenticated user has starred a repository (deprecated)" do
|
100
|
-
starred = @client.starred?("sferik", "rails_admin")
|
101
|
-
assert_requested :get, github_url("/user/starred/sferik/rails_admin")
|
102
|
-
end
|
103
|
-
end # .starred?
|
104
|
-
|
105
|
-
describe ".starred", :vcr do
|
106
|
-
it "returns starred repositories for a user" do
|
107
|
-
repositories = Octokit.starred("sferik")
|
108
|
-
assert_requested :get, github_url("/users/sferik/starred")
|
109
|
-
end
|
110
|
-
it "returns starred repositories for the authenticated user" do
|
111
|
-
repositories = @client.starred
|
112
|
-
assert_requested :get, github_url("/user/starred")
|
113
|
-
end
|
114
|
-
end # .starred
|
115
|
-
|
116
|
-
describe ".keys", :vcr do
|
117
|
-
it "returns public keys for the authenticated user" do
|
118
|
-
public_keys = @client.keys
|
119
|
-
expect(public_keys).to be_kind_of Array
|
120
|
-
assert_requested :get, github_url("/user/keys")
|
121
|
-
end
|
122
|
-
end # .keys
|
123
|
-
|
124
|
-
describe ".user_keys", :vcr do
|
125
|
-
it "returns public keys for another user" do
|
126
|
-
public_keys = Octokit.user_keys("pengwynn")
|
127
|
-
expect(public_keys).to be_kind_of Array
|
128
|
-
assert_requested :get, github_url("/users/pengwynn/keys")
|
129
|
-
end
|
130
|
-
end # .user_keys
|
131
|
-
|
132
|
-
context "methods requiring an existing @public_key", :vcr do
|
133
|
-
|
134
|
-
before(:each) do
|
135
|
-
title, key = "wynning", "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDN/h7Hf5TA6G4p19deF8YS9COfuBd133GPs49tO6AU/DKIt7tlitbnUnttT0VbNZM4fplyinPu5vJl60eusn/Ngq2vDfSHP5SfgHfA9H8cnHGPYG7w6F0CujFB3tjBhHa3L6Je50E3NC4+BGGhZMpUoTClEI5yEzx3qosRfpfJu/2MUp/V2aARCAiHUlUoj5eiB15zC25uDsY7SYxkh1JO0ecKSMISc/OCdg0kwi7it4t7S/qm8Wh9pVGuA5FmVk8w0hvL+hHWB9GT02WPqiesMaS9Sj3t0yuRwgwzLDaudQPKKTKYXi+SjwXxTJ/lei2bZTMC4QxYbqfqYQt66pQB wynn.netherland+api-padawan@gmail.com"
|
136
|
-
@public_key = @client.add_key(title, key)
|
137
|
-
end
|
138
|
-
|
139
|
-
after(:each) do
|
140
|
-
@client.remove_key(@public_key.id)
|
141
|
-
end
|
142
|
-
|
143
|
-
describe ".add_key" do
|
144
|
-
it "adds a public key" do
|
145
|
-
assert_requested :post, github_url("/user/keys")
|
146
|
-
end
|
147
|
-
end # .add_key
|
148
|
-
|
149
|
-
describe ".key" do
|
150
|
-
it "returns a public key" do
|
151
|
-
key = @client.key @public_key.id
|
152
|
-
assert_requested :get, github_url("/user/keys/#{@public_key.id}")
|
153
|
-
end
|
154
|
-
end
|
155
|
-
|
156
|
-
describe ".update_key" do
|
157
|
-
it "updates a public key" do
|
158
|
-
public_key = @client.update_key(@public_key.id, :title => 'Updated key')
|
159
|
-
assert_requested :patch, github_url("/user/keys/#{@public_key.id}")
|
160
|
-
end
|
161
|
-
end # .update_key
|
162
|
-
|
163
|
-
describe ".remove_key" do
|
164
|
-
it "removes a public key" do
|
165
|
-
response = @client.remove_key(@public_key.id)
|
166
|
-
assert_requested :delete, github_url("/user/keys/#{@public_key.id}")
|
167
|
-
end
|
168
|
-
end # .remove_key
|
169
|
-
|
170
|
-
end # @public_key methods
|
171
|
-
|
172
|
-
describe ".emails", :vcr do
|
173
|
-
it "returns email addresses" do
|
174
|
-
emails = @client.emails
|
175
|
-
expect(emails).to be_kind_of Array
|
176
|
-
assert_requested :get, github_url("/user/emails")
|
177
|
-
end
|
178
|
-
end # .emails
|
179
|
-
|
180
|
-
describe ".add_email", :vcr do
|
181
|
-
it "adds an email address" do
|
182
|
-
emails = @client.add_email("wynn.netherland+apitest@gmail.com")
|
183
|
-
assert_requested :post, github_url("/user/emails")
|
184
|
-
end
|
185
|
-
end # .add_email
|
186
|
-
|
187
|
-
describe ".remove_email", :vcr do
|
188
|
-
it "removes an email address" do
|
189
|
-
emails = @client.remove_email("wynn.netherland+apitest@gmail.com")
|
190
|
-
assert_requested :delete, github_url("/user/emails")
|
191
|
-
end
|
192
|
-
end # .remove_email
|
193
|
-
|
194
|
-
describe ".subscriptions", :vcr do
|
195
|
-
it "returns the repositories a user watches for notifications" do
|
196
|
-
subscriptions = Octokit.subscriptions("pengwynn")
|
197
|
-
assert_requested :get, github_url("/users/pengwynn/subscriptions")
|
198
|
-
end
|
199
|
-
it "returns the repositories the authenticated user watches for notifications" do
|
200
|
-
subscriptions = @client.subscriptions
|
201
|
-
assert_requested :get, github_url("/user/subscriptions")
|
202
|
-
end
|
203
|
-
end # .subscriptions
|
204
|
-
|
205
|
-
describe '.exchange_code_for_token' do
|
206
|
-
it 'returns the access_token' do
|
207
|
-
VCR.turn_off!
|
208
|
-
post = stub_post("https://github.com/login/oauth/access_token").
|
209
|
-
with(:headers => {
|
210
|
-
:accept => "application/json",
|
211
|
-
:content_type => "application/json"
|
212
|
-
}).to_return(json_response("web_flow_token.json"))
|
213
|
-
response = Octokit.exchange_code_for_token('code', 'id_here', 'secret_here')
|
214
|
-
expect(response.access_token).to eq 'this_be_ye_token/use_it_wisely'
|
215
|
-
assert_requested post
|
216
|
-
VCR.turn_on!
|
217
|
-
end
|
218
|
-
end # .access_token
|
219
|
-
|
220
|
-
end
|