Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ gem 'hiredis'
gem 'http_accept_language'
gem 'identity-doc-auth', github: '18F/identity-doc-auth', tag: 'v0.3.0'
gem 'identity-hostdata', github: '18F/identity-hostdata', tag: 'v0.4.1'
require File.join(__dir__, 'app', 'services', 'lambda_jobs', 'git_ref.rb')
require File.join(__dir__, 'lib', 'lambda_jobs', 'git_ref.rb')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gem 'identity-idp-functions', github: '18F/identity-idp-functions', ref: LambdaJobs::GIT_REF
gem 'identity-telephony', github: '18f/identity-telephony', tag: 'v0.1.6'
gem 'identity_validations', github: '18F/identity-validations', branch: 'master'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Db
module ProofingComponent
class ProofingComponentsSummary
class ProofingComponentSummary
SKIP_FIELDS = %w[id user_id created_at updated_at].freeze

def call
Expand Down
2 changes: 1 addition & 1 deletion bin/rails
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env ruby
APP_PATH = File.expand_path('../../config/application', __FILE__)
APP_PATH = File.expand_path('../config/application', __dir__)
require_relative '../config/boot'
require 'rails/commands'
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require File.expand_path('../boot', __FILE__)
require_relative 'boot'
require 'rails/all'
require_relative '../lib/upaya_log_formatter'
require_relative '../lib/app_config'
Expand Down
2 changes: 1 addition & 1 deletion config/environment.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Load the Rails application.
require File.expand_path('../application', __FILE__)
require_relative 'application'

# Initialize the Rails application.
Rails.application.initialize!
15 changes: 14 additions & 1 deletion config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
config.cache_classes = false
config.eager_load = false
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
config.active_support.deprecation = :log
config.active_record.migration_error = :page_load
config.assets.debug = true
Expand All @@ -24,6 +23,20 @@
config.lograge.ignore_actions = ['Users::SessionsController#active']
config.lograge.formatter = Lograge::Formatters::Json.new

if Rails.root.join('tmp', 'caching-dev.txt').exist?
config.action_controller.perform_caching = true
config.action_controller.enable_fragment_cache_logging = true

config.cache_store = :memory_store
config.public_file_server.headers = {
'Cache-Control' => "public, max-age=#{2.days.to_i}",
}
else
config.action_controller.perform_caching = false

config.cache_store = :null_store
end

# Override log formatter
config.log_formatter = Upaya::DevelopmentUpayaLogFormatter.new

Expand Down
4 changes: 3 additions & 1 deletion config/environments/test.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
Rails.application.configure do
config.active_job.queue_adapter = :test
config.cache_classes = true
config.cache_classes = false
config.action_view.cache_template_loading = true
config.eager_load = false
config.public_file_server.enabled = true
config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
config.cache_store = :null_store
config.action_dispatch.show_exceptions = false
config.action_controller.allow_forgery_protection = false
config.active_support.test_order = :random
Expand Down
2 changes: 1 addition & 1 deletion development.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ENV MAKEFLAGS "-j$(nproc)"

# Install dev and test gems
COPY Gemfile Gemfile.lock ./
COPY app/services/lambda_jobs/git_ref.rb ./app/services/lambda_jobs/
COPY lib/lambda_jobs/git_ref.rb ./lib/lambda_jobs/
RUN bundle install -j $(nproc) --system --with development test

# Install NPM packages
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion spec/controllers/twilio_voice_controller_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rails_helper'

describe Telephony::Twilio::TwilioVoiceController do
describe TwilioVoiceController do
describe '#show' do
context 'with nothing in the params' do
it 'renders an error' do
Expand Down
2 changes: 1 addition & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# this is loaded super early by the Gemfile so it gets ignored by SimpleCov
# and sinks our coverage reports, so we ignore it
add_filter '/app/services/lambda_jobs/git_ref.rb'
add_filter '/lib/lambda_jobs/git_ref.rb'
end
end

Expand Down