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:
Enabled: false

View File

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

View File

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

View File

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'pg'
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'
every '*/15 13,14,15,16,17 * * 1-5' do
rake "rates:update"
rake 'rates:update'
end

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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