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
data/spec/cassettes/root.json
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"http_interactions":[{"request":{"method":"get","uri":"https://api.github.com/","body":{"encoding":"US-ASCII","base64_string":""},"headers":{"Accept":["application/vnd.github.beta+json"],"User-Agent":["Octokit Ruby Gem 2.0.0.pre"],"Accept-Encoding":["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"]}},"response":{"status":{"code":200,"message":"OK"},"headers":{"Server":["GitHub.com"],"Date":["Mon, 24 Jun 2013 01:16:58 GMT"],"Content-Type":["application/json; charset=utf-8"],"Transfer-Encoding":["chunked"],"Connection":["keep-alive"],"Status":["200 OK"],"X-Ratelimit-Limit":["60"],"X-Ratelimit-Remaining":["59"],"X-Github-Media-Type":["github.beta; format=json"],"X-Content-Type-Options":["nosniff"],"Access-Control-Allow-Credentials":["true"],"Access-Control-Expose-Headers":["ETag, Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-OAuth-Scopes, X-Accepted-OAuth-Scopes"],"Access-Control-Allow-Origin":["*"],"Etag":["\"0e2423cbc08777ba92f98a11ee785561\""],"Cache-Control":["max-age=0, private, must-revalidate"],"Vary":["Accept-Encoding"]},"body":{"encoding":"UTF-8","base64_string":"eyJjdXJyZW50X3VzZXJfdXJsIjoiaHR0cHM6Ly9hcGkuZ2l0aHViLmNvbS91\nc2VyIiwiYXV0aG9yaXphdGlvbnNfdXJsIjoiaHR0cHM6Ly9hcGkuZ2l0aHVi\nLmNvbS9hdXRob3JpemF0aW9ucyIsImVtYWlsc191cmwiOiJodHRwczovL2Fw\naS5naXRodWIuY29tL3VzZXIvZW1haWxzIiwiZW1vamlzX3VybCI6Imh0dHBz\nOi8vYXBpLmdpdGh1Yi5jb20vZW1vamlzIiwiZXZlbnRzX3VybCI6Imh0dHBz\nOi8vYXBpLmdpdGh1Yi5jb20vZXZlbnRzIiwiZm9sbG93aW5nX3VybCI6Imh0\ndHBzOi8vYXBpLmdpdGh1Yi5jb20vdXNlci9mb2xsb3dpbmd7L3RhcmdldH0i\nLCJnaXN0c191cmwiOiJodHRwczovL2FwaS5naXRodWIuY29tL2dpc3Rzey9n\naXN0X2lkfSIsImh1Yl91cmwiOiJodHRwczovL2FwaS5naXRodWIuY29tL2h1\nYiIsImlzc3VlX3NlYXJjaF91cmwiOiJodHRwczovL2FwaS5naXRodWIuY29t\nL2xlZ2FjeS9pc3N1ZXMvc2VhcmNoL3tvd25lcn0ve3JlcG99L3tzdGF0ZX0v\ne2tleXdvcmR9IiwiaXNzdWVzX3VybCI6Imh0dHBzOi8vYXBpLmdpdGh1Yi5j\nb20vaXNzdWVzIiwia2V5c191cmwiOiJodHRwczovL2FwaS5naXRodWIuY29t\nL3VzZXIva2V5cyIsIm5vdGlmaWNhdGlvbnNfdXJsIjoiaHR0cHM6Ly9hcGku\nZ2l0aHViLmNvbS9ub3RpZmljYXRpb25zIiwib3JnYW5pemF0aW9uX3JlcG9z\naXRvcmllc191cmwiOiJodHRwczovL2FwaS5naXRodWIuY29tL29yZ3Mve29y\nZ30vcmVwb3Mvez90eXBlLHBhZ2UscGVyX3BhZ2Usc29ydH0iLCJvcmdhbml6\nYXRpb25fdXJsIjoiaHR0cHM6Ly9hcGkuZ2l0aHViLmNvbS9vcmdzL3tvcmd9\nIiwicHVibGljX2dpc3RzX3VybCI6Imh0dHBzOi8vYXBpLmdpdGh1Yi5jb20v\nZ2lzdHMvcHVibGljIiwicmF0ZV9saW1pdF91cmwiOiJodHRwczovL2FwaS5n\naXRodWIuY29tL3JhdGVfbGltaXQiLCJyZXBvc2l0b3J5X3VybCI6Imh0dHBz\nOi8vYXBpLmdpdGh1Yi5jb20vcmVwb3Mve293bmVyfS97cmVwb30iLCJyZXBv\nc2l0b3J5X3NlYXJjaF91cmwiOiJodHRwczovL2FwaS5naXRodWIuY29tL2xl\nZ2FjeS9yZXBvcy9zZWFyY2gve2tleXdvcmR9ez9sYW5ndWFnZSxzdGFydF9w\nYWdlfSIsImN1cnJlbnRfdXNlcl9yZXBvc2l0b3JpZXNfdXJsIjoiaHR0cHM6\nLy9hcGkuZ2l0aHViLmNvbS91c2VyL3JlcG9zez90eXBlLHBhZ2UscGVyX3Bh\nZ2Usc29ydH0iLCJzdGFycmVkX3VybCI6Imh0dHBzOi8vYXBpLmdpdGh1Yi5j\nb20vdXNlci9zdGFycmVkey9vd25lcn17L3JlcG99Iiwic3RhcnJlZF9naXN0\nc191cmwiOiJodHRwczovL2FwaS5naXRodWIuY29tL2dpc3RzL3N0YXJyZWQi\nLCJ0ZWFtX3VybCI6Imh0dHBzOi8vYXBpLmdpdGh1Yi5jb20vdGVhbXMiLCJ1\nc2VyX3VybCI6Imh0dHBzOi8vYXBpLmdpdGh1Yi5jb20vdXNlcnMve3VzZXJ9\nIiwidXNlcl9vcmdhbml6YXRpb25zX3VybCI6Imh0dHBzOi8vYXBpLmdpdGh1\nYi5jb20vdXNlci9vcmdzIiwidXNlcl9yZXBvc2l0b3JpZXNfdXJsIjoiaHR0\ncHM6Ly9hcGkuZ2l0aHViLmNvbS91c2Vycy97dXNlcn0vcmVwb3N7P3R5cGUs\ncGFnZSxwZXJfcGFnZSxzb3J0fSIsInVzZXJfc2VhcmNoX3VybCI6Imh0dHBz\nOi8vYXBpLmdpdGh1Yi5jb20vbGVnYWN5L3VzZXIvc2VhcmNoL3trZXl3b3Jk\nfSJ9\n"},"http_version":null},"recorded_at":"Mon, 24 Jun 2013 01:16:58 GMT"}],"recorded_with":"VCR 2.4.0"}
|
@@ -1,48 +0,0 @@
|
|
1
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Paulum, cum regem Persem captum adduceret, eodem flumine invectio? Quodsi vultum tibi, si incessum fingeres, quo gravior viderere, non esses tui similis; Quid enim ab antiquis ex eo genere, quod ad disserendum valet, praetermissum est? </p>
|
2
|
-
<p>Ego vero isti, inquam, permitto. Septem autem illi non suo, sed populorum suffragio omnium nominati sunt. Aliter homines, aliter philosophos loqui putas oportere? Certe, nisi voluptatem tanti aestimaretis. Quamvis enim depravatae non sint, pravae tamen esse possunt. Vitiosum est enim in dividendo partem in genere numerare. Solum praeterea formosum, solum liberum, solum civem, stultost; Est, ut dicis, inquam. </p>
|
3
|
-
<p>Nam de isto magna dissensio est. Hoc non est positum in nostra actione. Hoc ipsum elegantius poni meliusque potuit. Beatus sibi videtur esse moriens. Illud non continuo, ut aeque incontentae. Id Sextilius factum negabat. </p>
|
4
|
-
<p>Duo Reges: constructio interrete. Conferam tecum, quam cuique verso rem subicias; Conferam avum tuum Drusum cum C. Ostendit pedes et pectus. Age sane, inquam. Proclivi currit oratio. Si quidem, inquit, tollerem, sed relinquo. Quid ait Aristoteles reliquique Platonis alumni? Partim cursu et peragratione laetantur, congregatione aliae coetum quodam modo civitatis imitantur; </p>
|
5
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Paulum, cum regem Persem captum adduceret, eodem flumine invectio? Quodsi vultum tibi, si incessum fingeres, quo gravior viderere, non esses tui similis; Quid enim ab antiquis ex eo genere, quod ad disserendum valet, praetermissum est? </p>
|
6
|
-
<p>Ego vero isti, inquam, permitto. Septem autem illi non suo, sed populorum suffragio omnium nominati sunt. Aliter homines, aliter philosophos loqui putas oportere? Certe, nisi voluptatem tanti aestimaretis. Quamvis enim depravatae non sint, pravae tamen esse possunt. Vitiosum est enim in dividendo partem in genere numerare. Solum praeterea formosum, solum liberum, solum civem, stultost; Est, ut dicis, inquam. </p>
|
7
|
-
<p>Nam de isto magna dissensio est. Hoc non est positum in nostra actione. Hoc ipsum elegantius poni meliusque potuit. Beatus sibi videtur esse moriens. Illud non continuo, ut aeque incontentae. Id Sextilius factum negabat. </p>
|
8
|
-
<p>Duo Reges: constructio interrete. Conferam tecum, quam cuique verso rem subicias; Conferam avum tuum Drusum cum C. Ostendit pedes et pectus. Age sane, inquam. Proclivi currit oratio. Si quidem, inquit, tollerem, sed relinquo. Quid ait Aristoteles reliquique Platonis alumni? Partim cursu et peragratione laetantur, congregatione aliae coetum quodam modo civitatis imitantur; </p>
|
9
|
-
<p>Ego vero isti, inquam, permitto. Septem autem illi non suo, sed populorum suffragio omnium nominati sunt. Aliter homines, aliter philosophos loqui putas oportere? Certe, nisi voluptatem tanti aestimaretis. Quamvis enim depravatae non sint, pravae tamen esse possunt. Vitiosum est enim in dividendo partem in genere numerare. Solum praeterea formosum, solum liberum, solum civem, stultost; Est, ut dicis, inquam. </p>
|
10
|
-
<p>Nam de isto magna dissensio est. Hoc non est positum in nostra actione. Hoc ipsum elegantius poni meliusque potuit. Beatus sibi videtur esse moriens. Illud non continuo, ut aeque incontentae. Id Sextilius factum negabat. </p>
|
11
|
-
<p>Duo Reges: constructio interrete. Conferam tecum, quam cuique verso rem subicias; Conferam avum tuum Drusum cum C. Ostendit pedes et pectus. Age sane, inquam. Proclivi currit oratio. Si quidem, inquit, tollerem, sed relinquo. Quid ait Aristoteles reliquique Platonis alumni? Partim cursu et peragratione laetantur, congregatione aliae coetum quodam modo civitatis imitantur; </p>
|
12
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Paulum, cum regem Persem captum adduceret, eodem flumine invectio? Quodsi vultum tibi, si incessum fingeres, quo gravior viderere, non esses tui similis; Quid enim ab antiquis ex eo genere, quod ad disserendum valet, praetermissum est? </p>
|
13
|
-
<p>Ego vero isti, inquam, permitto. Septem autem illi non suo, sed populorum suffragio omnium nominati sunt. Aliter homines, aliter philosophos loqui putas oportere? Certe, nisi voluptatem tanti aestimaretis. Quamvis enim depravatae non sint, pravae tamen esse possunt. Vitiosum est enim in dividendo partem in genere numerare. Solum praeterea formosum, solum liberum, solum civem, stultost; Est, ut dicis, inquam. </p>
|
14
|
-
<p>Nam de isto magna dissensio est. Hoc non est positum in nostra actione. Hoc ipsum elegantius poni meliusque potuit. Beatus sibi videtur esse moriens. Illud non continuo, ut aeque incontentae. Id Sextilius factum negabat. </p>
|
15
|
-
<p>Duo Reges: constructio interrete. Conferam tecum, quam cuique verso rem subicias; Conferam avum tuum Drusum cum C. Ostendit pedes et pectus. Age sane, inquam. Proclivi currit oratio. Si quidem, inquit, tollerem, sed relinquo. Quid ait Aristoteles reliquique Platonis alumni? Partim cursu et peragratione laetantur, congregatione aliae coetum quodam modo civitatis imitantur; </p>
|
16
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Paulum, cum regem Persem captum adduceret, eodem flumine invectio? Quodsi vultum tibi, si incessum fingeres, quo gravior viderere, non esses tui similis; Quid enim ab antiquis ex eo genere, quod ad disserendum valet, praetermissum est? </p>
|
17
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Paulum, cum regem Persem captum adduceret, eodem flumine invectio? Quodsi vultum tibi, si incessum fingeres, quo gravior viderere, non esses tui similis; Quid enim ab antiquis ex eo genere, quod ad disserendum valet, praetermissum est? </p>
|
18
|
-
<p>Ego vero isti, inquam, permitto. Septem autem illi non suo, sed populorum suffragio omnium nominati sunt. Aliter homines, aliter philosophos loqui putas oportere? Certe, nisi voluptatem tanti aestimaretis. Quamvis enim depravatae non sint, pravae tamen esse possunt. Vitiosum est enim in dividendo partem in genere numerare. Solum praeterea formosum, solum liberum, solum civem, stultost; Est, ut dicis, inquam. </p>
|
19
|
-
<p>Nam de isto magna dissensio est. Hoc non est positum in nostra actione. Hoc ipsum elegantius poni meliusque potuit. Beatus sibi videtur esse moriens. Illud non continuo, ut aeque incontentae. Id Sextilius factum negabat. </p>
|
20
|
-
<p>Duo Reges: constructio interrete. Conferam tecum, quam cuique verso rem subicias; Conferam avum tuum Drusum cum C. Ostendit pedes et pectus. Age sane, inquam. Proclivi currit oratio. Si quidem, inquit, tollerem, sed relinquo. Quid ait Aristoteles reliquique Platonis alumni? Partim cursu et peragratione laetantur, congregatione aliae coetum quodam modo civitatis imitantur; </p>
|
21
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Paulum, cum regem Persem captum adduceret, eodem flumine invectio? Quodsi vultum tibi, si incessum fingeres, quo gravior viderere, non esses tui similis; Quid enim ab antiquis ex eo genere, quod ad disserendum valet, praetermissum est? </p>
|
22
|
-
<p>Ego vero isti, inquam, permitto. Septem autem illi non suo, sed populorum suffragio omnium nominati sunt. Aliter homines, aliter philosophos loqui putas oportere? Certe, nisi voluptatem tanti aestimaretis. Quamvis enim depravatae non sint, pravae tamen esse possunt. Vitiosum est enim in dividendo partem in genere numerare. Solum praeterea formosum, solum liberum, solum civem, stultost; Est, ut dicis, inquam. </p>
|
23
|
-
<p>Nam de isto magna dissensio est. Hoc non est positum in nostra actione. Hoc ipsum elegantius poni meliusque potuit. Beatus sibi videtur esse moriens. Illud non continuo, ut aeque incontentae. Id Sextilius factum negabat. </p>
|
24
|
-
<p>Duo Reges: constructio interrete. Conferam tecum, quam cuique verso rem subicias; Conferam avum tuum Drusum cum C. Ostendit pedes et pectus. Age sane, inquam. Proclivi currit oratio. Si quidem, inquit, tollerem, sed relinquo. Quid ait Aristoteles reliquique Platonis alumni? Partim cursu et peragratione laetantur, congregatione aliae coetum quodam modo civitatis imitantur; </p>
|
25
|
-
<p>Ego vero isti, inquam, permitto. Septem autem illi non suo, sed populorum suffragio omnium nominati sunt. Aliter homines, aliter philosophos loqui putas oportere? Certe, nisi voluptatem tanti aestimaretis. Quamvis enim depravatae non sint, pravae tamen esse possunt. Vitiosum est enim in dividendo partem in genere numerare. Solum praeterea formosum, solum liberum, solum civem, stultost; Est, ut dicis, inquam. </p>
|
26
|
-
<p>Nam de isto magna dissensio est. Hoc non est positum in nostra actione. Hoc ipsum elegantius poni meliusque potuit. Beatus sibi videtur esse moriens. Illud non continuo, ut aeque incontentae. Id Sextilius factum negabat. </p>
|
27
|
-
<p>Duo Reges: constructio interrete. Conferam tecum, quam cuique verso rem subicias; Conferam avum tuum Drusum cum C. Ostendit pedes et pectus. Age sane, inquam. Proclivi currit oratio. Si quidem, inquit, tollerem, sed relinquo. Quid ait Aristoteles reliquique Platonis alumni? Partim cursu et peragratione laetantur, congregatione aliae coetum quodam modo civitatis imitantur; </p>
|
28
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Paulum, cum regem Persem captum adduceret, eodem flumine invectio? Quodsi vultum tibi, si incessum fingeres, quo gravior viderere, non esses tui similis; Quid enim ab antiquis ex eo genere, quod ad disserendum valet, praetermissum est? </p>
|
29
|
-
<p>Ego vero isti, inquam, permitto. Septem autem illi non suo, sed populorum suffragio omnium nominati sunt. Aliter homines, aliter philosophos loqui putas oportere? Certe, nisi voluptatem tanti aestimaretis. Quamvis enim depravatae non sint, pravae tamen esse possunt. Vitiosum est enim in dividendo partem in genere numerare. Solum praeterea formosum, solum liberum, solum civem, stultost; Est, ut dicis, inquam. </p>
|
30
|
-
<p>Nam de isto magna dissensio est. Hoc non est positum in nostra actione. Hoc ipsum elegantius poni meliusque potuit. Beatus sibi videtur esse moriens. Illud non continuo, ut aeque incontentae. Id Sextilius factum negabat. </p>
|
31
|
-
<p>Duo Reges: constructio interrete. Conferam tecum, quam cuique verso rem subicias; Conferam avum tuum Drusum cum C. Ostendit pedes et pectus. Age sane, inquam. Proclivi currit oratio. Si quidem, inquit, tollerem, sed relinquo. Quid ait Aristoteles reliquique Platonis alumni? Partim cursu et peragratione laetantur, congregatione aliae coetum quodam modo civitatis imitantur; </p>
|
32
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Paulum, cum regem Persem captum adduceret, eodem flumine invectio? Quodsi vultum tibi, si incessum fingeres, quo gravior viderere, non esses tui similis; Quid enim ab antiquis ex eo genere, quod ad disserendum valet, praetermissum est? </p>
|
33
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Paulum, cum regem Persem captum adduceret, eodem flumine invectio? Quodsi vultum tibi, si incessum fingeres, quo gravior viderere, non esses tui similis; Quid enim ab antiquis ex eo genere, quod ad disserendum valet, praetermissum est? </p>
|
34
|
-
<p>Ego vero isti, inquam, permitto. Septem autem illi non suo, sed populorum suffragio omnium nominati sunt. Aliter homines, aliter philosophos loqui putas oportere? Certe, nisi voluptatem tanti aestimaretis. Quamvis enim depravatae non sint, pravae tamen esse possunt. Vitiosum est enim in dividendo partem in genere numerare. Solum praeterea formosum, solum liberum, solum civem, stultost; Est, ut dicis, inquam. </p>
|
35
|
-
<p>Nam de isto magna dissensio est. Hoc non est positum in nostra actione. Hoc ipsum elegantius poni meliusque potuit. Beatus sibi videtur esse moriens. Illud non continuo, ut aeque incontentae. Id Sextilius factum negabat. </p>
|
36
|
-
<p>Duo Reges: constructio interrete. Conferam tecum, quam cuique verso rem subicias; Conferam avum tuum Drusum cum C. Ostendit pedes et pectus. Age sane, inquam. Proclivi currit oratio. Si quidem, inquit, tollerem, sed relinquo. Quid ait Aristoteles reliquique Platonis alumni? Partim cursu et peragratione laetantur, congregatione aliae coetum quodam modo civitatis imitantur; </p>
|
37
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Paulum, cum regem Persem captum adduceret, eodem flumine invectio? Quodsi vultum tibi, si incessum fingeres, quo gravior viderere, non esses tui similis; Quid enim ab antiquis ex eo genere, quod ad disserendum valet, praetermissum est? </p>
|
38
|
-
<p>Ego vero isti, inquam, permitto. Septem autem illi non suo, sed populorum suffragio omnium nominati sunt. Aliter homines, aliter philosophos loqui putas oportere? Certe, nisi voluptatem tanti aestimaretis. Quamvis enim depravatae non sint, pravae tamen esse possunt. Vitiosum est enim in dividendo partem in genere numerare. Solum praeterea formosum, solum liberum, solum civem, stultost; Est, ut dicis, inquam. </p>
|
39
|
-
<p>Nam de isto magna dissensio est. Hoc non est positum in nostra actione. Hoc ipsum elegantius poni meliusque potuit. Beatus sibi videtur esse moriens. Illud non continuo, ut aeque incontentae. Id Sextilius factum negabat. </p>
|
40
|
-
<p>Duo Reges: constructio interrete. Conferam tecum, quam cuique verso rem subicias; Conferam avum tuum Drusum cum C. Ostendit pedes et pectus. Age sane, inquam. Proclivi currit oratio. Si quidem, inquit, tollerem, sed relinquo. Quid ait Aristoteles reliquique Platonis alumni? Partim cursu et peragratione laetantur, congregatione aliae coetum quodam modo civitatis imitantur; </p>
|
41
|
-
<p>Ego vero isti, inquam, permitto. Septem autem illi non suo, sed populorum suffragio omnium nominati sunt. Aliter homines, aliter philosophos loqui putas oportere? Certe, nisi voluptatem tanti aestimaretis. Quamvis enim depravatae non sint, pravae tamen esse possunt. Vitiosum est enim in dividendo partem in genere numerare. Solum praeterea formosum, solum liberum, solum civem, stultost; Est, ut dicis, inquam. </p>
|
42
|
-
<p>Nam de isto magna dissensio est. Hoc non est positum in nostra actione. Hoc ipsum elegantius poni meliusque potuit. Beatus sibi videtur esse moriens. Illud non continuo, ut aeque incontentae. Id Sextilius factum negabat. </p>
|
43
|
-
<p>Duo Reges: constructio interrete. Conferam tecum, quam cuique verso rem subicias; Conferam avum tuum Drusum cum C. Ostendit pedes et pectus. Age sane, inquam. Proclivi currit oratio. Si quidem, inquit, tollerem, sed relinquo. Quid ait Aristoteles reliquique Platonis alumni? Partim cursu et peragratione laetantur, congregatione aliae coetum quodam modo civitatis imitantur; </p>
|
44
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Paulum, cum regem Persem captum adduceret, eodem flumine invectio? Quodsi vultum tibi, si incessum fingeres, quo gravior viderere, non esses tui similis; Quid enim ab antiquis ex eo genere, quod ad disserendum valet, praetermissum est? </p>
|
45
|
-
<p>Ego vero isti, inquam, permitto. Septem autem illi non suo, sed populorum suffragio omnium nominati sunt. Aliter homines, aliter philosophos loqui putas oportere? Certe, nisi voluptatem tanti aestimaretis. Quamvis enim depravatae non sint, pravae tamen esse possunt. Vitiosum est enim in dividendo partem in genere numerare. Solum praeterea formosum, solum liberum, solum civem, stultost; Est, ut dicis, inquam. </p>
|
46
|
-
<p>Nam de isto magna dissensio est. Hoc non est positum in nostra actione. Hoc ipsum elegantius poni meliusque potuit. Beatus sibi videtur esse moriens. Illud non continuo, ut aeque incontentae. Id Sextilius factum negabat. </p>
|
47
|
-
<p>Duo Reges: constructio interrete. Conferam tecum, quam cuique verso rem subicias; Conferam avum tuum Drusum cum C. Ostendit pedes et pectus. Age sane, inquam. Proclivi currit oratio. Si quidem, inquit, tollerem, sed relinquo. Quid ait Aristoteles reliquique Platonis alumni? Partim cursu et peragratione laetantur, congregatione aliae coetum quodam modo civitatis imitantur; </p>
|
48
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Paulum, cum regem Persem captum adduceret, eodem flumine invectio? Quodsi vultum tibi, si incessum fingeres, quo gravior viderere, non esses tui similis; Quid enim ab antiquis ex eo genere, quod ad disserendum valet, praetermissum est? </p>
|
data/spec/fixtures/new_file.txt
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Here be the content
|
@@ -1 +0,0 @@
|
|
1
|
-
Here be moar content
|
data/spec/fixtures/upload.png
DELETED
Binary file
|
data/spec/fixtures/user.json
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"login": "sferik",
|
3
|
-
"id": 10308,
|
4
|
-
"avatar_url": "https://secure.gravatar.com/avatar/1f74b13f1e5c6c69cb5d7fbaabb1e2cb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png",
|
5
|
-
"gravatar_id": "1f74b13f1e5c6c69cb5d7fbaabb1e2cb",
|
6
|
-
"url": "https://api.github.com/users/sferik",
|
7
|
-
"html_url": "https://github.com/sferik",
|
8
|
-
"followers_url": "https://api.github.com/users/sferik/followers",
|
9
|
-
"following_url": "https://api.github.com/users/sferik/following",
|
10
|
-
"gists_url": "https://api.github.com/users/sferik/gists{/gist_id}",
|
11
|
-
"starred_url": "https://api.github.com/users/sferik/starred{/owner}{/repo}",
|
12
|
-
"subscriptions_url": "https://api.github.com/users/sferik/subscriptions",
|
13
|
-
"organizations_url": "https://api.github.com/users/sferik/orgs",
|
14
|
-
"repos_url": "https://api.github.com/users/sferik/repos",
|
15
|
-
"events_url": "https://api.github.com/users/sferik/events{/privacy}",
|
16
|
-
"received_events_url": "https://api.github.com/users/sferik/received_events",
|
17
|
-
"type": "User",
|
18
|
-
"name": "Erik Michaels-Ober",
|
19
|
-
"company": "",
|
20
|
-
"blog": "http://twitter.com/sferik",
|
21
|
-
"location": "San Francisco, CA",
|
22
|
-
"email": "sferik@gmail.com",
|
23
|
-
"hireable": false,
|
24
|
-
"bio": "",
|
25
|
-
"public_repos": 67,
|
26
|
-
"followers": 639,
|
27
|
-
"following": 102,
|
28
|
-
"created_at": "2008-05-14T20:36:12Z",
|
29
|
-
"updated_at": "2013-04-22T14:52:49Z",
|
30
|
-
"public_gists": 52
|
31
|
-
}
|
data/spec/helper.rb
DELETED
@@ -1,133 +0,0 @@
|
|
1
|
-
require 'simplecov'
|
2
|
-
require 'coveralls'
|
3
|
-
|
4
|
-
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
5
|
-
SimpleCov::Formatter::HTMLFormatter,
|
6
|
-
Coveralls::SimpleCov::Formatter
|
7
|
-
]
|
8
|
-
SimpleCov.start
|
9
|
-
|
10
|
-
require 'json'
|
11
|
-
require 'octokit'
|
12
|
-
require 'rspec'
|
13
|
-
require 'webmock/rspec'
|
14
|
-
|
15
|
-
WebMock.disable_net_connect!(:allow => 'coveralls.io')
|
16
|
-
|
17
|
-
RSpec.configure do |config|
|
18
|
-
config.treat_symbols_as_metadata_keys_with_true_values = true
|
19
|
-
end
|
20
|
-
|
21
|
-
require 'vcr'
|
22
|
-
VCR.configure do |c|
|
23
|
-
c.configure_rspec_metadata!
|
24
|
-
c.filter_sensitive_data("<GITHUB_LOGIN>") do
|
25
|
-
ENV['OCTOKIT_TEST_GITHUB_LOGIN']
|
26
|
-
end
|
27
|
-
c.filter_sensitive_data("<GITHUB_PASSWORD>") do
|
28
|
-
ENV['OCTOKIT_TEST_GITHUB_PASSWORD']
|
29
|
-
end
|
30
|
-
c.filter_sensitive_data("<<ACCESS_TOKEN>>") do
|
31
|
-
ENV['OCTOKIT_TEST_GITHUB_TOKEN']
|
32
|
-
end
|
33
|
-
c.filter_sensitive_data("<GITHUB_CLIENT_ID>") do
|
34
|
-
ENV['OCTOKIT_TEST_GITHUB_CLIENT_ID']
|
35
|
-
end
|
36
|
-
c.filter_sensitive_data("<GITHUB_CLIENT_SECRET>") do
|
37
|
-
ENV['OCTOKIT_TEST_GITHUB_CLIENT_SECRET']
|
38
|
-
end
|
39
|
-
c.default_cassette_options = {
|
40
|
-
:serialize_with => :json,
|
41
|
-
# TODO: Track down UTF-8 issue and remove
|
42
|
-
:preserve_exact_body_bytes => true,
|
43
|
-
:decode_compressed_response => true,
|
44
|
-
:record => ENV['TRAVIS'] ? :none : :once
|
45
|
-
}
|
46
|
-
c.cassette_library_dir = 'spec/cassettes'
|
47
|
-
c.hook_into :webmock
|
48
|
-
end
|
49
|
-
|
50
|
-
def test_github_login
|
51
|
-
ENV.fetch 'OCTOKIT_TEST_GITHUB_LOGIN'
|
52
|
-
end
|
53
|
-
|
54
|
-
def test_github_password
|
55
|
-
ENV.fetch 'OCTOKIT_TEST_GITHUB_PASSWORD'
|
56
|
-
end
|
57
|
-
|
58
|
-
def test_github_token
|
59
|
-
ENV.fetch 'OCTOKIT_TEST_GITHUB_TOKEN'
|
60
|
-
end
|
61
|
-
|
62
|
-
def test_github_client_id
|
63
|
-
ENV.fetch 'OCTOKIT_TEST_GITHUB_CLIENT_ID'
|
64
|
-
end
|
65
|
-
|
66
|
-
def test_github_client_secret
|
67
|
-
ENV.fetch 'OCTOKIT_TEST_GITHUB_CLIENT_SECRET'
|
68
|
-
end
|
69
|
-
|
70
|
-
def stub_delete(url)
|
71
|
-
stub_request(:delete, github_url(url))
|
72
|
-
end
|
73
|
-
|
74
|
-
def stub_get(url)
|
75
|
-
stub_request(:get, github_url(url))
|
76
|
-
end
|
77
|
-
|
78
|
-
def stub_head(url)
|
79
|
-
stub_request(:head, github_url(url))
|
80
|
-
end
|
81
|
-
|
82
|
-
def stub_patch(url)
|
83
|
-
stub_request(:patch, github_url(url))
|
84
|
-
end
|
85
|
-
|
86
|
-
def stub_post(url)
|
87
|
-
stub_request(:post, github_url(url))
|
88
|
-
end
|
89
|
-
|
90
|
-
def stub_put(url)
|
91
|
-
stub_request(:put, github_url(url))
|
92
|
-
end
|
93
|
-
|
94
|
-
def fixture_path
|
95
|
-
File.expand_path("../fixtures", __FILE__)
|
96
|
-
end
|
97
|
-
|
98
|
-
def fixture(file)
|
99
|
-
File.new(fixture_path + '/' + file)
|
100
|
-
end
|
101
|
-
|
102
|
-
def json_response(file)
|
103
|
-
{
|
104
|
-
:body => fixture(file),
|
105
|
-
:headers => {
|
106
|
-
:content_type => 'application/json; charset=utf-8'
|
107
|
-
}
|
108
|
-
}
|
109
|
-
end
|
110
|
-
|
111
|
-
def github_url(url)
|
112
|
-
url =~ /^http/ ? url : "https://api.github.com#{url}"
|
113
|
-
end
|
114
|
-
|
115
|
-
def basic_github_url(path, options = {})
|
116
|
-
login = options.fetch(:login, test_github_login)
|
117
|
-
password = options.fetch(:password, test_github_password)
|
118
|
-
|
119
|
-
"https://#{login}:#{password}@api.github.com#{path}"
|
120
|
-
end
|
121
|
-
|
122
|
-
def basic_auth_client(login = test_github_login, password = test_github_password )
|
123
|
-
client = Octokit.client
|
124
|
-
client.login = test_github_login
|
125
|
-
client.password = test_github_password
|
126
|
-
|
127
|
-
client
|
128
|
-
end
|
129
|
-
|
130
|
-
def oauth_client
|
131
|
-
Octokit::Client.new(:access_token => ENV.fetch('OCTOKIT_TEST_GITHUB_TOKEN'))
|
132
|
-
end
|
133
|
-
|
@@ -1,118 +0,0 @@
|
|
1
|
-
require 'helper'
|
2
|
-
|
3
|
-
describe Octokit::Client::Authorizations do
|
4
|
-
|
5
|
-
before do
|
6
|
-
Octokit.reset!
|
7
|
-
@client = basic_auth_client
|
8
|
-
end
|
9
|
-
|
10
|
-
describe ".create_authorization", :vcr do
|
11
|
-
context 'without :idempotent => true' do
|
12
|
-
it "creates an API authorization" do
|
13
|
-
authorization = @client.create_authorization
|
14
|
-
expect(authorization.app.name).to_not be_nil
|
15
|
-
assert_requested :post, basic_github_url("/authorizations")
|
16
|
-
end
|
17
|
-
|
18
|
-
it "creates a new API authorization each time" do
|
19
|
-
first_authorization = @client.create_authorization
|
20
|
-
second_authorization = @client.create_authorization
|
21
|
-
expect(first_authorization.id).to_not eq second_authorization.id
|
22
|
-
end
|
23
|
-
|
24
|
-
it "creates a new authorization with options" do
|
25
|
-
info = {
|
26
|
-
:scopes => ["gist"],
|
27
|
-
}
|
28
|
-
authorization = @client.create_authorization info
|
29
|
-
expect(authorization.scopes).to be_kind_of Array
|
30
|
-
assert_requested :post, basic_github_url("/authorizations")
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
context 'with :idempotent => true' do
|
35
|
-
it "creates a new authorization with options" do
|
36
|
-
authorization = @client.create_authorization \
|
37
|
-
:idempotent => true,
|
38
|
-
:client_id => test_github_client_id,
|
39
|
-
:client_secret => test_github_client_secret,
|
40
|
-
:scopes => %w(gist)
|
41
|
-
expect(authorization.scopes).to be_kind_of Array
|
42
|
-
assert_requested :put, basic_github_url("/authorizations/clients/#{test_github_client_id}")
|
43
|
-
end
|
44
|
-
|
45
|
-
it 'returns an existing API authorization if one already exists' do
|
46
|
-
first_authorization = @client.create_authorization \
|
47
|
-
:idempotent => true,
|
48
|
-
:client_id => test_github_client_id,
|
49
|
-
:client_secret => test_github_client_secret
|
50
|
-
second_authorization = @client.create_authorization \
|
51
|
-
:idempotent => true,
|
52
|
-
:client_id => test_github_client_id,
|
53
|
-
:client_secret => test_github_client_secret
|
54
|
-
expect(first_authorization.id).to eql second_authorization.id
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end # .create_authorization
|
58
|
-
|
59
|
-
describe ".authorizations", :vcr do
|
60
|
-
it "lists existing authorizations" do
|
61
|
-
authorizations = @client.authorizations
|
62
|
-
expect(authorizations).to be_kind_of Array
|
63
|
-
assert_requested :get, basic_github_url("/authorizations")
|
64
|
-
end
|
65
|
-
end # .authorizations
|
66
|
-
|
67
|
-
describe ".authorization", :vcr do
|
68
|
-
it "returns a single authorization" do
|
69
|
-
authorization = @client.create_authorization
|
70
|
-
fetched = @client.authorization(authorization['id'])
|
71
|
-
assert_requested :get, basic_github_url("/authorizations/#{authorization.id}")
|
72
|
-
end
|
73
|
-
end # .authorization
|
74
|
-
|
75
|
-
describe ".update_authorization", :vcr do
|
76
|
-
it "updates and existing authorization" do
|
77
|
-
authorization = @client.create_authorization
|
78
|
-
updated = @client.update_authorization(authorization.id, :add_scopes => ['repo:status'])
|
79
|
-
expect(updated.scopes).to include 'repo:status'
|
80
|
-
assert_requested :patch, basic_github_url("/authorizations/#{authorization.id}")
|
81
|
-
end
|
82
|
-
end # .update_authorization
|
83
|
-
|
84
|
-
describe ".scopes", :vcr do
|
85
|
-
it "checks the scopes on the current token" do
|
86
|
-
authorization = @client.create_authorization
|
87
|
-
token_client = Octokit::Client.new(:access_token => authorization.token)
|
88
|
-
expect(token_client.scopes).to be_kind_of Array
|
89
|
-
assert_requested :get, github_url("/user")
|
90
|
-
end
|
91
|
-
it "checks the scopes on a one-off token" do
|
92
|
-
authorization = @client.create_authorization
|
93
|
-
Octokit.reset!
|
94
|
-
expect(Octokit.scopes(authorization.token)).to be_kind_of Array
|
95
|
-
assert_requested :get, github_url("/user")
|
96
|
-
end
|
97
|
-
end # .scopes
|
98
|
-
|
99
|
-
describe ".delete_authorization", :vcr do
|
100
|
-
it "deletes an existing authorization" do
|
101
|
-
VCR.eject_cassette
|
102
|
-
VCR.use_cassette 'delete_authorization' do
|
103
|
-
authorization = @client.create_authorization
|
104
|
-
result = @client.delete_authorization(authorization.id)
|
105
|
-
expect(result).to eq true
|
106
|
-
assert_requested :delete, basic_github_url("/authorizations/#{authorization.id}")
|
107
|
-
end
|
108
|
-
end
|
109
|
-
end # .delete_authorization
|
110
|
-
|
111
|
-
describe '.authorize_url' do
|
112
|
-
it "returns the authorize_url" do
|
113
|
-
url = Octokit.authorize_url('id_here', 'secret_here')
|
114
|
-
expect(url).to eq('https://github.com/login/oauth/authorize?client_id=id_here&client_secret=secret_here')
|
115
|
-
end
|
116
|
-
end # .authorize_url
|
117
|
-
|
118
|
-
end
|
@@ -1,62 +0,0 @@
|
|
1
|
-
require 'helper'
|
2
|
-
|
3
|
-
describe Octokit::Client::CommitComments do
|
4
|
-
|
5
|
-
before do
|
6
|
-
Octokit.reset!
|
7
|
-
@client = oauth_client
|
8
|
-
@commit = @client.commits('api-playground/api-sandbox').last.rels[:self].get.data
|
9
|
-
@commit_comment = @client.create_commit_comment \
|
10
|
-
"api-playground/api-sandbox",
|
11
|
-
@commit.sha, ":metal:\n:sparkles:\n:cake:",
|
12
|
-
@commit.files.last.filename
|
13
|
-
end
|
14
|
-
|
15
|
-
describe ".list_commit_comments", :vcr do
|
16
|
-
it "returns a list of all commit comments" do
|
17
|
-
commit_comments = @client.list_commit_comments("sferik/rails_admin")
|
18
|
-
expect(commit_comments.first.user.login).to eq("sferik")
|
19
|
-
assert_requested :get, github_url("/repos/sferik/rails_admin/comments")
|
20
|
-
end
|
21
|
-
end # .list_commit_comments
|
22
|
-
|
23
|
-
describe ".commit_comments", :vcr do
|
24
|
-
it "returns a list of comments for a specific commit" do
|
25
|
-
commit_comments = @client.commit_comments("sferik/rails_admin", "629e9fd9d4df25528e84d31afdc8ebeb0f56fbb3")
|
26
|
-
expect(commit_comments.first.user.login).to eq("bbenezech")
|
27
|
-
assert_requested :get, github_url("/repos/sferik/rails_admin/commits/629e9fd9d4df25528e84d31afdc8ebeb0f56fbb3/comments")
|
28
|
-
end
|
29
|
-
end # .commit_comments
|
30
|
-
|
31
|
-
describe ".commit_comment", :vcr do
|
32
|
-
it "returns a single commit comment" do
|
33
|
-
commit = @client.commit_comment("sferik/rails_admin", "861907")
|
34
|
-
expect(commit.user.login).to eq("bbenezech")
|
35
|
-
assert_requested :get, github_url("/repos/sferik/rails_admin/comments/861907")
|
36
|
-
end
|
37
|
-
end # .commit_comment
|
38
|
-
|
39
|
-
describe ".create_commit_comment", :vcr do
|
40
|
-
it "creates a commit comment" do
|
41
|
-
expect(@commit_comment.user.login).to eq test_github_login
|
42
|
-
assert_requested :post, github_url("/repos/api-playground/api-sandbox/commits/#{@commit.sha}/comments")
|
43
|
-
end
|
44
|
-
end # .create_commit_comment
|
45
|
-
|
46
|
-
describe ".update_commit_comment", :vcr do
|
47
|
-
it "updates a commit comment" do
|
48
|
-
updated_comment = @client.update_commit_comment("api-playground/api-sandbox", @commit_comment.id, ":penguin:")
|
49
|
-
expect(updated_comment.body).to eq ":penguin:"
|
50
|
-
assert_requested :patch, github_url("/repos/api-playground/api-sandbox/comments/#{@commit_comment.id}")
|
51
|
-
end
|
52
|
-
end # .update_commit_comment
|
53
|
-
|
54
|
-
describe ".delete_commit_comment", :vcr do
|
55
|
-
it "deletes a commit comment" do
|
56
|
-
result = @client.delete_commit_comment("api-playground/api-sandbox", @commit_comment.id)
|
57
|
-
expect(result).to be_true
|
58
|
-
assert_requested :delete, github_url("/repos/api-playground/api-sandbox/comments/#{@commit_comment.id}")
|
59
|
-
end
|
60
|
-
end # .delete_commit_comment
|
61
|
-
|
62
|
-
end
|
@@ -1,139 +0,0 @@
|
|
1
|
-
require 'helper'
|
2
|
-
|
3
|
-
describe Octokit::Client::Commits do
|
4
|
-
|
5
|
-
before do
|
6
|
-
Octokit.reset!
|
7
|
-
@client = oauth_client
|
8
|
-
end
|
9
|
-
|
10
|
-
describe ".commits", :vcr do
|
11
|
-
it "returns all commits" do
|
12
|
-
commits = @client.commits("sferik/rails_admin")
|
13
|
-
expect(commits.first.author).to_not be_nil
|
14
|
-
assert_requested :get, github_url("/repos/sferik/rails_admin/commits")
|
15
|
-
end
|
16
|
-
it "handles branch or sha argument" do
|
17
|
-
commits = @client.commits("sferik/rails_admin", "master")
|
18
|
-
assert_requested :get, github_url("/repos/sferik/rails_admin/commits?sha=master")
|
19
|
-
end
|
20
|
-
it "handles the sha option" do
|
21
|
-
commits = @client.commits("sferik/rails_admin", :sha => "master")
|
22
|
-
assert_requested :get, github_url("/repos/sferik/rails_admin/commits?sha=master")
|
23
|
-
end
|
24
|
-
end # .commits
|
25
|
-
|
26
|
-
describe ".commits_on", :vcr do
|
27
|
-
it "returns all commits on the specified date" do
|
28
|
-
commits = @client.commits_on("sferik/rails_admin", "2011-01-20")
|
29
|
-
expect(commits).to be_kind_of Array
|
30
|
-
assert_requested :get, github_url("/repos/sferik/rails_admin/commits?since=2011-01-20T00:00:00%2B00:00&until=2011-01-21T00:00:00%2B00:00")
|
31
|
-
end
|
32
|
-
it "errors if the date is invalid" do
|
33
|
-
expect { @client.commits_on "sferik/rails_admin", "A pear" }.to raise_error ArgumentError
|
34
|
-
end
|
35
|
-
it "handles branch or sha argument" do
|
36
|
-
commits = @client.commits_on("sferik/rails_admin", "2011-01-15", "master")
|
37
|
-
assert_requested :get, github_url("/repos/sferik/rails_admin/commits?sha=master&since=2011-01-15T00:00:00%2B00:00&until=2011-01-16T00:00:00%2B00:00")
|
38
|
-
end
|
39
|
-
it "handles the sha option" do
|
40
|
-
commits = @client.commits_on("sferik/rails_admin", "2011-01-15", :sha => "master")
|
41
|
-
assert_requested :get, github_url("/repos/sferik/rails_admin/commits?sha=master&since=2011-01-15T00:00:00%2B00:00&until=2011-01-16T00:00:00%2B00:00")
|
42
|
-
end
|
43
|
-
end # .commits_on
|
44
|
-
|
45
|
-
describe ".commits_since", :vcr do
|
46
|
-
it "returns all commits since the specified date" do
|
47
|
-
commits = @client.commits_since("sferik/rails_admin", "2011-01-20")
|
48
|
-
expect(commits).to be_kind_of Array
|
49
|
-
assert_requested :get, github_url("/repos/sferik/rails_admin/commits?since=2011-01-20T00:00:00%2B00:00")
|
50
|
-
end
|
51
|
-
it "errors if the date is invalid" do
|
52
|
-
expect { @client.commits_since "sferik/rails_admin", "A pear" }.to raise_error ArgumentError
|
53
|
-
end
|
54
|
-
it "handles branch or sha argument" do
|
55
|
-
commits = @client.commits_since("sferik/rails_admin", "2011-01-15", "master")
|
56
|
-
assert_requested :get, github_url("/repos/sferik/rails_admin/commits?sha=master&since=2011-01-15T00:00:00%2B00:00")
|
57
|
-
end
|
58
|
-
it "handles the sha option" do
|
59
|
-
commits = @client.commits_since("sferik/rails_admin", "2011-01-15", :sha => "master")
|
60
|
-
assert_requested :get, github_url("/repos/sferik/rails_admin/commits?sha=master&since=2011-01-15T00:00:00%2B00:00")
|
61
|
-
end
|
62
|
-
end # .commits_since
|
63
|
-
|
64
|
-
describe ".commits_before", :vcr do
|
65
|
-
it "returns all commits until the specified date" do
|
66
|
-
commits = @client.commits_before("sferik/rails_admin", "2011-01-20")
|
67
|
-
expect(commits).to be_kind_of Array
|
68
|
-
assert_requested :get, github_url("/repos/sferik/rails_admin/commits?until=2011-01-20T00:00:00%2B00:00")
|
69
|
-
end
|
70
|
-
it "errors if the date is invalid" do
|
71
|
-
expect { @client.commits_before "sferik/rails_admin", "A pear" }.to raise_error ArgumentError
|
72
|
-
end
|
73
|
-
it "handles branch or sha argument" do
|
74
|
-
commits = @client.commits_before("sferik/rails_admin", "2011-01-15", "master")
|
75
|
-
assert_requested :get, github_url("/repos/sferik/rails_admin/commits?sha=master&until=2011-01-15T00:00:00%2B00:00")
|
76
|
-
end
|
77
|
-
it "handles the sha option" do
|
78
|
-
commits = @client.commits_before("sferik/rails_admin", "2011-01-15", :sha => "master")
|
79
|
-
assert_requested :get, github_url("/repos/sferik/rails_admin/commits?sha=master&until=2011-01-15T00:00:00%2B00:00")
|
80
|
-
end
|
81
|
-
end # .commits_before
|
82
|
-
|
83
|
-
describe ".commits_between", :vcr do
|
84
|
-
it "returns all commits until the specified date" do
|
85
|
-
commits = @client.commits_between("sferik/rails_admin", "2011-01-20", "2013-01-20")
|
86
|
-
expect(commits).to be_kind_of Array
|
87
|
-
assert_requested :get, github_url("/repos/sferik/rails_admin/commits?since=2011-01-20T00:00:00%2B00:00&until=2013-01-20T00:00:00%2B00:00")
|
88
|
-
end
|
89
|
-
it "errors if the date is invalid" do
|
90
|
-
expect { @client.commits_between "sferik/rails_admin", "A pear" }.to raise_error ArgumentError
|
91
|
-
end
|
92
|
-
it "handles branch or sha argument" do
|
93
|
-
commits = @client.commits_between("sferik/rails_admin", "2011-01-20", "2013-01-20", "master")
|
94
|
-
assert_requested :get, github_url("/repos/sferik/rails_admin/commits?sha=master&since=2011-01-20T00:00:00%2B00:00&until=2013-01-20T00:00:00%2B00:00")
|
95
|
-
end
|
96
|
-
it "handles the sha option" do
|
97
|
-
commits = @client.commits_between("sferik/rails_admin", "2011-01-20", "2013-01-20", :sha => "master")
|
98
|
-
assert_requested :get, github_url("/repos/sferik/rails_admin/commits?sha=master&since=2011-01-20T00:00:00%2B00:00&until=2013-01-20T00:00:00%2B00:00")
|
99
|
-
end
|
100
|
-
end # .commits_between
|
101
|
-
|
102
|
-
describe ".commit", :vcr do
|
103
|
-
it "returns a commit" do
|
104
|
-
commit = @client.commit("sferik/rails_admin", "3cdfabd973bc3caac209cba903cfdb3bf6636bcd")
|
105
|
-
expect(commit.author.login).to eq 'caboteria'
|
106
|
-
assert_requested :get, github_url("/repos/sferik/rails_admin/commits/3cdfabd973bc3caac209cba903cfdb3bf6636bcd")
|
107
|
-
end
|
108
|
-
end # .commit
|
109
|
-
|
110
|
-
describe ".create_commit", :vcr do
|
111
|
-
it "creates a commit" do
|
112
|
-
last_commit = @client.commits('api-playground/api-sandbox').last
|
113
|
-
commit = @client.create_commit("api-playground/api-sandbox", "My commit message", last_commit.commit.tree.sha, last_commit.sha)
|
114
|
-
assert_requested :post, github_url("/repos/api-playground/api-sandbox/git/commits")
|
115
|
-
end
|
116
|
-
end # .create_commit
|
117
|
-
|
118
|
-
describe ".merge", :vcr do
|
119
|
-
it "merges a branch into another" do
|
120
|
-
begin
|
121
|
-
@client.delete_ref("api-playground/api-sandbox", "heads/branch-to-merge")
|
122
|
-
rescue Octokit::UnprocessableEntity
|
123
|
-
end
|
124
|
-
last_commit = @client.commits('api-playground/api-sandbox').last
|
125
|
-
branch = @client.create_ref("api-playground/api-sandbox", "heads/branch-to-merge", last_commit.sha)
|
126
|
-
merge = @client.merge("api-playground/api-sandbox", "master", "branch-to-merge", :commit_message => "Testing the merge API")
|
127
|
-
assert_requested :post, github_url("/repos/api-playground/api-sandbox/merges")
|
128
|
-
end
|
129
|
-
end # .merge
|
130
|
-
|
131
|
-
describe ".compare", :vcr do
|
132
|
-
it "returns a comparison" do
|
133
|
-
comparison = @client.compare("gvaughn/octokit", '0e0d7ae299514da692eb1cab741562c253d44188', 'b7b37f75a80b8e84061cd45b246232ad958158f5')
|
134
|
-
expect(comparison.base_commit.sha).to eq('0e0d7ae299514da692eb1cab741562c253d44188')
|
135
|
-
expect(comparison.merge_base_commit.sha).to eq('b7b37f75a80b8e84061cd45b246232ad958158f5')
|
136
|
-
assert_requested :get, github_url("/repos/gvaughn/octokit/compare/0e0d7ae299514da692eb1cab741562c253d44188...b7b37f75a80b8e84061cd45b246232ad958158f5")
|
137
|
-
end
|
138
|
-
end # .compare
|
139
|
-
end
|