Set TargetRubyVersion to 2.3 in Rubocop

This commit is contained in:
Hakan Ensari 2016-04-11 15:05:15 +01:00
parent 168bfffd71
commit b6b697872e
15 changed files with 31 additions and 1 deletions

View File

@ -1,2 +1,4 @@
AllCops:
TargetRubyVersion: 2.3
Documentation: Documentation:
Enabled: false Enabled: false

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
source 'http://rubygems.org' source 'http://rubygems.org'
ruby '2.3.0' ruby '2.3.0'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require_relative 'app' require_relative 'app'
$LOAD_PATH << App.root.join('lib') $LOAD_PATH << App.root.join('lib')
Dir[App.root.join('config/initializers/*.rb')].each { |f| require f } Dir[App.root.join('config/initializers/*.rb')].each { |f| require f }

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'pg' require 'pg'
require 'sequel' require 'sequel'

View File

@ -1,5 +1,7 @@
# frozen_string_literal: true
job_type :rake, 'cd :path && foreman run bundle exec rake :task --silent :output' job_type :rake, 'cd :path && foreman run bundle exec rake :task --silent :output'
every '*/15 13,14,15,16,17 * * 1-5' do every '*/15 13,14,15,16,17 * * 1-5' do
rake "rates:update" rake 'rates:update'
end end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
preload_app true preload_app true
worker_processes((ENV['WORKER_PROCESSES'] || 4).to_i) worker_processes((ENV['WORKER_PROCESSES'] || 4).to_i)
timeout 10 timeout 10

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
Sequel.migration do Sequel.migration do
change do change do
create_table :currencies do create_table :currencies do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
namespace :db do namespace :db do
desc 'Create db' desc 'Create db'
task :create do task :create do

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
task :environment do task :environment do
require './config/environment' require './config/environment'
end end

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
namespace :rates do namespace :rates do
task setup: :environment do task setup: :environment do
require 'currency' require 'currency'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'rake/testtask' require 'rake/testtask'
Rake::TestTask.new(test: :environment) do |t| Rake::TestTask.new(test: :environment) do |t|

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require_relative 'helper' require_relative 'helper'
require 'rack/test' require 'rack/test'
require 'api' require 'api'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require_relative 'helper' require_relative 'helper'
require 'currency' require 'currency'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
ENV['RACK_ENV'] = 'test' ENV['RACK_ENV'] = 'test'
require './config/environment' require './config/environment'
require 'minitest/autorun' require 'minitest/autorun'

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require_relative 'helper' require_relative 'helper'
require 'quote' require 'quote'