From bfe831341803a3e09eac26612743b1e72352194b Mon Sep 17 00:00:00 2001 From: Hakan Ensari Date: Wed, 30 Dec 2015 19:52:02 +0000 Subject: [PATCH] Use frozen_string_literal comment --- config/app.rb | 2 ++ lib/api.rb | 2 ++ lib/currency.rb | 2 ++ lib/quote.rb | 2 ++ lib/tasks/db.rake | 5 +++++ 5 files changed, 13 insertions(+) diff --git a/config/app.rb b/config/app.rb index 75de141..41193a0 100644 --- a/config/app.rb +++ b/config/app.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'logger' require 'pathname' diff --git a/lib/api.rb b/lib/api.rb index 6fe6b7d..41388f3 100644 --- a/lib/api.rb +++ b/lib/api.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'sinatra' require 'sinatra/cross_origin' require 'sinatra/jsonp' diff --git a/lib/currency.rb b/lib/currency.rb index 024980c..4437f0a 100644 --- a/lib/currency.rb +++ b/lib/currency.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Currency < Sequel::Model dataset_module do def recent diff --git a/lib/quote.rb b/lib/quote.rb index c7885d3..91d4bce 100644 --- a/lib/quote.rb +++ b/lib/quote.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'virtus' require 'currency' diff --git a/lib/tasks/db.rake b/lib/tasks/db.rake index c2faef7..f7686e2 100644 --- a/lib/tasks/db.rake +++ b/lib/tasks/db.rake @@ -1,4 +1,9 @@ namespace :db do + desc 'Create db' + task :create do + `createdb fixer` + end + desc 'Run database migrations' task migrate: :environment do Sequel.extension(:migration)