Skip to content

Commit

Permalink
Update standard, apply fixes that can auto apply
Browse files Browse the repository at this point in the history
  • Loading branch information
rsanheim committed Aug 24, 2020
1 parent 36c042e commit 8f320f9
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 21 deletions.
26 changes: 15 additions & 11 deletions Gemfile.lock
Expand Up @@ -51,7 +51,7 @@ GEM
airbrussh (1.4.0)
sshkit (>= 1.6.1, != 1.7.0)
arel (9.0.0)
ast (2.4.0)
ast (2.4.1)
auto_strip_attributes (2.6.0)
activerecord (>= 4.0)
autoprefixer-rails (9.7.6)
Expand Down Expand Up @@ -270,11 +270,11 @@ GEM
nenv (~> 0.1)
shellany (~> 0.0)
orm_adapter (0.5.0)
parallel (1.19.1)
parallel (1.19.2)
parallel_tests (2.32.0)
parallel
parser (2.7.1.2)
ast (~> 2.4.0)
parser (2.7.1.4)
ast (~> 2.4.1)
passenger (6.0.4)
rack
rake (>= 0.8.1)
Expand Down Expand Up @@ -419,15 +419,19 @@ GEM
rswag-ui (1.6.0)
actionpack (>= 3.1, < 6.0)
railties (>= 3.1, < 6.0)
rubocop (0.83.0)
rubocop (0.89.1)
parallel (~> 1.10)
parser (>= 2.7.0.1)
parser (>= 2.7.1.1)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.7)
rexml
rubocop-ast (>= 0.3.0, < 1.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 2.0)
rubocop-performance (1.5.2)
rubocop (>= 0.71.0)
rubocop-ast (0.3.0)
parser (>= 2.7.1.4)
rubocop-performance (1.7.1)
rubocop (>= 0.82.0)
ruby-graphviz (1.2.5)
rexml
ruby-progressbar (1.10.1)
Expand Down Expand Up @@ -481,9 +485,9 @@ GEM
net-ssh (>= 2.8.0)
sshkit-interactive (0.3.0)
sshkit (~> 1.12)
standard (0.4.2)
rubocop (~> 0.83.0)
rubocop-performance (~> 1.5.2)
standard (0.5.1)
rubocop (~> 0.89.1)
rubocop-performance (~> 1.7.1)
strong_password (0.0.8)
thor (0.20.3)
thread_safe (0.3.6)
Expand Down
4 changes: 2 additions & 2 deletions app/jobs/anonymized_data_download_job.rb
Expand Up @@ -4,12 +4,12 @@ class AnonymizedDataDownloadJob < ApplicationJob

def perform(recipient_name, recipient_email, model_params_map, model_type)
case model_type
when "district" then
when "district"
AnonymizedData::DownloadService.new.run_for_district(recipient_name,
recipient_email,
model_params_map[:district_name],
model_params_map[:organization_id])
when "facility" then
when "facility"
AnonymizedData::DownloadService.new.run_for_facility(recipient_name,
recipient_email,
model_params_map[:facility_id])
Expand Down
4 changes: 2 additions & 2 deletions app/queries/my_facilities/missed_visits_query.rb
Expand Up @@ -85,9 +85,9 @@ def total_registrations

def period_list(period, last_n)
case period
when :quarter then
when :quarter
last_n_quarters(n: last_n, inclusive: false)
when :month then
when :month
last_n_months(n: last_n, inclusive: false)
.map { |month| [month.year, month.month] }
end
Expand Down
6 changes: 3 additions & 3 deletions app/queries/my_facilities/registrations_query.rb
Expand Up @@ -35,12 +35,12 @@ def total_registrations

def period_list(period, last_n)
case period
when :quarter then
when :quarter
last_n_quarters(n: last_n, inclusive: true)
when :month then
when :month
last_n_months(n: last_n, inclusive: true)
.map { |month| [month.year, month.month] }
when :day then
when :day
last_n_days(n: last_n)
end
end
Expand Down
2 changes: 1 addition & 1 deletion config/environments/production.rb
Expand Up @@ -105,7 +105,7 @@
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')

if ENV["RAILS_LOG_TO_STDOUT"].present?
logger = ActiveSupport::Logger.new(STDOUT)
logger = ActiveSupport::Logger.new($stdout)
logger.formatter = config.log_formatter
config.logger = ActiveSupport::TaggedLogging.new(logger)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/loggers/api_usage_logger.rb
Expand Up @@ -13,7 +13,7 @@ class Formatter < ActiveSupport::Logger::Formatter
include ActiveSupport::TaggedLogging::Formatter
end

def initialize(target = STDOUT)
def initialize(target = $stdout)
super(target)
self.formatter = Formatter.new
end
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/dell_demo.rake
Expand Up @@ -10,7 +10,7 @@ namespace :dell_demo do
#
# Only print on console
#
logger = Logger.new(STDOUT)
logger = Logger.new($stdout)

#
# Parse args
Expand Down

0 comments on commit 8f320f9

Please sign in to comment.