diff --git a/Gemfile b/Gemfile index 0a1b5dd..75f8469 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,4 @@ # frozen_string_literal: true - source 'http://rubygems.org' ruby '2.4.0' diff --git a/Rakefile b/Rakefile index 358da59..99d54cd 100644 --- a/Rakefile +++ b/Rakefile @@ -1,3 +1,2 @@ # frozen_string_literal: true - Dir.glob('lib/tasks/*.rake').each { |r| import r } diff --git a/config/environment.rb b/config/environment.rb index 578fb8c..352574a 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -1,5 +1,4 @@ # frozen_string_literal: true - require_relative 'app' $LOAD_PATH << App.root.join('lib') Dir[App.root.join('config/initializers/*.rb')].each { |f| require f } diff --git a/config/initializers/sequel.rb b/config/initializers/sequel.rb index 26a2d58..f1d8af8 100644 --- a/config/initializers/sequel.rb +++ b/config/initializers/sequel.rb @@ -1,5 +1,4 @@ # frozen_string_literal: true - require 'pg' require 'sequel' diff --git a/config/schedule.rb b/config/schedule.rb index 67731cf..e51ba9e 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -1,5 +1,4 @@ # frozen_string_literal: true - job_type :rake, 'cd :path && foreman run bundle exec rake :task --silent :output' every '*/15 13,14,15,16,17 * * 1-5' do diff --git a/config/unicorn.rb b/config/unicorn.rb index bb3101f..9df511e 100644 --- a/config/unicorn.rb +++ b/config/unicorn.rb @@ -1,5 +1,4 @@ # frozen_string_literal: true - worker_process_count = (ENV['WORKER_PROCESSES'] || 4).to_i preload_app true diff --git a/lib/currency.rb b/lib/currency.rb index dcd5632..f6aae41 100644 --- a/lib/currency.rb +++ b/lib/currency.rb @@ -1,5 +1,4 @@ # frozen_string_literal: true - class Currency < Sequel::Model dataset_module do def recent diff --git a/lib/quote.rb b/lib/quote.rb index 003d976..eb08a6a 100644 --- a/lib/quote.rb +++ b/lib/quote.rb @@ -1,5 +1,4 @@ # frozen_string_literal: true - require 'currency' class Quote diff --git a/lib/tasks/db.rake b/lib/tasks/db.rake index 20be55c..776bc8b 100644 --- a/lib/tasks/db.rake +++ b/lib/tasks/db.rake @@ -1,5 +1,4 @@ # frozen_string_literal: true - namespace :db do desc 'Create db' task :create do diff --git a/lib/tasks/environment.rake b/lib/tasks/environment.rake index 95c6e48..8729c19 100644 --- a/lib/tasks/environment.rake +++ b/lib/tasks/environment.rake @@ -1,5 +1,4 @@ # frozen_string_literal: true - task :environment do require './config/environment' end diff --git a/lib/tasks/rates.rake b/lib/tasks/rates.rake index 554c8d7..0cbce1f 100644 --- a/lib/tasks/rates.rake +++ b/lib/tasks/rates.rake @@ -1,5 +1,4 @@ # frozen_string_literal: true - namespace :rates do task setup: :environment do require 'currency' diff --git a/lib/tasks/test.rake b/lib/tasks/test.rake index f8e092e..2e96839 100644 --- a/lib/tasks/test.rake +++ b/lib/tasks/test.rake @@ -1,5 +1,4 @@ # frozen_string_literal: true - return unless ENV['RACK_ENV'] == 'test' require 'rake/testtask' diff --git a/spec/currency_spec.rb b/spec/currency_spec.rb index 88d771c..f6a84f4 100644 --- a/spec/currency_spec.rb +++ b/spec/currency_spec.rb @@ -1,5 +1,4 @@ # frozen_string_literal: true - require_relative 'helper' require 'currency' diff --git a/spec/quote_spec.rb b/spec/quote_spec.rb index 06ba1b7..232a0c0 100644 --- a/spec/quote_spec.rb +++ b/spec/quote_spec.rb @@ -1,5 +1,4 @@ # frozen_string_literal: true - require_relative 'helper' require 'quote'