houston-core 0.5.0.beta1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +0 -2
- data/.gitignore +3 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +63 -62
- data/README.md +13 -121
- data/app/adapters/houston/adapters/ci_server/errors.rb +4 -4
- data/app/adapters/houston/adapters/ci_server/jenkins_adapter/job.rb +50 -50
- data/app/adapters/houston/adapters/ci_server/jenkins_adapter.rb +4 -4
- data/app/adapters/houston/adapters/ci_server/none_adapter/job.rb +5 -5
- data/app/adapters/houston/adapters/ci_server/none_adapter.rb +4 -4
- data/app/adapters/houston/adapters/deployment/engineyard.rb +20 -20
- data/app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb +14 -14
- data/app/adapters/houston/adapters/error_tracker/errbit_adapter/connection.rb +41 -41
- data/app/adapters/houston/adapters/error_tracker/errbit_adapter/notice.rb +6 -6
- data/app/adapters/houston/adapters/error_tracker/errbit_adapter/problem.rb +25 -25
- data/app/adapters/houston/adapters/error_tracker/errbit_adapter.rb +20 -20
- data/app/adapters/houston/adapters/error_tracker/none_adapter.rb +8 -8
- data/app/adapters/houston/adapters/error_tracker/null_app.rb +13 -13
- data/app/adapters/houston/adapters/ticket_tracker/errors.rb +5 -5
- data/app/adapters/houston/adapters/ticket_tracker/github_adapter/connection.rb +41 -41
- data/app/adapters/houston/adapters/ticket_tracker/github_adapter/issue.rb +22 -22
- data/app/adapters/houston/adapters/ticket_tracker/github_adapter.rb +7 -7
- data/app/adapters/houston/adapters/ticket_tracker/houston_adapter/connection.rb +13 -13
- data/app/adapters/houston/adapters/ticket_tracker/houston_adapter/ticket.rb +15 -15
- data/app/adapters/houston/adapters/ticket_tracker/houston_adapter.rb +4 -4
- data/app/adapters/houston/adapters/ticket_tracker/none_adapter.rb +4 -4
- data/app/adapters/houston/adapters/ticket_tracker/null_connection.rb +13 -13
- data/app/adapters/houston/adapters/ticket_tracker/null_ticket.rb +19 -19
- data/app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter/connection.rb +54 -54
- data/app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter/milestone.rb +10 -10
- data/app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter/ticket.rb +59 -59
- data/app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter.rb +9 -9
- data/app/adapters/houston/adapters/version_control/commit.rb +4 -4
- data/app/adapters/houston/adapters/version_control/errors.rb +9 -9
- data/app/adapters/houston/adapters/version_control/git_adapter/github_repo.rb +15 -15
- data/app/adapters/houston/adapters/version_control/git_adapter/remote_repo.rb +53 -30
- data/app/adapters/houston/adapters/version_control/git_adapter/repo.rb +60 -55
- data/app/adapters/houston/adapters/version_control/git_adapter.rb +22 -22
- data/app/adapters/houston/adapters/version_control/none_adapter.rb +4 -4
- data/app/adapters/houston/adapters/version_control/null_commit.rb +4 -4
- data/app/adapters/houston/adapters/version_control/null_repo.rb +18 -18
- data/app/adapters/houston/adapters.rb +10 -10
- data/app/assets/javascripts/app/boot.coffee +5 -5
- data/app/assets/javascripts/app/infinite_scroll.coffee +6 -6
- data/app/assets/javascripts/app/models/commit.coffee +1 -1
- data/app/assets/javascripts/app/models/release.coffee +1 -1
- data/app/assets/javascripts/app/models/task.coffee +1 -1
- data/app/assets/javascripts/app/models/tester.coffee +1 -1
- data/app/assets/javascripts/app/models/testing_note.coffee +2 -2
- data/app/assets/javascripts/app/models/ticket.coffee +24 -24
- data/app/assets/javascripts/app/models/user.coffee +1 -1
- data/app/assets/javascripts/app/releases.coffee +6 -6
- data/app/assets/javascripts/app/stacked_area_graph.coffee +22 -22
- data/app/assets/javascripts/app/stacked_bar_graph.coffee +20 -20
- data/app/assets/javascripts/app/table_row_expander.coffee +10 -10
- data/app/assets/javascripts/app/ticket_tracker_refresh.coffee +19 -19
- data/app/assets/javascripts/app/views/_show_sprint_view.coffee +14 -14
- data/app/assets/javascripts/app/views/_tickets_view.coffee +8 -8
- data/app/assets/javascripts/app/views/all_tickets_view.coffee +1 -2
- data/app/assets/javascripts/app/views/commit_view.coffee +2 -2
- data/app/assets/javascripts/app/views/edit_sprint_view.coffee +36 -36
- data/app/assets/javascripts/app/views/find_or_create_ticket_view.coffee +3 -3
- data/app/assets/javascripts/app/views/keyboard_shortcuts_modal.coffee +14 -14
- data/app/assets/javascripts/app/views/new_ticket_modal.coffee +4 -4
- data/app/assets/javascripts/app/views/new_ticket_view.coffee +34 -34
- data/app/assets/javascripts/app/views/problems_view.coffee +8 -8
- data/app/assets/javascripts/app/views/reports_view.coffee +5 -5
- data/app/assets/javascripts/app/views/testing_note_view.coffee +10 -10
- data/app/assets/javascripts/app/views/testing_report_view.coffee +7 -7
- data/app/assets/javascripts/app/views/testing_ticket_view.coffee +36 -36
- data/app/assets/javascripts/app/views/ticket_modal_view.coffee +5 -5
- data/app/assets/javascripts/core/app.coffee +22 -22
- data/app/assets/javascripts/core/burndown_chart.coffee +21 -21
- data/app/assets/javascripts/core/errors.coffee +2 -2
- data/app/assets/javascripts/core/handlebars_helpers.coffee +6 -6
- data/app/assets/javascripts/core/jquery_extensions.coffee +28 -28
- data/app/assets/javascripts/dashboard/refresher.coffee +4 -4
- data/app/assets/stylesheets/application/ansi.scss +2 -2
- data/app/assets/stylesheets/application/commit.scss +1 -1
- data/app/assets/stylesheets/application/exceptions.scss +3 -3
- data/app/assets/stylesheets/application/find_or_create_ticket.scss +2 -2
- data/app/assets/stylesheets/application/follow_up.scss +2 -2
- data/app/assets/stylesheets/application/forms.scss +2 -2
- data/app/assets/stylesheets/application/freight_train.css.scss +5 -5
- data/app/assets/stylesheets/application/full_screen.scss +2 -2
- data/app/assets/stylesheets/application/infinite_scroll.scss +1 -1
- data/app/assets/stylesheets/application/keyboard_shortcuts.scss +3 -3
- data/app/assets/stylesheets/application/markdown.scss +2 -2
- data/app/assets/stylesheets/application/navigation.scss +15 -15
- data/app/assets/stylesheets/application/new_ticket_view.scss +16 -16
- data/app/assets/stylesheets/application/omnibar.scss +6 -6
- data/app/assets/stylesheets/application/project_banner_buttons.scss +6 -6
- data/app/assets/stylesheets/application/project_tiles.scss +2 -2
- data/app/assets/stylesheets/application/projects.css.scss +3 -3
- data/app/assets/stylesheets/application/pull_requests.scss +6 -6
- data/app/assets/stylesheets/application/queue.scss +2 -2
- data/app/assets/stylesheets/application/release_form.scss +10 -10
- data/app/assets/stylesheets/application/releases.scss +32 -39
- data/app/assets/stylesheets/application/sortable_table.scss +6 -6
- data/app/assets/stylesheets/application/sprint.scss +6 -6
- data/app/assets/stylesheets/application/tables.scss +6 -6
- data/app/assets/stylesheets/application/test_run.scss +16 -16
- data/app/assets/stylesheets/application/ticket.scss +13 -13
- data/app/assets/stylesheets/application/ticket_modal.scss +19 -19
- data/app/assets/stylesheets/application/tickets.scss +2 -2
- data/app/assets/stylesheets/application/timeline.scss +30 -30
- data/app/assets/stylesheets/application/tips.scss +1 -1
- data/app/assets/stylesheets/application/typeahead.scss +4 -4
- data/app/assets/stylesheets/application/uploading.scss +13 -13
- data/app/assets/stylesheets/application/welcome.scss +3 -3
- data/app/assets/stylesheets/core/burndown_chart.scss +11 -11
- data/app/assets/stylesheets/core/misc.scss +8 -8
- data/app/assets/stylesheets/core/overrides.scss +2 -2
- data/app/assets/stylesheets/core/scores.scss +26 -26
- data/app/assets/stylesheets/dashboard/dashboard.scss +16 -16
- data/app/assets/stylesheets/print.css.scss +3 -3
- data/app/concerns/commit_synchronizer.rb +24 -24
- data/app/concerns/feature_state.rb +7 -7
- data/app/concerns/feature_support.rb +4 -4
- data/app/concerns/historical_weekly_stats.rb +4 -4
- data/app/concerns/milestone_synchronizer.rb +14 -14
- data/app/concerns/nosync.rb +4 -4
- data/app/concerns/project_adapter.rb +22 -22
- data/app/concerns/retirement.rb +7 -7
- data/app/concerns/ticket_synchronizer.rb +31 -31
- data/app/concerns/unique_add.rb +2 -2
- data/app/controllers/api/v1/sprint_tasks_controller.rb +19 -19
- data/app/controllers/api/v1/ticket_tasks_controller.rb +14 -14
- data/app/controllers/application_controller.rb +46 -40
- data/app/controllers/commits_controller.rb +10 -10
- data/app/controllers/deploys_controller.rb +11 -11
- data/app/controllers/home_controller.rb +4 -4
- data/app/controllers/jobs_controller.rb +3 -3
- data/app/controllers/oauth_consumers_controller.rb +1 -1
- data/app/controllers/omnibar_controller.rb +6 -6
- data/app/controllers/project_exceptions_controller.rb +11 -11
- data/app/controllers/project_hooks_controller.rb +7 -7
- data/app/controllers/project_options_controller.rb +8 -8
- data/app/controllers/project_pretickets_controller.rb +6 -6
- data/app/controllers/project_roles_controller.rb +7 -7
- data/app/controllers/project_tickets_controller.rb +28 -28
- data/app/controllers/project_tickets_sync_controller.rb +8 -8
- data/app/controllers/projects_controller.rb +29 -29
- data/app/controllers/releases_controller.rb +25 -25
- data/app/controllers/reports_controller.rb +36 -36
- data/app/controllers/sessions_controller.rb +2 -2
- data/app/controllers/settings_controller.rb +3 -3
- data/app/controllers/sprint_task_locks_controller.rb +11 -11
- data/app/controllers/sprints_controller.rb +25 -25
- data/app/controllers/tasks_controller.rb +10 -10
- data/app/controllers/test_runs_controller.rb +8 -8
- data/app/controllers/tester_bar_controller.rb +2 -2
- data/app/controllers/testing_notes_controller.rb +15 -15
- data/app/controllers/testing_report_controller.rb +14 -14
- data/app/controllers/tickets_controller.rb +9 -9
- data/app/controllers/uploads_controller.rb +9 -9
- data/app/controllers/user_credentials_controller.rb +4 -4
- data/app/controllers/user_options_controller.rb +6 -6
- data/app/controllers/users_controller.rb +34 -34
- data/app/controllers/welcome_controller.rb +6 -6
- data/app/helpers/ansi_helper.rb +4 -4
- data/app/helpers/application_helper.rb +26 -26
- data/app/helpers/avatar_helper.rb +12 -12
- data/app/helpers/backtrace_helper.rb +2 -2
- data/app/helpers/breadcrumbs_helper.rb +9 -9
- data/app/helpers/commit_helper.rb +16 -12
- data/app/helpers/demo_helper.rb +4 -4
- data/app/helpers/email_helper.rb +3 -3
- data/app/helpers/emoji_helper.rb +1 -1
- data/app/helpers/excel_helpers.rb +2 -2
- data/app/helpers/exposure_helper.rb +3 -3
- data/app/helpers/flash_message_helper.rb +6 -6
- data/app/helpers/maintenance_light_helper.rb +3 -3
- data/app/helpers/markdown_helper.rb +3 -3
- data/app/helpers/navigation_helper.rb +12 -12
- data/app/helpers/project_helper.rb +5 -5
- data/app/helpers/release_helper.rb +9 -9
- data/app/helpers/score_card_helper.rb +16 -16
- data/app/helpers/sprint_helper.rb +2 -2
- data/app/helpers/static_chart_helper.rb +2 -2
- data/app/helpers/test_run_helper.rb +6 -6
- data/app/helpers/ticket_helper.rb +14 -14
- data/app/helpers/timeline_helper.rb +5 -5
- data/app/helpers/url_helper.rb +26 -26
- data/app/helpers/user_helper.rb +6 -6
- data/app/helpers/version_helper.rb +4 -4
- data/app/interactors/test_run_comparer.rb +9 -9
- data/app/interactors/ticket_report.rb +7 -7
- data/app/jobs/sync_all_tickets_job.rb +13 -13
- data/app/jobs/sync_commits_job.rb +3 -3
- data/app/jobs/sync_project_tickets_job.rb +9 -9
- data/app/mailers/deploy_notification.rb +9 -9
- data/app/mailers/project_notification.rb +29 -29
- data/app/mailers/view_mailer.rb +20 -38
- data/app/models/ability.rb +21 -21
- data/app/models/activity_feed.rb +25 -25
- data/app/models/antecedent.rb +3 -3
- data/app/models/code_climate/coverage_report.rb +25 -25
- data/app/models/commit.rb +77 -82
- data/app/models/consumer_token.rb +2 -2
- data/app/models/deploy.rb +31 -27
- data/app/models/environment.rb +12 -12
- data/app/models/github/commit_status_report.rb +16 -16
- data/app/models/github/pull_request.rb +35 -12
- data/app/models/github/pull_request_event.rb +6 -5
- data/app/models/github_token.rb +2 -2
- data/app/models/historical_head.rb +2 -2
- data/app/models/key_dependency.rb +17 -17
- data/app/models/maintenance_light.rb +3 -3
- data/app/models/measurement.rb +22 -22
- data/app/models/menu_item.rb +5 -5
- data/app/models/menu_item_divider.rb +1 -1
- data/app/models/milestone.rb +27 -27
- data/app/models/output_stream.rb +4 -4
- data/app/models/post_receive_payload.rb +7 -7
- data/app/models/project.rb +93 -89
- data/app/models/project_dependencies.rb +9 -9
- data/app/models/project_dependency.rb +33 -33
- data/app/models/project_menu_item.rb +3 -3
- data/app/models/release.rb +60 -60
- data/app/models/release_change.rb +18 -18
- data/app/models/role.rb +15 -15
- data/app/models/rubygems/gem.rb +21 -21
- data/app/models/run_tests_on_post_receive.rb +36 -36
- data/app/models/setting.rb +3 -3
- data/app/models/settings.rb +8 -8
- data/app/models/source_file_coverage.rb +2 -2
- data/app/models/sprint.rb +19 -19
- data/app/models/sprint_report.rb +7 -7
- data/app/models/sprint_task.rb +8 -8
- data/app/models/static_chart/area.rb +19 -19
- data/app/models/static_chart.rb +35 -35
- data/app/models/task.rb +64 -64
- data/app/models/test_error.rb +2 -2
- data/app/models/test_result.rb +7 -0
- data/app/models/test_run.rb +75 -79
- data/app/models/test_run_statistics.rb +18 -19
- data/app/models/testing_note.rb +19 -19
- data/app/models/ticket.rb +104 -104
- data/app/models/ticket_antecedent.rb +11 -11
- data/app/models/ticket_comment.rb +6 -6
- data/app/models/ticket_committer.rb +3 -3
- data/app/models/ticket_tag.rb +6 -6
- data/app/models/user.rb +44 -44
- data/app/models/user_credentials.rb +11 -11
- data/app/models/value_statement.rb +3 -3
- data/app/presenters/commit_presenter.rb +6 -6
- data/app/presenters/one_or_many.rb +4 -4
- data/app/presenters/problem_presenter.rb +8 -8
- data/app/presenters/release_presenter.rb +4 -4
- data/app/presenters/sprint_task_presenter.rb +9 -9
- data/app/presenters/task_presenter.rb +8 -8
- data/app/presenters/tasks_excel_presenter.rb +6 -6
- data/app/presenters/tester_presenter.rb +3 -3
- data/app/presenters/testing_note_presenter.rb +4 -4
- data/app/presenters/testing_report_ticket_presenter.rb +9 -9
- data/app/presenters/ticket_presenter.rb +4 -4
- data/app/views/deploys/show.html.erb +8 -0
- data/app/views/jobs/show.html.erb +0 -34
- data/app/views/layouts/application.html.erb +1 -0
- data/app/views/layouts/minimal.html.erb +1 -0
- data/app/views/projects/_form.html.erb +0 -7
- data/app/views/releases/_form.html.erb +9 -3
- data/app/views/releases/index.html.erb +1 -1
- data/config/application.rb +1 -2
- data/config/database.yml +3 -3
- data/config/environments/production.rb +1 -1
- data/config/environments/test.rb +1 -1
- data/config/initializers/action_view_field_error_proc.rb +3 -3
- data/config/initializers/constants.rb +3 -3
- data/config/initializers/devise.rb +8 -8
- data/config/initializers/hard_coded_knowledge.rb +3 -3
- data/config/initializers/houston_async.rb +2 -2
- data/config/initializers/houston_report_exception.rb +3 -3
- data/config/initializers/houston_try.rb +3 -3
- data/config/initializers/sync_commits_on_post_receive.rb +0 -5
- data/config/routes.rb +108 -108
- data/db/migrate/20120417175450_devise_create_users.rb +2 -2
- data/db/migrate/20120501230243_add_unfuddle_id_to_tickets.rb +1 -1
- data/db/migrate/20120504143615_link_tickets_and_releases.rb +3 -3
- data/db/migrate/20120626150333_add_last_release_at_to_tickets.rb +2 -2
- data/db/migrate/20120626151320_link_tickets_and_commits.rb +2 -2
- data/db/migrate/20120626152020_add_committer_email_to_commits.rb +2 -2
- data/db/migrate/20120715230922_create_user_notifications.rb +3 -3
- data/db/migrate/20120716010743_add_user_to_releases.rb +3 -3
- data/db/migrate/20120726231754_link_projects_and_maintainers.rb +2 -2
- data/db/migrate/20120826022643_add_authentication_token_to_users.rb +2 -2
- data/db/migrate/20120920023251_add_administrator_to_users.rb +3 -3
- data/db/migrate/20121026014457_split_users_name_into_first_and_last.rb +2 -2
- data/db/migrate/20121027160548_create_deploys.rb +1 -1
- data/db/migrate/20121222170917_add_version_control_adapter_to_projects.rb +2 -2
- data/db/migrate/20121222223635_add_ticket_tracking_adapter_to_projects.rb +2 -2
- data/db/migrate/20121224212623_rename_environments.rb +3 -3
- data/db/migrate/20121225175106_replace_environment_id_with_environment_name.rb +8 -8
- data/db/migrate/20121230174234_create_test_runs.rb +3 -3
- data/db/migrate/20130119203853_remove_cached_queries_from_projects.rb +1 -1
- data/db/migrate/20130119204608_add_extended_attributes_to_tickets.rb +10 -10
- data/db/migrate/20130120182026_create_ticket_prerequisites.rb +2 -2
- data/db/migrate/20130312224911_create_errors.rb +1 -1
- data/db/migrate/20130407195450_create_roles.rb +2 -2
- data/db/migrate/20130407200624_populate_roles.rb +9 -9
- data/db/migrate/20130407220039_add_project_id_to_testing_notes.rb +6 -6
- data/db/migrate/20130407220937_add_project_id_to_commits.rb +6 -6
- data/db/migrate/20130416020627_add_environments_subscribed_to_to_users.rb +3 -3
- data/db/migrate/20130420174126_add_error_tracker_name_to_projects.rb +2 -2
- data/db/migrate/20130427223925_create_project_quotas.rb +2 -2
- data/db/migrate/20130504014802_add_extended_attributes_to_projects.rb +3 -3
- data/db/migrate/20130504135741_add_antecedents_to_tickets.rb +6 -6
- data/db/migrate/20130505144446_add_tags_to_tickets.rb +1 -1
- data/db/migrate/20130505162039_add_type_to_tickets.rb +1 -1
- data/db/migrate/20130505212838_add_closed_at_to_tickets.rb +1 -1
- data/db/migrate/20130519163615_create_user_credentials.rb +2 -2
- data/db/migrate/20130526024851_give_default_values_for_counts_from_test_runs.rb +2 -2
- data/db/migrate/20130710233849_add_authored_at_to_commits.rb +10 -10
- data/db/migrate/20130711013156_link_commits_and_users.rb +6 -6
- data/db/migrate/20130806143651_link_commits_and_releases.rb +2 -2
- data/db/migrate/20130921141449_create_milestones.rb +3 -3
- data/db/migrate/20131004185618_add_first_release_at_to_tickets.rb +2 -2
- data/db/migrate/20131012152403_create_sprints.rb +3 -3
- data/db/migrate/20131112010815_delete_duplicate_commits.rb +7 -7
- data/db/migrate/20140217160450_add_email_addresses_to_users.rb +3 -3
- data/db/migrate/20140327020121_drop_ticket_prerequisites.rb +1 -1
- data/db/migrate/20140406183224_remove_new_relic_id_from_projects.rb +1 -1
- data/db/migrate/20140406230121_delete_automatically_generated_messages_for_releases.rb +1 -1
- data/db/migrate/20140407010111_drop_sprints_project_id.rb +1 -1
- data/db/migrate/20140418133005_change_ticket_antecedents_to_text_array.rb +1 -1
- data/db/migrate/20140425141946_embed_changes_in_releases.rb +3 -3
- data/db/migrate/20140515174322_create_tasks.rb +3 -3
- data/db/migrate/20140516012049_create_tasks_for_existing_tickets.rb +1 -1
- data/db/migrate/20140517012626_prevent_hstore_fields_from_being_null.rb +2 -2
- data/db/migrate/20140521014652_allow_task_descriptions_to_be_null.rb +1 -1
- data/db/migrate/20140526155845_add_commit_id_to_deploys.rb +5 -5
- data/db/migrate/20140526162645_add_commit_before_id_and_commit_after_id_to_releases.rb +4 -4
- data/db/migrate/20140526180608_associate_remaining_deploys_and_releases.rb +12 -12
- data/db/migrate/20140724231918_create_sprints_tasks.rb +3 -3
- data/db/migrate/20140824194031_add_project_id_to_tasks.rb +1 -1
- data/db/migrate/20140824194526_add_completed_at_to_tasks.rb +3 -3
- data/db/migrate/20140824211249_require_sprints_to_be_unique.rb +1 -1
- data/db/migrate/20140907012329_drop_table_changes.rb +1 -1
- data/db/migrate/20140907013836_drop_table_errors.rb +1 -1
- data/db/migrate/20140921190022_add_checked_out_to_sprints_tasks.rb +2 -2
- data/db/migrate/20140921201441_drop_users_name.rb +1 -1
- data/db/migrate/20140925021043_rename_deploys_commit_to_sha.rb +1 -1
- data/db/migrate/20140929004347_create_historical_heads.rb +4 -4
- data/db/migrate/20141027194819_make_users_environments_subscribed_to_an_array.rb +2 -2
- data/db/migrate/20141226171730_create_measurements.rb +1 -1
- data/db/migrate/20150119154013_drop_unused_fields_from_milestones.rb +1 -1
- data/db/migrate/20150222205616_add_features_to_projects.rb +2 -2
- data/db/migrate/20150323004452_add_deploys_completed_at.rb +1 -1
- data/db/migrate/20150805180939_add_commit_id_to_test_runs.rb +1 -1
- data/db/migrate/20150808161805_create_test_results.rb +1 -1
- data/db/migrate/20150809132417_rename_test_results_regression_to_difference.rb +1 -1
- data/db/migrate/20150927014445_required_pull_requests_to_be_unique_by_project_and_number.rb +13 -0
- data/db/structure.sql +9 -0
- data/houston.gemspec +23 -26
- data/lib/configuration.rb +0 -5
- data/lib/core_ext/duration.rb +4 -4
- data/lib/core_ext/hash.rb +17 -17
- data/lib/houston/version.rb +1 -1
- data/lib/houston_server.rb +6 -6
- data/lib/parallel_enumerable.rb +16 -16
- data/lib/tasks/specific_tests.rake +37 -0
- metadata +91 -107
- data/app/interactors/push_gemfile_to_gemnasium.rb +0 -88
- data/app/models/gemnasium/alert.rb +0 -25
- data/app/views/welcome/_tdl.html.erb +0 -31
- data/config/initializers/houston_tdl.rb +0 -104
@@ -1,37 +1,37 @@
|
|
1
1
|
module Houston
|
2
2
|
module Adapters
|
3
3
|
module VersionControl
|
4
|
-
|
4
|
+
|
5
5
|
class Error < StandardError
|
6
6
|
def initialize(original_error=nil, message=nil)
|
7
7
|
original_error, message = nil, original_error if original_error.is_a?(String)
|
8
|
-
|
8
|
+
|
9
9
|
if original_error
|
10
10
|
message ||= original_error.message
|
11
11
|
set_backtrace(original_error.backtrace)
|
12
12
|
end
|
13
|
-
|
13
|
+
|
14
14
|
@original_error = original_error
|
15
15
|
@message = message
|
16
16
|
super(message)
|
17
17
|
end
|
18
|
-
|
18
|
+
|
19
19
|
attr_accessor :message
|
20
20
|
attr_reader :original_error
|
21
21
|
end
|
22
|
-
|
22
|
+
|
23
23
|
class CommitNotFound < Error
|
24
24
|
end
|
25
|
-
|
25
|
+
|
26
26
|
class BranchNotFound < Error
|
27
27
|
end
|
28
|
-
|
28
|
+
|
29
29
|
class FileNotFound < Error
|
30
30
|
end
|
31
|
-
|
31
|
+
|
32
32
|
class InvalidShaError < ArgumentError
|
33
33
|
end
|
34
|
-
|
34
|
+
|
35
35
|
end
|
36
36
|
end
|
37
37
|
end
|
@@ -3,61 +3,61 @@ module Houston
|
|
3
3
|
module VersionControl
|
4
4
|
class GitAdapter
|
5
5
|
class GithubRepo < RemoteRepo
|
6
|
-
|
7
|
-
|
6
|
+
|
7
|
+
|
8
8
|
def project_url
|
9
9
|
location.to_s
|
10
10
|
.gsub(/^git@(?:www\.)?github.com:/, "https://github.com/")
|
11
11
|
.gsub(/^git:/, "https:")
|
12
12
|
.gsub(/\.git$/, "")
|
13
13
|
end
|
14
|
-
|
14
|
+
|
15
15
|
def commit_url(sha)
|
16
16
|
"#{project_url}/commit/#{sha}"
|
17
17
|
end
|
18
|
-
|
18
|
+
|
19
19
|
def commit_range_url(sha0, sha1)
|
20
20
|
"#{project_url}/compare/#{sha0}...#{sha1}"
|
21
21
|
end
|
22
|
-
|
22
|
+
|
23
23
|
def commit_status_url(sha)
|
24
24
|
# GitHub requires the full 40-character sha
|
25
25
|
sha = native_commit(sha).sha if sha.length < 40
|
26
26
|
path = Addressable::URI.parse(project_url).path[1..-1]
|
27
27
|
"https://api.github.com/repos/#{path}/statuses/#{sha}"
|
28
28
|
end
|
29
|
-
|
29
|
+
|
30
30
|
def repo_name
|
31
31
|
location.path[0...-4]
|
32
32
|
end
|
33
|
-
|
34
|
-
|
35
|
-
|
33
|
+
|
34
|
+
|
35
|
+
|
36
36
|
# GitHub API
|
37
|
-
|
37
|
+
|
38
38
|
def pull_requests(options={})
|
39
39
|
Houston.github.pull_requests(repo_name, options)
|
40
40
|
end
|
41
|
-
|
41
|
+
|
42
42
|
def create_pull_request(base: nil, head: nil, title: nil, body: nil, options: {})
|
43
43
|
Houston.github.create_pull_request(repo_name, base, head, title, body, options)
|
44
44
|
end
|
45
|
-
|
45
|
+
|
46
46
|
def issues(options={})
|
47
47
|
Houston.github.issues(repo_name, options)
|
48
48
|
end
|
49
|
-
|
49
|
+
|
50
50
|
def add_labels_to(labels, issue_number)
|
51
51
|
issue_number = issue_number.number if issue_number.respond_to? :number
|
52
52
|
Houston.github.add_labels_to_an_issue repo_name, issue_number, Array(labels)
|
53
53
|
end
|
54
54
|
alias :add_label_to :add_labels_to
|
55
|
-
|
55
|
+
|
56
56
|
def remove_label_from(label, issue_number)
|
57
57
|
issue_number = issue_number.number if issue_number.respond_to? :number
|
58
58
|
Houston.github.remove_label repo_name, issue_number, label
|
59
59
|
end
|
60
|
-
|
60
|
+
|
61
61
|
end
|
62
62
|
end
|
63
63
|
end
|
@@ -4,57 +4,62 @@ module Houston
|
|
4
4
|
class GitAdapter
|
5
5
|
class RemoteRepo < Repo
|
6
6
|
RETRY_COOLDOWN = 4 # seconds
|
7
|
-
|
8
|
-
|
7
|
+
|
8
|
+
|
9
9
|
def initialize(connection, location)
|
10
10
|
super(connection)
|
11
11
|
@location = location
|
12
|
+
@branch_location = :remote
|
12
13
|
end
|
13
|
-
|
14
|
-
|
15
|
-
|
14
|
+
|
15
|
+
|
16
|
+
|
16
17
|
# Public API for a VersionControl::Adapter Repo
|
17
18
|
# ------------------------------------------------------------------------- #
|
18
|
-
|
19
|
+
|
19
20
|
attr_reader :location
|
20
|
-
|
21
|
+
|
21
22
|
def refresh!(async: false)
|
22
23
|
return clone!(async: async) unless exists?
|
23
24
|
pull!(async: async)
|
24
25
|
end
|
25
|
-
|
26
|
+
|
26
27
|
# ------------------------------------------------------------------------- #
|
27
|
-
|
28
|
+
|
28
29
|
def to_s
|
29
30
|
location.to_s
|
30
31
|
end
|
31
|
-
|
32
|
-
|
33
|
-
|
32
|
+
|
33
|
+
|
34
|
+
|
34
35
|
def clone!(async: false)
|
35
36
|
GitAdapter.clone!(location, connection.path, async: false)
|
36
37
|
end
|
37
|
-
|
38
|
+
|
38
39
|
def pull!(async: false)
|
39
40
|
async ? Houston.async { _pull!(true) } : _pull!(false)
|
40
41
|
end
|
41
|
-
|
42
|
+
|
42
43
|
def origin
|
43
44
|
@origin ||= connection.remotes["origin"]
|
44
45
|
end
|
45
|
-
|
46
|
-
|
47
|
-
|
46
|
+
|
47
|
+
|
48
|
+
|
48
49
|
protected
|
49
|
-
|
50
|
+
|
50
51
|
def find_commit(sha)
|
51
52
|
pull_and_retry { super(sha) }
|
52
53
|
end
|
53
|
-
|
54
|
-
|
55
|
-
|
54
|
+
|
55
|
+
def name_of_branch(branch)
|
56
|
+
super.gsub /^origin\//, ""
|
57
|
+
end
|
58
|
+
|
59
|
+
|
60
|
+
|
56
61
|
private
|
57
|
-
|
62
|
+
|
58
63
|
def pull_and_retry
|
59
64
|
begin
|
60
65
|
yield
|
@@ -65,21 +70,39 @@ module Houston
|
|
65
70
|
retry
|
66
71
|
end
|
67
72
|
end
|
68
|
-
|
73
|
+
|
69
74
|
def _pull!(async)
|
70
75
|
Houston.benchmark("[git:pull#{":async" if async}] #{connection.path}") do
|
71
76
|
options = {credentials: GitAdapter.credentials}
|
72
|
-
|
77
|
+
|
73
78
|
# Fetch
|
74
79
|
Houston.try({max_tries: 3, base: 0}, Rugged::OSError, Rugged::SshError) do
|
75
|
-
connection.remotes["origin"].fetch(nil, options
|
80
|
+
connection.remotes["origin"].fetch(nil, options.merge({
|
81
|
+
update_tips: Proc.new do |refname, _, new_oid|
|
82
|
+
if new_oid.nil?
|
83
|
+
Rails.logger.debug "[git:pull] Deleting #{refname}"
|
84
|
+
connection.references.delete(refname)
|
85
|
+
else
|
86
|
+
Rails.logger.debug "[git:pull] Setting #{refname} to #{new_oid[0...7]}"
|
87
|
+
connection.references.create(refname, new_oid, force: true)
|
88
|
+
end
|
89
|
+
end
|
90
|
+
}))
|
76
91
|
release
|
77
92
|
end
|
78
|
-
|
79
|
-
#
|
80
|
-
local_refs = connection.refs.map(&:name)
|
93
|
+
|
94
|
+
# Don't prune local branches, just local references to remote branches
|
95
|
+
local_refs = connection.refs.map(&:name)
|
96
|
+
.grep(/^refs\/remotes\//)
|
97
|
+
|
98
|
+
# These are represented as branches (refs/heads/) remotely, but
|
99
|
+
# as remote tips (refs/remotes/origin/) locally.
|
81
100
|
remote_refs = connection.remotes["origin"].ls(options)
|
82
|
-
.map { |attrs| attrs[:name] }
|
101
|
+
.map { |attrs| attrs[:name] }
|
102
|
+
.grep(/^refs\//)
|
103
|
+
.map { |name| name.gsub("refs/heads/", "refs/remotes/origin/") }
|
104
|
+
|
105
|
+
# Prune references to branches that were deleted from origin
|
83
106
|
prune_refs = local_refs - remote_refs
|
84
107
|
prune_refs.each do |ref|
|
85
108
|
begin
|
@@ -96,7 +119,7 @@ module Houston
|
|
96
119
|
ensure
|
97
120
|
close
|
98
121
|
end
|
99
|
-
|
122
|
+
|
100
123
|
end
|
101
124
|
end
|
102
125
|
end
|
@@ -5,29 +5,30 @@ module Houston
|
|
5
5
|
module VersionControl
|
6
6
|
class GitAdapter
|
7
7
|
class Repo
|
8
|
-
|
9
|
-
|
8
|
+
|
9
|
+
|
10
10
|
def initialize(connection)
|
11
11
|
@connection = connection
|
12
|
+
@branch_location = :local
|
12
13
|
end
|
13
|
-
|
14
|
-
|
15
|
-
|
14
|
+
|
15
|
+
|
16
|
+
|
16
17
|
# Public API for a VersionControl::Adapter Repo
|
17
18
|
# ------------------------------------------------------------------------- #
|
18
|
-
|
19
|
+
|
19
20
|
def all_commit_times
|
20
21
|
`git --git-dir=#{git_dir} log --all --pretty='%at'`.split(/\n/).uniq
|
21
22
|
end
|
22
|
-
|
23
|
+
|
23
24
|
def all_commits
|
24
25
|
`git --git-dir=#{git_dir} log --all --pretty='%H'`.split(/\n/).uniq
|
25
26
|
end
|
26
|
-
|
27
|
+
|
27
28
|
def ancestors(sha, options={})
|
28
29
|
ancestor_walker(sha, options, &method(:to_commit))
|
29
30
|
end
|
30
|
-
|
31
|
+
|
31
32
|
def ancestors_until(sha, options={})
|
32
33
|
commits = []
|
33
34
|
ancestor_walker(sha, options) do |commit|
|
@@ -35,78 +36,78 @@ module Houston
|
|
35
36
|
commits << commit
|
36
37
|
return commits if yield commit
|
37
38
|
end
|
38
|
-
|
39
|
+
|
39
40
|
raise CommitNotFound, "No matching ancestor of \"#{sha}\" was found"
|
40
41
|
end
|
41
|
-
|
42
|
+
|
42
43
|
def branches
|
43
44
|
Hash[connection.branches
|
44
|
-
.each(
|
45
|
-
.map { |branch| [branch
|
45
|
+
.each(branch_location)
|
46
|
+
.map { |branch| [name_of_branch(branch), branch.target.oid] }]
|
46
47
|
ensure
|
47
48
|
release
|
48
49
|
end
|
49
|
-
|
50
|
+
|
50
51
|
def branches_at(sha)
|
51
52
|
connection.branches
|
52
|
-
.each(
|
53
|
+
.each(branch_location)
|
53
54
|
.select { |branch| branch.target.oid.start_with?(sha) }
|
54
|
-
.map(
|
55
|
+
.map { |branch| name_of_branch(branch) }
|
55
56
|
ensure
|
56
57
|
release
|
57
58
|
end
|
58
|
-
|
59
|
+
|
59
60
|
def commits_between(sha1, sha2)
|
60
61
|
sha1 = sha1.sha if sha1.respond_to?(:sha)
|
61
62
|
sha2 = sha2.sha if sha2.respond_to?(:sha)
|
62
63
|
sha1 = nil if sha1 == Houston::NULL_GIT_COMMIT
|
63
|
-
|
64
|
+
|
64
65
|
ancestors(sha2, including_self: true, hide: sha1).reverse
|
65
|
-
|
66
|
+
|
66
67
|
rescue
|
67
68
|
$!.additional_information[:repo] = to_s
|
68
69
|
$!.additional_information[:commit_range] = "#{sha1}...#{sha2}"
|
69
70
|
raise
|
70
71
|
end
|
71
|
-
|
72
|
+
|
72
73
|
def location
|
73
74
|
connection.path
|
74
75
|
end
|
75
|
-
|
76
|
+
|
76
77
|
def native_commit(sha)
|
77
78
|
return NullCommit.new if sha == Houston::NULL_GIT_COMMIT
|
78
79
|
to_commit find_commit(sha)
|
79
80
|
ensure
|
80
81
|
release
|
81
82
|
end
|
82
|
-
|
83
|
+
|
83
84
|
def read_file(file_path, options={})
|
84
85
|
blob = find_file(file_path, options={})
|
85
86
|
blob && blob.content
|
86
87
|
ensure
|
87
88
|
release
|
88
89
|
end
|
89
|
-
|
90
|
+
|
90
91
|
def refresh!(async: false)
|
91
92
|
end
|
92
|
-
|
93
|
+
|
93
94
|
def exists?
|
94
95
|
File.exists?(connection.path)
|
95
96
|
end
|
96
|
-
|
97
|
+
|
97
98
|
# ------------------------------------------------------------------------- #
|
98
|
-
|
99
|
-
|
100
|
-
|
99
|
+
|
100
|
+
|
101
|
+
|
101
102
|
def branch(branch)
|
102
103
|
ref("refs/remotes/origin/#{branch}") || ref("refs/heads/#{branch}")
|
103
104
|
end
|
104
|
-
|
105
|
+
|
105
106
|
def ref(ref)
|
106
107
|
ref = connection.ref(ref)
|
107
108
|
ref.target.oid if ref
|
108
109
|
end
|
109
|
-
|
110
|
+
|
110
111
|
def find_file(file_path, options={})
|
111
112
|
commit = options[:commit] || connection.head.target.oid
|
112
113
|
head = find_commit(commit)
|
@@ -122,17 +123,17 @@ module Houston
|
|
122
123
|
ensure
|
123
124
|
release
|
124
125
|
end
|
125
|
-
|
126
|
+
|
126
127
|
def changes(old_sha, new_sha)
|
127
128
|
find_commit old_sha
|
128
129
|
find_commit new_sha
|
129
130
|
DiffChanges.new `git --git-dir=#{git_dir} diff --name-status #{old_sha} #{new_sha}`
|
130
131
|
end
|
131
|
-
|
132
|
+
|
132
133
|
def to_s
|
133
134
|
location
|
134
135
|
end
|
135
|
-
|
136
|
+
|
136
137
|
# !todo: Does this need to be a public method?
|
137
138
|
protected
|
138
139
|
def close
|
@@ -148,23 +149,23 @@ module Houston
|
|
148
149
|
# members.repo.send(:connection).close }
|
149
150
|
#
|
150
151
|
# The first two raised exceptions but the last one didn't.
|
151
|
-
|
152
|
+
|
152
153
|
# We have to call the GC.start (I think) to clean up
|
153
154
|
# the objects hanging on to file descriptors.
|
154
155
|
GC.start
|
155
|
-
|
156
|
+
|
156
157
|
# We have to call connection.close to actually release
|
157
158
|
# those file descriptors.
|
158
159
|
connection.close
|
159
160
|
end
|
160
161
|
alias :release :close
|
161
|
-
|
162
|
-
|
163
|
-
|
162
|
+
|
163
|
+
|
164
|
+
|
164
165
|
protected
|
165
|
-
|
166
|
-
attr_reader :connection
|
167
|
-
|
166
|
+
|
167
|
+
attr_reader :connection, :branch_location
|
168
|
+
|
168
169
|
def find_commit(sha)
|
169
170
|
normalize_sha!(sha)
|
170
171
|
object = connection.lookup(sha)
|
@@ -177,11 +178,15 @@ module Houston
|
|
177
178
|
rescue Rugged::ObjectError
|
178
179
|
raise CommitNotFound, "\"#{sha}\" is too short"
|
179
180
|
end
|
180
|
-
|
181
|
-
|
182
|
-
|
181
|
+
|
182
|
+
def name_of_branch(branch)
|
183
|
+
branch.name
|
184
|
+
end
|
185
|
+
|
186
|
+
|
187
|
+
|
183
188
|
private
|
184
|
-
|
189
|
+
|
185
190
|
def normalize_sha!(sha)
|
186
191
|
return unless sha
|
187
192
|
return if sha == Houston::NULL_GIT_COMMIT
|
@@ -189,17 +194,17 @@ module Houston
|
|
189
194
|
sha.slice!(40)
|
190
195
|
validate_sha!(sha)
|
191
196
|
end
|
192
|
-
|
197
|
+
|
193
198
|
def validate_sha!(sha)
|
194
199
|
unless sha =~ /^[0-9a-f]+$/i
|
195
200
|
raise InvalidShaError, "\"#{sha}\" is not a valid SHA"
|
196
201
|
end
|
197
202
|
end
|
198
|
-
|
203
|
+
|
199
204
|
def git_dir
|
200
205
|
connection.path.chomp("/")
|
201
206
|
end
|
202
|
-
|
207
|
+
|
203
208
|
def to_commit(rugged_commit)
|
204
209
|
Houston::Adapters::VersionControl::Commit.new({
|
205
210
|
original: rugged_commit,
|
@@ -214,32 +219,32 @@ module Houston
|
|
214
219
|
committer_email: rugged_commit.committer[:email]
|
215
220
|
})
|
216
221
|
end
|
217
|
-
|
222
|
+
|
218
223
|
def ancestor_walker(sha, options={})
|
219
224
|
commit = find_commit(sha)
|
220
225
|
push_shas = [commit.oid]
|
221
|
-
|
226
|
+
|
222
227
|
# by default, start with the commit's parent
|
223
228
|
push_shas = commit.parents.map(&:oid) unless options[:including_self]
|
224
229
|
hide_shas = Array(options.fetch(:hide, []))
|
225
230
|
.map { |sha| find_commit(sha).oid } # ensure that each of these exists in the repo
|
226
|
-
|
231
|
+
|
227
232
|
# start by releasing any files we've got open
|
228
233
|
release
|
229
|
-
|
234
|
+
|
230
235
|
walker = Rugged::Walker.new(connection)
|
231
236
|
push_shas.each { |sha| walker.push(sha) }
|
232
237
|
hide_shas.each { |sha| walker.hide(sha) }
|
233
|
-
|
238
|
+
|
234
239
|
walker.each_with_index.map do |commit, i|
|
235
240
|
release if i % 200 == 0
|
236
241
|
yield commit
|
237
242
|
end
|
238
|
-
|
243
|
+
|
239
244
|
ensure
|
240
245
|
release
|
241
246
|
end
|
242
|
-
|
247
|
+
|
243
248
|
end
|
244
249
|
end
|
245
250
|
end
|
@@ -3,12 +3,12 @@ module Houston
|
|
3
3
|
module VersionControl
|
4
4
|
class GitAdapter
|
5
5
|
class << self
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
|
7
|
+
|
8
|
+
|
9
9
|
# Public API for a VersionControl::Adapter
|
10
10
|
# ------------------------------------------------------------------------- #
|
11
|
-
|
11
|
+
|
12
12
|
def errors_with_parameters(project, location)
|
13
13
|
location = Addressable::URI.parse(location.to_s)
|
14
14
|
connect_to_repo!(location, project.version_control_temp_path)
|
@@ -17,17 +17,17 @@ module Houston
|
|
17
17
|
Rails.logger.error "#{$!.class.name}: #{$!.message}\n #{$!.backtrace.take(7).join("\n ")}"
|
18
18
|
{ git_location: ["might not be right. Houston can't seem to connect to it."] }
|
19
19
|
end
|
20
|
-
|
20
|
+
|
21
21
|
def build(project, location)
|
22
22
|
connect location, project.version_control_temp_path
|
23
23
|
end
|
24
|
-
|
24
|
+
|
25
25
|
def connect(location, temp_path)
|
26
26
|
location = Addressable::URI.parse(location.to_s)
|
27
27
|
return Houston::Adapters::VersionControl::NullRepo if location.blank?
|
28
|
-
|
28
|
+
|
29
29
|
connection = connect_to_repo! location, temp_path
|
30
|
-
|
30
|
+
|
31
31
|
return self::Repo.new(connection) unless location.absolute?
|
32
32
|
return self::GithubRepo.new(connection, location) if /github/ === location
|
33
33
|
return self::RemoteRepo.new(connection, location)
|
@@ -35,20 +35,20 @@ module Houston
|
|
35
35
|
Rails.logger.warn "\e[33m[git_adapter] #{$!.class}: #{$!.message}\e[0m"
|
36
36
|
Houston::Adapters::VersionControl::NullRepo
|
37
37
|
end
|
38
|
-
|
38
|
+
|
39
39
|
def parameters
|
40
40
|
[:git_location]
|
41
41
|
end
|
42
|
-
|
42
|
+
|
43
43
|
# ------------------------------------------------------------------------- #
|
44
|
-
|
45
|
-
|
46
|
-
|
44
|
+
|
45
|
+
|
46
|
+
|
47
47
|
def connect_to_repo!(repo_uri, temp_path)
|
48
48
|
git_path = get_local_path_to_repo(repo_uri, temp_path.to_s)
|
49
49
|
Rugged::Repository.new(git_path)
|
50
50
|
end
|
51
|
-
|
51
|
+
|
52
52
|
def get_local_path_to_repo(repo_uri, temp_path)
|
53
53
|
if repo_uri.absolute?
|
54
54
|
clone!(repo_uri, temp_path) unless File.exists?(temp_path)
|
@@ -57,7 +57,7 @@ module Houston
|
|
57
57
|
repo_uri.to_s
|
58
58
|
end
|
59
59
|
end
|
60
|
-
|
60
|
+
|
61
61
|
def clone!(origin_uri, local_path, async: false)
|
62
62
|
if async
|
63
63
|
Houston.async { _clone!(origin_uri, local_path, true) }
|
@@ -65,18 +65,18 @@ module Houston
|
|
65
65
|
_clone!(origin_uri, local_path, false)
|
66
66
|
end
|
67
67
|
end
|
68
|
-
|
68
|
+
|
69
69
|
def credentials
|
70
70
|
Rugged::Credentials::SshKey.new(
|
71
71
|
username: SSH_USERNAME,
|
72
72
|
privatekey: SSH_PRIVATEKEY,
|
73
73
|
publickey: SSH_PUBLICKEY)
|
74
74
|
end
|
75
|
-
|
76
|
-
|
77
|
-
|
75
|
+
|
76
|
+
|
77
|
+
|
78
78
|
private
|
79
|
-
|
79
|
+
|
80
80
|
def _clone!(origin_uri, local_path, async)
|
81
81
|
Houston.benchmark("[git:clone#{":async" if async}] #{origin_uri} => #{local_path}") do
|
82
82
|
Rugged::Repository.clone_at origin_uri.to_s, local_path.to_s,
|
@@ -84,11 +84,11 @@ module Houston
|
|
84
84
|
bare: true
|
85
85
|
end
|
86
86
|
end
|
87
|
-
|
87
|
+
|
88
88
|
SSH_USERNAME = "git".freeze
|
89
89
|
SSH_PRIVATEKEY = File.expand_path("~/.ssh/id_rsa").freeze
|
90
90
|
SSH_PUBLICKEY = File.expand_path("~/.ssh/id_rsa.pub").freeze
|
91
|
-
|
91
|
+
|
92
92
|
end
|
93
93
|
end
|
94
94
|
end
|
@@ -2,19 +2,19 @@ module Houston
|
|
2
2
|
module Adapters
|
3
3
|
module VersionControl
|
4
4
|
class NoneAdapter
|
5
|
-
|
5
|
+
|
6
6
|
def self.errors_with_parameters(*args)
|
7
7
|
{}
|
8
8
|
end
|
9
|
-
|
9
|
+
|
10
10
|
def self.build(*args)
|
11
11
|
Houston::Adapters::VersionControl::NullRepo
|
12
12
|
end
|
13
|
-
|
13
|
+
|
14
14
|
def self.parameters
|
15
15
|
[]
|
16
16
|
end
|
17
|
-
|
17
|
+
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|