Add frozen_string_literal magic comment

re: https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/FrozenStringLiteralComment
This commit is contained in:
James Mason 2018-05-07 16:47:29 -07:00
parent dd0a52cca9
commit 6d31dfeef4
568 changed files with 1134 additions and 0 deletions

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
namespace :data do
desc 'Catitalize tracks, event types and difficult levels colors'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
namespace :db do
desc 'setup DATABASE_URL from CLEARDB_DATABASE_URL in config/database.yml'
task 'cleardb_env' do

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
namespace :data do
desc 'Nullify wrong foreign keys'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
namespace :data do
desc 'Create demo data using our factories'
task demo: :environment do

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
namespace :data do
desc 'Create demo data for our local development'
task test: :environment do

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'yaml'
task :dump_db do
yaml = YAML.load_file("config/database.yml")

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
namespace :db do
desc 'Destroy event_attachments versions'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
namespace :events_registrations do
desc "Deletes dupicate entries"
task deduplicate: :environment do

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
namespace :factory_girl do
desc "Verify that all FactoryGirl factories are valid"
task lint: :environment do

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
namespace :data do
namespace :migrate do
desc 'Resize existing logo of sponsors after change in image manipulation specifications'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
namespace :data do
namespace :migrate do
desc 'Create a dotenv file from config/config.yml'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
namespace :data do
desc 'Update resources with nil quantity/used fields'
task normalize_resources: :environment do

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
namespace :roles do
desc 'Adds back deleted roles to all conferences'
task add: :environment do

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
namespace :data do
desc 'Move the start_time and room attributes from Event to EventSchedule'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
namespace :user do
desc "Makes is_admin attribute true for user based on the supplied email address."
task :admin, [:email] => :environment do |t, args|

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
namespace :data do
desc 'Sets conference_id in all pre-existing PaperTrail::Version objects'
task set_conference_in_versions: :environment do