Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1791,7 +1791,7 @@ GEM
execjs
coffee-script-source (1.8.0)
commonjs (0.2.7)
concurrent-ruby (1.3.5)
concurrent-ruby (1.3.8)
connection_pool (2.5.3)
crack (1.0.0)
bigdecimal
Expand Down
5 changes: 0 additions & 5 deletions app/controllers/codeopenhub_controller.rb

This file was deleted.

5 changes: 0 additions & 5 deletions app/controllers/home_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,4 @@ class HomeController < ApplicationController
def index
@home = HomeDecorator.new
end

def server_info
render json: { status: 'OK', environment: Rails.env,
git_sha: Rails.application.config.git_sha, passenger: Rails.application.config.passenger_version }
end
end
11 changes: 10 additions & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
# frozen_string_literal: true

require File.expand_path('boot', __dir__)
require 'rails/all'

require 'active_record/railtie'
require 'action_controller/railtie'
require 'action_view/railtie'
require 'action_mailer/railtie'
require 'active_job/railtie'
require 'action_cable/engine'
require 'rails/test_unit/railtie'
require 'sprockets/railtie'
# active_storage/engine intentionally omitted — not used in this application

Bundler.require(*Rails.groups)

Expand Down
2 changes: 0 additions & 2 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
config.cache_store = :null_store
end

# Store uploaded files on the local file system (see config/storage.yml for options).
config.active_storage.service = :local
config.action_mailer.delivery_method = :letter_opener
# Don't care if the mailer can't send.
config.action_mailer.raise_delivery_errors = false
Expand Down
3 changes: 0 additions & 3 deletions config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@
# Disable request forgery protection in test environment.
config.action_controller.allow_forgery_protection = false

# Store uploaded files on the local file system in a temporary directory.
config.active_storage.service = :test

# Configure Paperclip to use local filesystem for tests instead of S3
config.paperclip_defaults = {
storage: :filesystem,
Expand Down
7 changes: 0 additions & 7 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
Rails.application.routes.draw do
mount JasmineRails::Engine => '/specs' if defined?(JasmineRails)

constraints(Codeopenhub) do
get '/', to: 'codeopenhub#index'
get '/*other', to: 'codeopenhub#index'
end

get 'admin/comments' => redirect('/404')
get 'oh_admin/projects', to: 'admin/projects#index'
get 'admin/spam', to: 'spam#redirect_to_first_potential_spammer'
Expand Down Expand Up @@ -414,8 +409,6 @@
get 'repositories/compare' => 'compare_repositories#index', as: :compare_repositories
get 'repositories/chart' => 'compare_repositories#chart', as: :compare_repositories_chart

get 'server_info' => 'home#server_info'

resources :committers, only: %i[index show] do
member do
post :claim
Expand Down
10 changes: 0 additions & 10 deletions lib/constraints/codeopenhub.rb

This file was deleted.

45 changes: 0 additions & 45 deletions lib/tasks/docker.rake

This file was deleted.

15 changes: 0 additions & 15 deletions test/controllers/codeopenhubs_controller_test.rb

This file was deleted.

7 changes: 0 additions & 7 deletions test/controllers/home_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,4 @@ class HomeControllerTest < ActionController::TestCase
assert_response :success
_(assigns(:home).class).must_equal HomeDecorator
end

it 'server_info should load' do
get :server_info
assert_response :success
resp = JSON.parse(response.body)
_(resp['status']).must_equal 'OK'
end
end
Loading
Loading