mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Add frozen_string_literal magic comment
re: https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/FrozenStringLiteralComment
This commit is contained in:
parent
dd0a52cca9
commit
6d31dfeef4
568 changed files with 1134 additions and 0 deletions
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
namespace :data do
|
||||
desc 'Catitalize tracks, event types and difficult levels colors'
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
namespace :data do
|
||||
desc 'Nullify wrong foreign keys'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
namespace :data do
|
||||
desc 'Create demo data using our factories'
|
||||
task demo: :environment do
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
namespace :data do
|
||||
desc 'Create demo data for our local development'
|
||||
task test: :environment do
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'yaml'
|
||||
task :dump_db do
|
||||
yaml = YAML.load_file("config/database.yml")
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
namespace :db do
|
||||
desc 'Destroy event_attachments versions'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
namespace :events_registrations do
|
||||
desc "Deletes dupicate entries"
|
||||
task deduplicate: :environment do
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
namespace :factory_girl do
|
||||
desc "Verify that all FactoryGirl factories are valid"
|
||||
task lint: :environment do
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
namespace :data do
|
||||
namespace :migrate do
|
||||
desc 'Create a dotenv file from config/config.yml'
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
namespace :data do
|
||||
desc 'Update resources with nil quantity/used fields'
|
||||
task normalize_resources: :environment do
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
namespace :roles do
|
||||
desc 'Adds back deleted roles to all conferences'
|
||||
task add: :environment do
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
namespace :data do
|
||||
desc 'Move the start_time and room attributes from Event to EventSchedule'
|
||||
|
||||
|
|
|
|||
|
|
@ -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|
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue