From 2e869950381cecbb6834766ee1c2b79ab35c4289 Mon Sep 17 00:00:00 2001 From: "Justin Craig-Kuhn (JCK)" Date: Mon, 2 Oct 2023 18:17:12 -0700 Subject: [PATCH] Remove frozen string literal comments --- .rubocop.yml | 2 ++ Gemfile | 1 - Rakefile | 1 - app/controllers/ambiguity_controller.rb | 1 - app/controllers/api/v1/api_controller.rb | 1 - app/controllers/api/v1/eras_controller.rb | 1 - app/controllers/api/v1/playlists_controller.rb | 1 - app/controllers/api/v1/search_controller.rb | 1 - app/controllers/api/v1/shows_controller.rb | 1 - app/controllers/api/v1/songs_controller.rb | 1 - app/controllers/api/v1/tags_controller.rb | 1 - app/controllers/api/v1/tours_controller.rb | 1 - app/controllers/api/v1/tracks_controller.rb | 1 - app/controllers/api/v1/venues_controller.rb | 1 - app/controllers/api/v1/years_controller.rb | 1 - app/controllers/application_controller.rb | 1 - app/controllers/concerns/ambiguity/date.rb | 1 - app/controllers/concerns/ambiguity/day_of_year.rb | 1 - app/controllers/concerns/ambiguity/song_title.rb | 1 - app/controllers/concerns/ambiguity/tour_name.rb | 1 - app/controllers/concerns/ambiguity/venue_name.rb | 1 - app/controllers/concerns/ambiguity/year.rb | 1 - app/controllers/concerns/ambiguity/year_range.rb | 1 - app/controllers/concerns/api_auth.rb | 1 - app/controllers/downloads_controller.rb | 1 - app/controllers/eras_controller.rb | 1 - app/controllers/feeds_controller.rb | 1 - app/controllers/likes_controller.rb | 1 - app/controllers/map_controller.rb | 1 - app/controllers/my_controller.rb | 1 - app/controllers/playlists_controller.rb | 1 - app/controllers/reports_controller.rb | 1 - app/controllers/search_controller.rb | 1 - app/controllers/songs_controller.rb | 1 - app/controllers/static_pages_controller.rb | 1 - app/controllers/tags_controller.rb | 1 - app/controllers/top_shows_controller.rb | 1 - app/controllers/top_tracks_controller.rb | 1 - app/controllers/venues_controller.rb | 1 - app/helpers/application_helper.rb | 1 - app/helpers/navigation_helper.rb | 1 - app/helpers/playlist_helper.rb | 1 - app/helpers/sort_helper.rb | 1 - app/helpers/tag_helper.rb | 1 - app/helpers/track_helper.rb | 1 - app/models/announcement.rb | 1 - app/models/api_key.rb | 1 - app/models/application_record.rb | 1 - app/models/known_date.rb | 1 - app/models/like.rb | 1 - app/models/playlist.rb | 1 - app/models/playlist_bookmark.rb | 1 - app/models/playlist_track.rb | 1 - app/models/show.rb | 1 - app/models/show_tag.rb | 1 - app/models/song.rb | 1 - app/models/songs_track.rb | 1 - app/models/tag.rb | 1 - app/models/tour.rb | 1 - app/models/track.rb | 1 - app/models/track_tag.rb | 1 - app/models/user.rb | 1 - app/models/venue.rb | 1 - app/models/venue_rename.rb | 1 - app/services/date_parser.rb | 1 - app/services/duration_formatter.rb | 1 - app/services/google_spreadsheet_fetcher.rb | 3 +-- app/services/id3_tagger.rb | 1 - app/services/jamcharts_importer.rb | 3 +-- app/services/mp3_duration_query.rb | 1 - app/services/search_service.rb | 1 - app/services/show_importer/cli.rb | 1 - app/services/show_importer/filename_matcher.rb | 1 - app/services/show_importer/orchestrator.rb | 1 - app/services/show_importer/show_info.rb | 3 +-- app/services/show_importer/track_replacer.rb | 1 - app/services/syncable.rb | 1 - app/services/track_inserter.rb | 1 - app/services/track_slug_generator.rb | 1 - app/services/track_tag_sync_service.rb | 1 - app/services/waveform.rb | 6 ++---- app/services/waveform_image_generator.rb | 1 - app/uploaders/audio_file_uploader.rb | 1 - app/uploaders/phishin_uploader.rb | 1 - app/uploaders/waveform_image_uploader.rb | 1 - app/views/feeds/rss.xml.builder | 1 - config.ru | 1 - config/application.rb | 1 - config/boot.rb | 1 - config/environment.rb | 1 - config/environments/development.rb | 1 - config/environments/production.rb | 1 - config/environments/test.rb | 1 - config/initializers/app_constants.rb | 13 ++++++------- config/initializers/devise.rb | 2 -- config/initializers/filter_paramater_logging.rb | 1 - config/initializers/session_store.rb | 1 - config/initializers/shrine.rb | 1 - config/initializers/wrap_parameters.rb | 1 - config/puma.rb | 1 - config/routes.rb | 1 - spec/api/v1/api_controller_spec.rb | 1 - spec/api/v1/eras_controller_spec.rb | 1 - spec/api/v1/playlists_controller_spec.rb | 1 - spec/api/v1/search_controller_spec.rb | 1 - spec/api/v1/shows_controller_spec.rb | 1 - spec/api/v1/songs_controller_spec.rb | 1 - spec/api/v1/tags_controller_spec.rb | 1 - spec/api/v1/tours_controller_spec.rb | 1 - spec/api/v1/tracks_controller_spec.rb | 1 - spec/api/v1/venues_controller_spec.rb | 1 - spec/api/v1/years_controller_spec.rb | 1 - spec/factories/announcement.rb | 1 - spec/factories/api_key.rb | 1 - spec/factories/api_request.rb | 1 - spec/factories/known_date.rb | 1 - spec/factories/like.rb | 1 - spec/factories/playlist.rb | 1 - spec/factories/playlist_bookmark.rb | 1 - spec/factories/playlist_track.rb | 1 - spec/factories/show.rb | 1 - spec/factories/show_tag.rb | 1 - spec/factories/song.rb | 1 - spec/factories/songs_track.rb | 1 - spec/factories/tag.rb | 1 - spec/factories/tour.rb | 1 - spec/factories/track.rb | 1 - spec/factories/track_tag.rb | 1 - spec/factories/user.rb | 1 - spec/factories/venue.rb | 1 - spec/factories/venue_rename.rb | 1 - spec/features/ambiguous_slug_spec.rb | 1 - spec/features/auth/change_password_spec.rb | 1 - spec/features/auth/reset_password_spec.rb | 1 - spec/features/auth/user_registration_spec.rb | 1 - spec/features/auth/user_sessions_spec.rb | 1 - spec/features/feeds_spec.rb | 1 - spec/features/homepage_spec.rb | 1 - spec/features/map_spec.rb | 1 - spec/features/my_shows_spec.rb | 1 - spec/features/my_tracks_spec.rb | 1 - spec/features/play_random_show_spec.rb | 1 - spec/features/player_spec.rb | 1 - spec/features/playlists_spec.rb | 1 - spec/features/search_spec.rb | 1 - spec/features/show_context_menus_spec.rb | 1 - spec/features/show_spec.rb | 1 - spec/features/song_spec.rb | 1 - spec/features/songs_spec.rb | 1 - spec/features/static_pages_spec.rb | 1 - spec/features/tag_spec.rb | 1 - spec/features/tags_spec.rb | 1 - spec/features/top_40_spec.rb | 1 - spec/features/track_context_menus_spec.rb | 1 - spec/features/venue_spec.rb | 1 - spec/features/venues_spec.rb | 1 - spec/features/year_spec.rb | 1 - spec/models/api_key_spec.rb | 1 - spec/models/application_record_spec.rb | 1 - spec/models/known_date_spec.rb | 1 - spec/models/like_spec.rb | 1 - spec/models/playlist_bookmark_spec.rb | 1 - spec/models/playlist_spec.rb | 1 - spec/models/playlist_track_spec.rb | 1 - spec/models/show_spec.rb | 1 - spec/models/show_tag_spec.rb | 1 - spec/models/song_spec.rb | 1 - spec/models/songs_track_spec.rb | 1 - spec/models/tag_spec.rb | 1 - spec/models/tour_spec.rb | 1 - spec/models/track_spec.rb | 1 - spec/models/track_tag_spec.rb | 1 - spec/models/user_spec.rb | 1 - spec/models/venue_rename_spec.rb | 1 - spec/models/venue_spec.rb | 1 - spec/rails_helper.rb | 1 - spec/services/date_parser_spec.rb | 1 - spec/services/duration_formatter_spec.rb | 1 - spec/services/id3_tagger_spec.rb | 1 - spec/services/mp3_duration_query_spec.rb | 1 - spec/services/search_service_spec.rb | 1 - spec/services/track_inserter_spec.rb | 1 - spec/services/track_slug_generator_spec.rb | 1 - spec/spec_helper.rb | 1 - spec/support/appear_before.rb | 1 - spec/support/auth_helper.rb | 1 - spec/support/capybara.rb | 1 - spec/support/factory_bot.rb | 1 - spec/support/feature_helpers.rb | 1 - spec/support/shared_examples.rb | 1 - spec/support/shoulda.rb | 1 - spec/support/shrine_test_data.rb | 1 - spec/uploaders/audio_file_uploader_spec.rb | 1 - 193 files changed, 13 insertions(+), 205 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index f833128b..04d809cd 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -75,6 +75,8 @@ Style/Documentation: Enabled: false Style/FormatStringToken: Enabled: false +Style/FrozenStringLiteralComment: + EnforcedStyle: never Style/HashTransformValues: Enabled: false Style/MissingRespondToMissing: diff --git a/Gemfile b/Gemfile index 0877861e..e5a6850f 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,3 @@ -# frozen_string_literal: true source 'https://rubygems.org' git_source(:github) { |repo| "https://github.com/#{repo}.git" } diff --git a/Rakefile b/Rakefile index ed9a70b8..b3c47783 100644 --- a/Rakefile +++ b/Rakefile @@ -1,3 +1,2 @@ -# frozen_string_literal: true require_relative 'config/application' Rails.application.load_tasks diff --git a/app/controllers/ambiguity_controller.rb b/app/controllers/ambiguity_controller.rb index e2299af5..d7159135 100644 --- a/app/controllers/ambiguity_controller.rb +++ b/app/controllers/ambiguity_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class AmbiguityController < ApplicationController include Ambiguity::Date include Ambiguity::DayOfYear diff --git a/app/controllers/api/v1/api_controller.rb b/app/controllers/api/v1/api_controller.rb index 4e79008e..27cc5ae3 100644 --- a/app/controllers/api/v1/api_controller.rb +++ b/app/controllers/api/v1/api_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class Api::V1::ApiController < ActionController::Base # rubocop:disable Rails/ApplicationController include ApiAuth diff --git a/app/controllers/api/v1/eras_controller.rb b/app/controllers/api/v1/eras_controller.rb index ba9c1cec..71794f81 100644 --- a/app/controllers/api/v1/eras_controller.rb +++ b/app/controllers/api/v1/eras_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class Api::V1::ErasController < Api::V1::ApiController caches_action_params :index caches_action_params :show, %i[id] diff --git a/app/controllers/api/v1/playlists_controller.rb b/app/controllers/api/v1/playlists_controller.rb index 74f118c7..a37f5a19 100644 --- a/app/controllers/api/v1/playlists_controller.rb +++ b/app/controllers/api/v1/playlists_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class Api::V1::PlaylistsController < Api::V1::ApiController caches_action_params :show, %i[id] diff --git a/app/controllers/api/v1/search_controller.rb b/app/controllers/api/v1/search_controller.rb index 8553b4ed..71e4000d 100644 --- a/app/controllers/api/v1/search_controller.rb +++ b/app/controllers/api/v1/search_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class Api::V1::SearchController < Api::V1::ApiController def index return respond_with_invalid_term unless results diff --git a/app/controllers/api/v1/shows_controller.rb b/app/controllers/api/v1/shows_controller.rb index a35b0041..1e19bedf 100644 --- a/app/controllers/api/v1/shows_controller.rb +++ b/app/controllers/api/v1/shows_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class Api::V1::ShowsController < Api::V1::ApiController caches_action_params :index caches_action_params :show diff --git a/app/controllers/api/v1/songs_controller.rb b/app/controllers/api/v1/songs_controller.rb index 9903d7cf..e28665ec 100644 --- a/app/controllers/api/v1/songs_controller.rb +++ b/app/controllers/api/v1/songs_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class Api::V1::SongsController < Api::V1::ApiController caches_action_params :index caches_action_params :show diff --git a/app/controllers/api/v1/tags_controller.rb b/app/controllers/api/v1/tags_controller.rb index b96d16af..81646a9a 100644 --- a/app/controllers/api/v1/tags_controller.rb +++ b/app/controllers/api/v1/tags_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class Api::V1::TagsController < Api::V1::ApiController caches_action_params :index caches_action_params :show diff --git a/app/controllers/api/v1/tours_controller.rb b/app/controllers/api/v1/tours_controller.rb index 90a972e8..04bccb2c 100644 --- a/app/controllers/api/v1/tours_controller.rb +++ b/app/controllers/api/v1/tours_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class Api::V1::ToursController < Api::V1::ApiController caches_action_params :index caches_action_params :show diff --git a/app/controllers/api/v1/tracks_controller.rb b/app/controllers/api/v1/tracks_controller.rb index 7ab3e698..9f4350e6 100644 --- a/app/controllers/api/v1/tracks_controller.rb +++ b/app/controllers/api/v1/tracks_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class Api::V1::TracksController < Api::V1::ApiController caches_action_params :index caches_action_params :show diff --git a/app/controllers/api/v1/venues_controller.rb b/app/controllers/api/v1/venues_controller.rb index 0f29302a..0ad3e452 100644 --- a/app/controllers/api/v1/venues_controller.rb +++ b/app/controllers/api/v1/venues_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class Api::V1::VenuesController < Api::V1::ApiController caches_action_params :index caches_action_params :show diff --git a/app/controllers/api/v1/years_controller.rb b/app/controllers/api/v1/years_controller.rb index f990c864..03c05bb3 100644 --- a/app/controllers/api/v1/years_controller.rb +++ b/app/controllers/api/v1/years_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class Api::V1::YearsController < Api::V1::ApiController caches_action_params :index, %i[include_show_counts] caches_action_params :show diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index e19a7a58..00ffcfad 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class ApplicationController < ActionController::Base include ApplicationHelper protect_from_forgery diff --git a/app/controllers/concerns/ambiguity/date.rb b/app/controllers/concerns/ambiguity/date.rb index 801cf688..4e831f20 100644 --- a/app/controllers/concerns/ambiguity/date.rb +++ b/app/controllers/concerns/ambiguity/date.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true module Ambiguity::Date def slug_as_date return false if date_from_slug.blank? diff --git a/app/controllers/concerns/ambiguity/day_of_year.rb b/app/controllers/concerns/ambiguity/day_of_year.rb index 6a351cd7..52e66b84 100644 --- a/app/controllers/concerns/ambiguity/day_of_year.rb +++ b/app/controllers/concerns/ambiguity/day_of_year.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true module Ambiguity::DayOfYear TODAY_SLUGS = %w[today today-in-history].freeze diff --git a/app/controllers/concerns/ambiguity/song_title.rb b/app/controllers/concerns/ambiguity/song_title.rb index 3303eed3..da3c8f54 100644 --- a/app/controllers/concerns/ambiguity/song_title.rb +++ b/app/controllers/concerns/ambiguity/song_title.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true module Ambiguity::SongTitle def slug_as_song return false if song.blank? diff --git a/app/controllers/concerns/ambiguity/tour_name.rb b/app/controllers/concerns/ambiguity/tour_name.rb index 9e8f1bac..ba522b22 100644 --- a/app/controllers/concerns/ambiguity/tour_name.rb +++ b/app/controllers/concerns/ambiguity/tour_name.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true module Ambiguity::TourName def slug_as_tour return false if tour.blank? diff --git a/app/controllers/concerns/ambiguity/venue_name.rb b/app/controllers/concerns/ambiguity/venue_name.rb index 0e3c78e1..6fcedb6f 100644 --- a/app/controllers/concerns/ambiguity/venue_name.rb +++ b/app/controllers/concerns/ambiguity/venue_name.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true module Ambiguity::VenueName def slug_as_venue return false if venue.blank? diff --git a/app/controllers/concerns/ambiguity/year.rb b/app/controllers/concerns/ambiguity/year.rb index a0e14f9c..eee278ef 100644 --- a/app/controllers/concerns/ambiguity/year.rb +++ b/app/controllers/concerns/ambiguity/year.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true module Ambiguity::Year def slug_as_year return false if year_from_slug.blank? diff --git a/app/controllers/concerns/ambiguity/year_range.rb b/app/controllers/concerns/ambiguity/year_range.rb index aa93bb2c..e4efa932 100644 --- a/app/controllers/concerns/ambiguity/year_range.rb +++ b/app/controllers/concerns/ambiguity/year_range.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true module Ambiguity::YearRange def slug_as_year_range return false if year_range_from_slug.blank? diff --git a/app/controllers/concerns/api_auth.rb b/app/controllers/concerns/api_auth.rb index 84b8ea27..ee78b928 100644 --- a/app/controllers/concerns/api_auth.rb +++ b/app/controllers/concerns/api_auth.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true module ApiAuth def require_auth return true if phish_od? # Skip auth for legacy iOS PhishOD app diff --git a/app/controllers/downloads_controller.rb b/app/controllers/downloads_controller.rb index 079bd71e..ab5b060a 100644 --- a/app/controllers/downloads_controller.rb +++ b/app/controllers/downloads_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class DownloadsController < ApplicationController def track_info # rubocop:disable Metrics/AbcSize, Metrics/MethodLength return render json: { success: false } unless track diff --git a/app/controllers/eras_controller.rb b/app/controllers/eras_controller.rb index 5ed0d253..2348e261 100644 --- a/app/controllers/eras_controller.rb +++ b/app/controllers/eras_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class ErasController < ApplicationController caches_action_params :index diff --git a/app/controllers/feeds_controller.rb b/app/controllers/feeds_controller.rb index 3e7e03a5..66ea5d0e 100644 --- a/app/controllers/feeds_controller.rb +++ b/app/controllers/feeds_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class FeedsController < ApplicationController def rss @announcements = Announcement.order(created_at: :desc) diff --git a/app/controllers/likes_controller.rb b/app/controllers/likes_controller.rb index daff0f11..13a027ff 100644 --- a/app/controllers/likes_controller.rb +++ b/app/controllers/likes_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class LikesController < ApplicationController before_action :authorize_user! diff --git a/app/controllers/map_controller.rb b/app/controllers/map_controller.rb index 358e1289..ee340d3c 100644 --- a/app/controllers/map_controller.rb +++ b/app/controllers/map_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class MapController < ApplicationController def index params[:date_start] ||= '1983-01-01' diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb index 37cb09b7..d4170a37 100644 --- a/app/controllers/my_controller.rb +++ b/app/controllers/my_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class MyController < ApplicationController def my_shows return unless current_user diff --git a/app/controllers/playlists_controller.rb b/app/controllers/playlists_controller.rb index 29913f70..48aafd00 100644 --- a/app/controllers/playlists_controller.rb +++ b/app/controllers/playlists_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class PlaylistsController < ApplicationController EMPTY_PLAYLIST = { tracks: [], diff --git a/app/controllers/reports_controller.rb b/app/controllers/reports_controller.rb index 29245ca3..c99b78b4 100644 --- a/app/controllers/reports_controller.rb +++ b/app/controllers/reports_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class ReportsController < ApplicationController caches_action_params :missing_content diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb index eb32ab7c..7c5e7a55 100644 --- a/app/controllers/search_controller.rb +++ b/app/controllers/search_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class SearchController < ApplicationController def results perform_search diff --git a/app/controllers/songs_controller.rb b/app/controllers/songs_controller.rb index 050fa7e1..5e93e165 100644 --- a/app/controllers/songs_controller.rb +++ b/app/controllers/songs_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class SongsController < ApplicationController caches_action_params :index, %i[char sort] diff --git a/app/controllers/static_pages_controller.rb b/app/controllers/static_pages_controller.rb index 8f41e788..d1ffdfcb 100644 --- a/app/controllers/static_pages_controller.rb +++ b/app/controllers/static_pages_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class StaticPagesController < ApplicationController def faq render_xhr_without_layout diff --git a/app/controllers/tags_controller.rb b/app/controllers/tags_controller.rb index cbf5d7c0..46dc0412 100644 --- a/app/controllers/tags_controller.rb +++ b/app/controllers/tags_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class TagsController < ApplicationController caches_action_params :index caches_action_params :show, %i[entity] diff --git a/app/controllers/top_shows_controller.rb b/app/controllers/top_shows_controller.rb index 1ffc286f..6422bff2 100644 --- a/app/controllers/top_shows_controller.rb +++ b/app/controllers/top_shows_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class TopShowsController < ApplicationController caches_action_params :index diff --git a/app/controllers/top_tracks_controller.rb b/app/controllers/top_tracks_controller.rb index dbb529f3..8f1adc61 100644 --- a/app/controllers/top_tracks_controller.rb +++ b/app/controllers/top_tracks_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class TopTracksController < ApplicationController caches_action_params :index diff --git a/app/controllers/venues_controller.rb b/app/controllers/venues_controller.rb index 71007984..062dc990 100644 --- a/app/controllers/venues_controller.rb +++ b/app/controllers/venues_controller.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class VenuesController < ApplicationController caches_action_params :index diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index b6412d2a..f8866421 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true module ApplicationHelper def clear_both tag.div(style: 'clear: both;') diff --git a/app/helpers/navigation_helper.rb b/app/helpers/navigation_helper.rb index 5888db8b..90b100eb 100644 --- a/app/helpers/navigation_helper.rb +++ b/app/helpers/navigation_helper.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true module NavigationHelper def global_nav(controller) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength str = '' diff --git a/app/helpers/playlist_helper.rb b/app/helpers/playlist_helper.rb index 56a1a571..4baa2dbd 100644 --- a/app/helpers/playlist_helper.rb +++ b/app/helpers/playlist_helper.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true module PlaylistHelper def playlist_filter_hash { diff --git a/app/helpers/sort_helper.rb b/app/helpers/sort_helper.rb index 2910a8d1..718c21c6 100644 --- a/app/helpers/sort_helper.rb +++ b/app/helpers/sort_helper.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true module SortHelper def sort_songs_and_venues_links(item_hash) item_hash.map do |k, v| diff --git a/app/helpers/tag_helper.rb b/app/helpers/tag_helper.rb index dd9c22ad..4cd5245d 100644 --- a/app/helpers/tag_helper.rb +++ b/app/helpers/tag_helper.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true module TagHelper def display_tag_instances(tag_instances, css_class = 'show_tag_container') tag_groups = diff --git a/app/helpers/track_helper.rb b/app/helpers/track_helper.rb index 5bd52084..73dfff8b 100644 --- a/app/helpers/track_helper.rb +++ b/app/helpers/track_helper.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true module TrackHelper def next_gap_link(song, date) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength next_show = diff --git a/app/models/announcement.rb b/app/models/announcement.rb index 2ab65a65..aa98a0e5 100644 --- a/app/models/announcement.rb +++ b/app/models/announcement.rb @@ -1,3 +1,2 @@ -# frozen_string_literal: true class Announcement < ApplicationRecord end diff --git a/app/models/api_key.rb b/app/models/api_key.rb index 28bd8aaa..789fc476 100644 --- a/app/models/api_key.rb +++ b/app/models/api_key.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class ApiKey < ApplicationRecord scope :revoked, -> { where.not(revoked_at: nil) } scope :not_revoked, -> { where(revoked_at: nil) } diff --git a/app/models/application_record.rb b/app/models/application_record.rb index 767a072b..10a4cba8 100644 --- a/app/models/application_record.rb +++ b/app/models/application_record.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class ApplicationRecord < ActiveRecord::Base self.abstract_class = true end diff --git a/app/models/known_date.rb b/app/models/known_date.rb index 0d67907c..c95a27be 100644 --- a/app/models/known_date.rb +++ b/app/models/known_date.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class KnownDate < ApplicationRecord validates :date, uniqueness: true validates :phishnet_url, :venue, :location, presence: true diff --git a/app/models/like.rb b/app/models/like.rb index 28892c5f..0d49029d 100644 --- a/app/models/like.rb +++ b/app/models/like.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class Like < ApplicationRecord belongs_to :likable, polymorphic: true, counter_cache: true belongs_to :user diff --git a/app/models/playlist.rb b/app/models/playlist.rb index c03eb510..458a20a1 100644 --- a/app/models/playlist.rb +++ b/app/models/playlist.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class Playlist < ApplicationRecord MAX_TRACKS = 100 diff --git a/app/models/playlist_bookmark.rb b/app/models/playlist_bookmark.rb index 4a8fced7..d6a02107 100644 --- a/app/models/playlist_bookmark.rb +++ b/app/models/playlist_bookmark.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class PlaylistBookmark < ApplicationRecord belongs_to :playlist belongs_to :user diff --git a/app/models/playlist_track.rb b/app/models/playlist_track.rb index 87365973..8c19b5a2 100644 --- a/app/models/playlist_track.rb +++ b/app/models/playlist_track.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class PlaylistTrack < ApplicationRecord belongs_to :playlist belongs_to :track diff --git a/app/models/show.rb b/app/models/show.rb index 75083adf..be02e8fe 100644 --- a/app/models/show.rb +++ b/app/models/show.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class Show < ApplicationRecord belongs_to :tour, counter_cache: true belongs_to :venue, counter_cache: true diff --git a/app/models/show_tag.rb b/app/models/show_tag.rb index b5e14bb7..028c3a69 100644 --- a/app/models/show_tag.rb +++ b/app/models/show_tag.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class ShowTag < ApplicationRecord belongs_to :show, counter_cache: :tags_count belongs_to :tag, counter_cache: :shows_count diff --git a/app/models/song.rb b/app/models/song.rb index 622f4af4..a3802713 100644 --- a/app/models/song.rb +++ b/app/models/song.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class Song < ApplicationRecord has_many :songs_tracks, dependent: :destroy has_many :tracks, through: :songs_tracks diff --git a/app/models/songs_track.rb b/app/models/songs_track.rb index 2148e659..633b507c 100644 --- a/app/models/songs_track.rb +++ b/app/models/songs_track.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class SongsTrack < ApplicationRecord belongs_to :track belongs_to :song, counter_cache: :tracks_count diff --git a/app/models/tag.rb b/app/models/tag.rb index f24ca4a5..a99847e5 100644 --- a/app/models/tag.rb +++ b/app/models/tag.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class Tag < ApplicationRecord has_many :show_tags, dependent: :destroy has_many :shows, through: :show_tags diff --git a/app/models/tour.rb b/app/models/tour.rb index 423b1464..70756522 100644 --- a/app/models/tour.rb +++ b/app/models/tour.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class Tour < ApplicationRecord has_many :shows, dependent: :nullify diff --git a/app/models/track.rb b/app/models/track.rb index 04cdce55..b044f1b8 100644 --- a/app/models/track.rb +++ b/app/models/track.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class Track < ApplicationRecord belongs_to :show has_many :songs_tracks, dependent: :destroy diff --git a/app/models/track_tag.rb b/app/models/track_tag.rb index 5486a895..36ea4805 100644 --- a/app/models/track_tag.rb +++ b/app/models/track_tag.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class TrackTag < ApplicationRecord belongs_to :track, counter_cache: :tags_count belongs_to :tag, counter_cache: :tracks_count diff --git a/app/models/user.rb b/app/models/user.rb index 495d4600..b3d8cf16 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class User < ApplicationRecord has_many :playlists, dependent: :destroy has_many :playlist_bookmarks, dependent: :destroy diff --git a/app/models/venue.rb b/app/models/venue.rb index cef0238e..9f413d14 100644 --- a/app/models/venue.rb +++ b/app/models/venue.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class Venue < ApplicationRecord has_many :shows, dependent: :nullify has_many :venue_renames, dependent: :destroy diff --git a/app/models/venue_rename.rb b/app/models/venue_rename.rb index 3a091142..c691a97e 100644 --- a/app/models/venue_rename.rb +++ b/app/models/venue_rename.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class VenueRename < ApplicationRecord belongs_to :venue diff --git a/app/services/date_parser.rb b/app/services/date_parser.rb index 2d8c3549..8e5567d2 100644 --- a/app/services/date_parser.rb +++ b/app/services/date_parser.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class DateParser attr_reader :str, :date_parts diff --git a/app/services/duration_formatter.rb b/app/services/duration_formatter.rb index ac1d8318..07cee4fd 100644 --- a/app/services/duration_formatter.rb +++ b/app/services/duration_formatter.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class DurationFormatter attr_reader :duration, :seconds, :minutes, :hours, :days, :style diff --git a/app/services/google_spreadsheet_fetcher.rb b/app/services/google_spreadsheet_fetcher.rb index 679fad6a..1c65c04b 100644 --- a/app/services/google_spreadsheet_fetcher.rb +++ b/app/services/google_spreadsheet_fetcher.rb @@ -1,8 +1,7 @@ -# frozen_string_literal: true class GoogleSpreadsheetFetcher attr_reader :spreadsheet_id, :range, :has_headers - OOB_URI = 'urn:ietf:wg:oauth:2.0:oob' + OOB_URI = 'urn:ietf:wg:oauth:2.0:oob'.freeze TOKEN_PATH = Rails.root.join('config/google_api.yml') def initialize(spreadsheet_id, range, opts = {}) diff --git a/app/services/id3_tagger.rb b/app/services/id3_tagger.rb index 54e03c7e..dce88baf 100644 --- a/app/services/id3_tagger.rb +++ b/app/services/id3_tagger.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'mp3info' class Id3Tagger diff --git a/app/services/jamcharts_importer.rb b/app/services/jamcharts_importer.rb index 66784dd7..7b9f858c 100644 --- a/app/services/jamcharts_importer.rb +++ b/app/services/jamcharts_importer.rb @@ -1,8 +1,7 @@ -# frozen_string_literal: true class JamchartsImporter include ActionView::Helpers::SanitizeHelper - BASE_URL = 'https://api.phish.net/v5' + BASE_URL = 'https://api.phish.net/v5'.freeze API_KEY = ENV.fetch('PNET_API_KEY', nil) attr_reader :api_key, :invalid_items, :missing_shows, :matched_ids diff --git a/app/services/mp3_duration_query.rb b/app/services/mp3_duration_query.rb index 203af070..6e0eead6 100644 --- a/app/services/mp3_duration_query.rb +++ b/app/services/mp3_duration_query.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'mp3info' class Mp3DurationQuery diff --git a/app/services/search_service.rb b/app/services/search_service.rb index 0398d31a..81088dbb 100644 --- a/app/services/search_service.rb +++ b/app/services/search_service.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class SearchService attr_reader :term diff --git a/app/services/show_importer/cli.rb b/app/services/show_importer/cli.rb index beac8f36..5cf288d0 100644 --- a/app/services/show_importer/cli.rb +++ b/app/services/show_importer/cli.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'readline' class ShowImporter::Cli diff --git a/app/services/show_importer/filename_matcher.rb b/app/services/show_importer/filename_matcher.rb index 03109962..a49d6823 100644 --- a/app/services/show_importer/filename_matcher.rb +++ b/app/services/show_importer/filename_matcher.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class ShowImporter::FilenameMatcher attr_reader :matches, :dir diff --git a/app/services/show_importer/orchestrator.rb b/app/services/show_importer/orchestrator.rb index 70a4f7cf..13499d08 100644 --- a/app/services/show_importer/orchestrator.rb +++ b/app/services/show_importer/orchestrator.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class ShowImporter::Orchestrator attr_reader :fm, :date, :show_found, :path, :show_info diff --git a/app/services/show_importer/show_info.rb b/app/services/show_importer/show_info.rb index 7224cfb5..491172f1 100644 --- a/app/services/show_importer/show_info.rb +++ b/app/services/show_importer/show_info.rb @@ -1,6 +1,5 @@ -# frozen_string_literal: true class ShowImporter::ShowInfo - BASE_URL = 'https://api.phish.net/v5' + BASE_URL = 'https://api.phish.net/v5'.freeze API_KEY = ENV.fetch('PNET_API_KEY', nil) attr_reader :date, :data, :songs diff --git a/app/services/show_importer/track_replacer.rb b/app/services/show_importer/track_replacer.rb index eaf74b72..3b9ed871 100644 --- a/app/services/show_importer/track_replacer.rb +++ b/app/services/show_importer/track_replacer.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'highline' class ShowImporter::TrackReplacer diff --git a/app/services/syncable.rb b/app/services/syncable.rb index c4459742..230f4cb4 100644 --- a/app/services/syncable.rb +++ b/app/services/syncable.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true module Syncable private diff --git a/app/services/track_inserter.rb b/app/services/track_inserter.rb index 3d2b68de..e6850326 100644 --- a/app/services/track_inserter.rb +++ b/app/services/track_inserter.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class TrackInserter attr_reader :date, :position, :file, :title, :song_id, :set, :track diff --git a/app/services/track_slug_generator.rb b/app/services/track_slug_generator.rb index b0411c10..9b8afe9c 100644 --- a/app/services/track_slug_generator.rb +++ b/app/services/track_slug_generator.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class TrackSlugGenerator attr_reader :track diff --git a/app/services/track_tag_sync_service.rb b/app/services/track_tag_sync_service.rb index 069afc9d..007268fc 100644 --- a/app/services/track_tag_sync_service.rb +++ b/app/services/track_tag_sync_service.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'csv' class TrackTagSyncService diff --git a/app/services/waveform.rb b/app/services/waveform.rb index c70f9484..48679577 100644 --- a/app/services/waveform.rb +++ b/app/services/waveform.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - # Entire file copied from https://github.com/benalavi/waveform # to fix issue with `File.exists?` removal in Ruby 3.2.0 @@ -20,8 +18,8 @@ class Waveform force: false, logger: nil }.freeze - TRANSPARENCY_MASK = '#00ff00' - TRANSPARENCY_ALT = '#ffff00' + TRANSPARENCY_MASK = '#00ff00'.freeze + TRANSPARENCY_ALT = '#ffff00'.freeze attr_reader :source diff --git a/app/services/waveform_image_generator.rb b/app/services/waveform_image_generator.rb index 335aa86e..1ea81596 100644 --- a/app/services/waveform_image_generator.rb +++ b/app/services/waveform_image_generator.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class WaveformImageGenerator attr_reader :track, :data diff --git a/app/uploaders/audio_file_uploader.rb b/app/uploaders/audio_file_uploader.rb index 0c5bf8c4..b2eb4fb0 100644 --- a/app/uploaders/audio_file_uploader.rb +++ b/app/uploaders/audio_file_uploader.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class AudioFileUploader < PhishinUploader def generate_location(_io, record: nil, _name: nil, **) "#{partition_path(record)}/#{record.id}.mp3" diff --git a/app/uploaders/phishin_uploader.rb b/app/uploaders/phishin_uploader.rb index 8d7ca442..52bbfa3b 100644 --- a/app/uploaders/phishin_uploader.rb +++ b/app/uploaders/phishin_uploader.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class PhishinUploader < Shrine protected diff --git a/app/uploaders/waveform_image_uploader.rb b/app/uploaders/waveform_image_uploader.rb index 74bacbaf..989cab69 100644 --- a/app/uploaders/waveform_image_uploader.rb +++ b/app/uploaders/waveform_image_uploader.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true class WaveformImageUploader < PhishinUploader def generate_location(_io, record: nil, _name: nil, **) "#{partition_path(record)}/#{record.id}.png" diff --git a/app/views/feeds/rss.xml.builder b/app/views/feeds/rss.xml.builder index d909a275..6538dbcd 100644 --- a/app/views/feeds/rss.xml.builder +++ b/app/views/feeds/rss.xml.builder @@ -1,4 +1,3 @@ -# frozen_string_literal: true xml.instruct! :xml, version: '1.0' xml.rss version: '2.0' do xml.channel do diff --git a/config.ru b/config.ru index 84f84dee..47bbd406 100644 --- a/config.ru +++ b/config.ru @@ -1,3 +1,2 @@ -# frozen_string_literal: true require_relative 'config/environment' run Rails.application diff --git a/config/application.rb b/config/application.rb index 0840b413..8cb608fb 100644 --- a/config/application.rb +++ b/config/application.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require_relative 'boot' require 'rails' diff --git a/config/boot.rb b/config/boot.rb index de6b72b4..002b02c7 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -1,3 +1,2 @@ -# frozen_string_literal: true ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) require 'bundler/setup' diff --git a/config/environment.rb b/config/environment.rb index 378b4716..5e8656e7 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -1,3 +1,2 @@ -# frozen_string_literal: true require_relative 'application' Rails.application.initialize! diff --git a/config/environments/development.rb b/config/environments/development.rb index a3657c62..60d35020 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb diff --git a/config/environments/production.rb b/config/environments/production.rb index 6f0913a1..062a251b 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb diff --git a/config/environments/test.rb b/config/environments/test.rb index 5b865cee..3f044425 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb diff --git a/config/initializers/app_constants.rb b/config/initializers/app_constants.rb index 1bafd647..eb538b17 100644 --- a/config/initializers/app_constants.rb +++ b/config/initializers/app_constants.rb @@ -1,16 +1,15 @@ -# frozen_string_literal: true -APP_NAME = 'Phish.in' +APP_NAME = 'Phish.in'.freeze APP_DESC = "#{APP_NAME} is an open source archive of live Phish audience recordings".freeze -CONTACT_EMAIL = 'phish.in.music@gmail.com' -DEVISE_EMAIL_FROM = 'Phish.in ' -DESCRIPTION = 'An open source archive of live Phish audience recordings' -TWITTER_USER = '@phish_in' +CONTACT_EMAIL = 'phish.in.music@gmail.com'.freeze +DEVISE_EMAIL_FROM = 'Phish.in '.freeze +DESCRIPTION = 'An open source archive of live Phish audience recordings'.freeze +TWITTER_USER = '@phish_in'.freeze CACHE_TTL = 10.minutes FIRST_CHAR_LIST = ('A'..'Z').to_a + ['#'] MAX_PLAYLISTS_PER_USER = 20 MIN_SEARCH_TERM_LENGTH = 3 -TIME_ZONE = 'Eastern Time (US & Canada)' +TIME_ZONE = 'Eastern Time (US & Canada)'.freeze APP_CONTENT_PATH = if Rails.env.test? diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index 64fa516e..d9edaacc 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - # Use this hook to configure devise mailer, warden hooks and so forth. # Many of these configuration options can be set straight in your model. Devise.setup do |config| diff --git a/config/initializers/filter_paramater_logging.rb b/config/initializers/filter_paramater_logging.rb index 77393c4e..0e817371 100644 --- a/config/initializers/filter_paramater_logging.rb +++ b/config/initializers/filter_paramater_logging.rb @@ -1,2 +1 @@ -# frozen_string_literal: true Rails.application.config.filter_parameters += %i[password] diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index dfa119b7..89a9ebc8 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true Rails.application.config.session_store( :cookie_store, key: '_phishin_session' diff --git a/config/initializers/shrine.rb b/config/initializers/shrine.rb index 945cb8c2..08a93461 100644 --- a/config/initializers/shrine.rb +++ b/config/initializers/shrine.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'shrine' require 'shrine/storage/file_system' diff --git a/config/initializers/wrap_parameters.rb b/config/initializers/wrap_parameters.rb index c9b0c2c5..fe2f73f9 100644 --- a/config/initializers/wrap_parameters.rb +++ b/config/initializers/wrap_parameters.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true ActiveSupport.on_load(:action_controller) do wrap_parameters format: [:json] end diff --git a/config/puma.rb b/config/puma.rb index cb76842f..46aa032e 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'puma' threads_count = ENV.fetch('RAILS_MAX_THREADS', 5) diff --git a/config/routes.rb b/config/routes.rb index 05b33564..7ae8639f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true Rails.application.routes.draw do root to: 'eras#index' diff --git a/spec/api/v1/api_controller_spec.rb b/spec/api/v1/api_controller_spec.rb index ba82a4b4..869a47ee 100644 --- a/spec/api/v1/api_controller_spec.rb +++ b/spec/api/v1/api_controller_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe Api::V1::ApiController do diff --git a/spec/api/v1/eras_controller_spec.rb b/spec/api/v1/eras_controller_spec.rb index 88bd9357..cbe3b3f4 100644 --- a/spec/api/v1/eras_controller_spec.rb +++ b/spec/api/v1/eras_controller_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe Api::V1::ErasController do diff --git a/spec/api/v1/playlists_controller_spec.rb b/spec/api/v1/playlists_controller_spec.rb index 99ac9e82..8bc35697 100644 --- a/spec/api/v1/playlists_controller_spec.rb +++ b/spec/api/v1/playlists_controller_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe Api::V1::PlaylistsController do diff --git a/spec/api/v1/search_controller_spec.rb b/spec/api/v1/search_controller_spec.rb index e1fb21b4..da25ac72 100644 --- a/spec/api/v1/search_controller_spec.rb +++ b/spec/api/v1/search_controller_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe Api::V1::SearchController do diff --git a/spec/api/v1/shows_controller_spec.rb b/spec/api/v1/shows_controller_spec.rb index f63f72e3..3a09ea20 100644 --- a/spec/api/v1/shows_controller_spec.rb +++ b/spec/api/v1/shows_controller_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe Api::V1::ShowsController do diff --git a/spec/api/v1/songs_controller_spec.rb b/spec/api/v1/songs_controller_spec.rb index 3f8f6e84..69ca0ec4 100644 --- a/spec/api/v1/songs_controller_spec.rb +++ b/spec/api/v1/songs_controller_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe Api::V1::SongsController do diff --git a/spec/api/v1/tags_controller_spec.rb b/spec/api/v1/tags_controller_spec.rb index 156362e8..eab72815 100644 --- a/spec/api/v1/tags_controller_spec.rb +++ b/spec/api/v1/tags_controller_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe Api::V1::TagsController do diff --git a/spec/api/v1/tours_controller_spec.rb b/spec/api/v1/tours_controller_spec.rb index b2c16e31..c8365d0d 100644 --- a/spec/api/v1/tours_controller_spec.rb +++ b/spec/api/v1/tours_controller_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe Api::V1::ToursController do diff --git a/spec/api/v1/tracks_controller_spec.rb b/spec/api/v1/tracks_controller_spec.rb index 5774bd78..c00d65b7 100644 --- a/spec/api/v1/tracks_controller_spec.rb +++ b/spec/api/v1/tracks_controller_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe Api::V1::TracksController do diff --git a/spec/api/v1/venues_controller_spec.rb b/spec/api/v1/venues_controller_spec.rb index f2c79b73..2d25483a 100644 --- a/spec/api/v1/venues_controller_spec.rb +++ b/spec/api/v1/venues_controller_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe Api::V1::VenuesController do diff --git a/spec/api/v1/years_controller_spec.rb b/spec/api/v1/years_controller_spec.rb index 6fa0746a..2e88b4fe 100644 --- a/spec/api/v1/years_controller_spec.rb +++ b/spec/api/v1/years_controller_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe Api::V1::YearsController do diff --git a/spec/factories/announcement.rb b/spec/factories/announcement.rb index 49df4adc..57054efc 100644 --- a/spec/factories/announcement.rb +++ b/spec/factories/announcement.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true FactoryBot.define do factory :announcement do title { "New show: #{Faker::Date}" } diff --git a/spec/factories/api_key.rb b/spec/factories/api_key.rb index d59e8d39..1c26b936 100644 --- a/spec/factories/api_key.rb +++ b/spec/factories/api_key.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true FactoryBot.define do factory :api_key do name { Faker::Name.unique.name } diff --git a/spec/factories/api_request.rb b/spec/factories/api_request.rb index aed9020d..f7e5ddb3 100644 --- a/spec/factories/api_request.rb +++ b/spec/factories/api_request.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true FactoryBot.define do factory :api_request do api_key diff --git a/spec/factories/known_date.rb b/spec/factories/known_date.rb index 1797cff9..51508bba 100644 --- a/spec/factories/known_date.rb +++ b/spec/factories/known_date.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true FactoryBot.define do factory :known_date do date { Faker::Date.unique.between(from: 500.years.ago, to: Time.zone.today) } diff --git a/spec/factories/like.rb b/spec/factories/like.rb index 223e96c1..9a92bcf1 100644 --- a/spec/factories/like.rb +++ b/spec/factories/like.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true FactoryBot.define do factory :like do user diff --git a/spec/factories/playlist.rb b/spec/factories/playlist.rb index 3e792376..29c41bcf 100644 --- a/spec/factories/playlist.rb +++ b/spec/factories/playlist.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true FactoryBot.define do factory :playlist do sequence(:name) { |n| "Playlist #{n}" } diff --git a/spec/factories/playlist_bookmark.rb b/spec/factories/playlist_bookmark.rb index 62a2c438..210c90fa 100644 --- a/spec/factories/playlist_bookmark.rb +++ b/spec/factories/playlist_bookmark.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true FactoryBot.define do factory :playlist_bookmark do playlist diff --git a/spec/factories/playlist_track.rb b/spec/factories/playlist_track.rb index aced096d..b8944334 100644 --- a/spec/factories/playlist_track.rb +++ b/spec/factories/playlist_track.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true FactoryBot.define do factory :playlist_track do sequence(:position, 1) diff --git a/spec/factories/show.rb b/spec/factories/show.rb index 7a3324e8..b9837898 100644 --- a/spec/factories/show.rb +++ b/spec/factories/show.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true FactoryBot.define do factory :show do date { Faker::Date.unique.between(from: 500.years.ago, to: Time.zone.today) } diff --git a/spec/factories/show_tag.rb b/spec/factories/show_tag.rb index ef18c00b..ce909579 100644 --- a/spec/factories/show_tag.rb +++ b/spec/factories/show_tag.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true FactoryBot.define do factory :show_tag do show diff --git a/spec/factories/song.rb b/spec/factories/song.rb index ef9683c5..24f2926f 100644 --- a/spec/factories/song.rb +++ b/spec/factories/song.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true FactoryBot.define do factory :song do sequence(:title) { |n| "Song #{n}" } diff --git a/spec/factories/songs_track.rb b/spec/factories/songs_track.rb index 35a7564b..73070a71 100644 --- a/spec/factories/songs_track.rb +++ b/spec/factories/songs_track.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true FactoryBot.define do factory :songs_track do song diff --git a/spec/factories/tag.rb b/spec/factories/tag.rb index be7f500f..f3610425 100644 --- a/spec/factories/tag.rb +++ b/spec/factories/tag.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true FactoryBot.define do factory :tag do sequence(:name) { |n| "Tag #{n}" } diff --git a/spec/factories/tour.rb b/spec/factories/tour.rb index 5fc58042..6086ae76 100644 --- a/spec/factories/tour.rb +++ b/spec/factories/tour.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true FactoryBot.define do factory :tour do sequence(:name) { |n| "Tour #{n}" } diff --git a/spec/factories/track.rb b/spec/factories/track.rb index 8356ef41..7b1de456 100644 --- a/spec/factories/track.rb +++ b/spec/factories/track.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true FactoryBot.define do factory :track do sequence(:title) { |n| "Track #{n}" } diff --git a/spec/factories/track_tag.rb b/spec/factories/track_tag.rb index eb3dc3a5..7e1f7ab7 100644 --- a/spec/factories/track_tag.rb +++ b/spec/factories/track_tag.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true FactoryBot.define do factory :track_tag do track diff --git a/spec/factories/user.rb b/spec/factories/user.rb index d154b102..03001903 100644 --- a/spec/factories/user.rb +++ b/spec/factories/user.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true FactoryBot.define do factory :user do sequence(:username) { |n| "user_#{n}" } diff --git a/spec/factories/venue.rb b/spec/factories/venue.rb index 292f8be5..81b30d80 100644 --- a/spec/factories/venue.rb +++ b/spec/factories/venue.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true FactoryBot.define do factory :venue do sequence(:name) { |n| "Venue #{n}" } diff --git a/spec/factories/venue_rename.rb b/spec/factories/venue_rename.rb index a7ed565b..036a844c 100644 --- a/spec/factories/venue_rename.rb +++ b/spec/factories/venue_rename.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true FactoryBot.define do factory :venue_rename do sequence(:name) { |n| "Venue Rename #{n}" } diff --git a/spec/features/ambiguous_slug_spec.rb b/spec/features/ambiguous_slug_spec.rb index be727848..69dfd4d0 100644 --- a/spec/features/ambiguous_slug_spec.rb +++ b/spec/features/ambiguous_slug_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe 'Ambiguous slug resolution', :js do diff --git a/spec/features/auth/change_password_spec.rb b/spec/features/auth/change_password_spec.rb index 0c44f22d..5eb10e58 100644 --- a/spec/features/auth/change_password_spec.rb +++ b/spec/features/auth/change_password_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe 'Change Password', :js do diff --git a/spec/features/auth/reset_password_spec.rb b/spec/features/auth/reset_password_spec.rb index 1815d81b..890208f0 100644 --- a/spec/features/auth/reset_password_spec.rb +++ b/spec/features/auth/reset_password_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' require 'capybara/email/rspec' diff --git a/spec/features/auth/user_registration_spec.rb b/spec/features/auth/user_registration_spec.rb index cc307230..6189526a 100644 --- a/spec/features/auth/user_registration_spec.rb +++ b/spec/features/auth/user_registration_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe 'User Registration', :js do diff --git a/spec/features/auth/user_sessions_spec.rb b/spec/features/auth/user_sessions_spec.rb index 234bae3b..f0c10186 100644 --- a/spec/features/auth/user_sessions_spec.rb +++ b/spec/features/auth/user_sessions_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe 'User Sessions', :js do diff --git a/spec/features/feeds_spec.rb b/spec/features/feeds_spec.rb index 6fcffb8e..1d3ce2f7 100644 --- a/spec/features/feeds_spec.rb +++ b/spec/features/feeds_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe 'RSS Feed' do diff --git a/spec/features/homepage_spec.rb b/spec/features/homepage_spec.rb index 8e015265..726d3739 100644 --- a/spec/features/homepage_spec.rb +++ b/spec/features/homepage_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe 'Homepage', :js do diff --git a/spec/features/map_spec.rb b/spec/features/map_spec.rb index b79bd337..022bbd30 100644 --- a/spec/features/map_spec.rb +++ b/spec/features/map_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe 'Venues page', :js do diff --git a/spec/features/my_shows_spec.rb b/spec/features/my_shows_spec.rb index 139f126f..ee38c8e1 100644 --- a/spec/features/my_shows_spec.rb +++ b/spec/features/my_shows_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe 'My Shows', :js do diff --git a/spec/features/my_tracks_spec.rb b/spec/features/my_tracks_spec.rb index 13207edb..6629defd 100644 --- a/spec/features/my_tracks_spec.rb +++ b/spec/features/my_tracks_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe 'My Tracks', :js do diff --git a/spec/features/play_random_show_spec.rb b/spec/features/play_random_show_spec.rb index 339c66db..5165b0bf 100644 --- a/spec/features/play_random_show_spec.rb +++ b/spec/features/play_random_show_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe 'Play Random Show', :js do diff --git a/spec/features/player_spec.rb b/spec/features/player_spec.rb index e01e2622..b15fc98c 100644 --- a/spec/features/player_spec.rb +++ b/spec/features/player_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe 'Player controls', :js do diff --git a/spec/features/playlists_spec.rb b/spec/features/playlists_spec.rb index 02a75ddb..e090a9c2 100644 --- a/spec/features/playlists_spec.rb +++ b/spec/features/playlists_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe 'Playlists', :js do diff --git a/spec/features/search_spec.rb b/spec/features/search_spec.rb index 58cfce42..e6146650 100644 --- a/spec/features/search_spec.rb +++ b/spec/features/search_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe 'Search', :js do diff --git a/spec/features/show_context_menus_spec.rb b/spec/features/show_context_menus_spec.rb index 2e08165b..05747c09 100644 --- a/spec/features/show_context_menus_spec.rb +++ b/spec/features/show_context_menus_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe 'Show Context Menus', :js do diff --git a/spec/features/show_spec.rb b/spec/features/show_spec.rb index 89c5000f..576c2a6b 100644 --- a/spec/features/show_spec.rb +++ b/spec/features/show_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe 'Show', :js do diff --git a/spec/features/song_spec.rb b/spec/features/song_spec.rb index 491cc9a1..d60d8f85 100644 --- a/spec/features/song_spec.rb +++ b/spec/features/song_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe 'Song page', :js do diff --git a/spec/features/songs_spec.rb b/spec/features/songs_spec.rb index a01cc131..8b1c3e35 100644 --- a/spec/features/songs_spec.rb +++ b/spec/features/songs_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe 'Songs', :js do diff --git a/spec/features/static_pages_spec.rb b/spec/features/static_pages_spec.rb index 62554578..6f2fe7a9 100644 --- a/spec/features/static_pages_spec.rb +++ b/spec/features/static_pages_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe 'Static pages', :js do diff --git a/spec/features/tag_spec.rb b/spec/features/tag_spec.rb index dafbdbc1..60ea00e2 100644 --- a/spec/features/tag_spec.rb +++ b/spec/features/tag_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe 'Tag page', :js do diff --git a/spec/features/tags_spec.rb b/spec/features/tags_spec.rb index f599b7d4..4d4a2464 100644 --- a/spec/features/tags_spec.rb +++ b/spec/features/tags_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe 'Tags', :js do diff --git a/spec/features/top_40_spec.rb b/spec/features/top_40_spec.rb index 40e270e1..a068f59f 100644 --- a/spec/features/top_40_spec.rb +++ b/spec/features/top_40_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe 'Top 40', :js do diff --git a/spec/features/track_context_menus_spec.rb b/spec/features/track_context_menus_spec.rb index 66d54fa1..d32caea1 100644 --- a/spec/features/track_context_menus_spec.rb +++ b/spec/features/track_context_menus_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe 'Track Context Menues', :js do diff --git a/spec/features/venue_spec.rb b/spec/features/venue_spec.rb index a1ce479e..88919d58 100644 --- a/spec/features/venue_spec.rb +++ b/spec/features/venue_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe 'Venue page', :js do diff --git a/spec/features/venues_spec.rb b/spec/features/venues_spec.rb index 7d4841b9..0c65894c 100644 --- a/spec/features/venues_spec.rb +++ b/spec/features/venues_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe 'Venues', :js do diff --git a/spec/features/year_spec.rb b/spec/features/year_spec.rb index 25350909..c65b4a86 100644 --- a/spec/features/year_spec.rb +++ b/spec/features/year_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe 'Year spec', :js do diff --git a/spec/models/api_key_spec.rb b/spec/models/api_key_spec.rb index acd416c5..a3c39fab 100644 --- a/spec/models/api_key_spec.rb +++ b/spec/models/api_key_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' RSpec.describe ApiKey do diff --git a/spec/models/application_record_spec.rb b/spec/models/application_record_spec.rb index 71b583cd..945099bb 100644 --- a/spec/models/application_record_spec.rb +++ b/spec/models/application_record_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' RSpec.describe ApplicationRecord do diff --git a/spec/models/known_date_spec.rb b/spec/models/known_date_spec.rb index 6a135a84..618a9ab6 100644 --- a/spec/models/known_date_spec.rb +++ b/spec/models/known_date_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' RSpec.describe KnownDate do diff --git a/spec/models/like_spec.rb b/spec/models/like_spec.rb index 48ac9708..6fbb173e 100644 --- a/spec/models/like_spec.rb +++ b/spec/models/like_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' RSpec.describe Like do diff --git a/spec/models/playlist_bookmark_spec.rb b/spec/models/playlist_bookmark_spec.rb index faa1bd51..8e79aac7 100644 --- a/spec/models/playlist_bookmark_spec.rb +++ b/spec/models/playlist_bookmark_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' RSpec.describe PlaylistBookmark do diff --git a/spec/models/playlist_spec.rb b/spec/models/playlist_spec.rb index 868cf002..55ad5cb5 100644 --- a/spec/models/playlist_spec.rb +++ b/spec/models/playlist_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' RSpec.describe Playlist do diff --git a/spec/models/playlist_track_spec.rb b/spec/models/playlist_track_spec.rb index d9ec8d80..fa919ab4 100644 --- a/spec/models/playlist_track_spec.rb +++ b/spec/models/playlist_track_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' RSpec.describe PlaylistTrack do diff --git a/spec/models/show_spec.rb b/spec/models/show_spec.rb index ff282063..d05d6c3e 100644 --- a/spec/models/show_spec.rb +++ b/spec/models/show_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' RSpec.describe Show do diff --git a/spec/models/show_tag_spec.rb b/spec/models/show_tag_spec.rb index 6c6726c9..8cc20d23 100644 --- a/spec/models/show_tag_spec.rb +++ b/spec/models/show_tag_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' RSpec.describe ShowTag do diff --git a/spec/models/song_spec.rb b/spec/models/song_spec.rb index 81f8b39b..259ba77d 100644 --- a/spec/models/song_spec.rb +++ b/spec/models/song_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' RSpec.describe Song do diff --git a/spec/models/songs_track_spec.rb b/spec/models/songs_track_spec.rb index c3b366cf..4d466131 100644 --- a/spec/models/songs_track_spec.rb +++ b/spec/models/songs_track_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' RSpec.describe SongsTrack do diff --git a/spec/models/tag_spec.rb b/spec/models/tag_spec.rb index fe5d22e3..e9cabab9 100644 --- a/spec/models/tag_spec.rb +++ b/spec/models/tag_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' RSpec.describe Tag do diff --git a/spec/models/tour_spec.rb b/spec/models/tour_spec.rb index 464fc3b8..686a1ff4 100644 --- a/spec/models/tour_spec.rb +++ b/spec/models/tour_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' RSpec.describe Tour do diff --git a/spec/models/track_spec.rb b/spec/models/track_spec.rb index 6aa1b58e..88ded42c 100644 --- a/spec/models/track_spec.rb +++ b/spec/models/track_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' RSpec.describe Track do diff --git a/spec/models/track_tag_spec.rb b/spec/models/track_tag_spec.rb index 8a814338..ce30efee 100644 --- a/spec/models/track_tag_spec.rb +++ b/spec/models/track_tag_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' RSpec.describe TrackTag do diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 3087599a..e29168fb 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' describe User do diff --git a/spec/models/venue_rename_spec.rb b/spec/models/venue_rename_spec.rb index d9f5e2a0..32d4df12 100644 --- a/spec/models/venue_rename_spec.rb +++ b/spec/models/venue_rename_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' RSpec.describe VenueRename do diff --git a/spec/models/venue_spec.rb b/spec/models/venue_spec.rb index 6c536b07..80b2b5aa 100644 --- a/spec/models/venue_spec.rb +++ b/spec/models/venue_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' RSpec.describe Venue do diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 3230978c..30b1b3e7 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'spec_helper' ENV['RAILS_ENV'] ||= 'test' require File.expand_path('../config/environment', __dir__) diff --git a/spec/services/date_parser_spec.rb b/spec/services/date_parser_spec.rb index 81996a78..3b8d668a 100644 --- a/spec/services/date_parser_spec.rb +++ b/spec/services/date_parser_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' RSpec.describe DateParser do diff --git a/spec/services/duration_formatter_spec.rb b/spec/services/duration_formatter_spec.rb index 830d0e0d..38016769 100644 --- a/spec/services/duration_formatter_spec.rb +++ b/spec/services/duration_formatter_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' RSpec.describe DurationFormatter do diff --git a/spec/services/id3_tagger_spec.rb b/spec/services/id3_tagger_spec.rb index bce5f826..124a1b3d 100644 --- a/spec/services/id3_tagger_spec.rb +++ b/spec/services/id3_tagger_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' require 'mp3info' diff --git a/spec/services/mp3_duration_query_spec.rb b/spec/services/mp3_duration_query_spec.rb index e6127582..05695755 100644 --- a/spec/services/mp3_duration_query_spec.rb +++ b/spec/services/mp3_duration_query_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' RSpec.describe Mp3DurationQuery do diff --git a/spec/services/search_service_spec.rb b/spec/services/search_service_spec.rb index ec4305bf..d67b46c6 100644 --- a/spec/services/search_service_spec.rb +++ b/spec/services/search_service_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' RSpec.describe SearchService do diff --git a/spec/services/track_inserter_spec.rb b/spec/services/track_inserter_spec.rb index 1e0d47d1..93602572 100644 --- a/spec/services/track_inserter_spec.rb +++ b/spec/services/track_inserter_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' RSpec.describe TrackInserter do diff --git a/spec/services/track_slug_generator_spec.rb b/spec/services/track_slug_generator_spec.rb index 1a27c9fa..c5f0ae35 100644 --- a/spec/services/track_slug_generator_spec.rb +++ b/spec/services/track_slug_generator_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' RSpec.describe TrackSlugGenerator do diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index fdc7585d..aaa615ef 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true RSpec.configure do |config| config.expect_with :rspec do |expectations| expectations.include_chain_clauses_in_custom_matcher_descriptions = true diff --git a/spec/support/appear_before.rb b/spec/support/appear_before.rb index 44c56a01..0e4676fa 100644 --- a/spec/support/appear_before.rb +++ b/spec/support/appear_before.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true RSpec::Matchers.define :appear_before do |later_content| match do |earlier_content| (page.body.index(earlier_content) || 0) < (page.body.index(later_content) || 0) diff --git a/spec/support/auth_helper.rb b/spec/support/auth_helper.rb index b88c4eb9..2db52c9a 100644 --- a/spec/support/auth_helper.rb +++ b/spec/support/auth_helper.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true module AuthHelper def auth_header api_key = create(:api_key) diff --git a/spec/support/capybara.rb b/spec/support/capybara.rb index 8e9af611..4dd576bd 100644 --- a/spec/support/capybara.rb +++ b/spec/support/capybara.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'capybara/rails' require 'capybara/rspec' require 'capybara-screenshot/rspec' diff --git a/spec/support/factory_bot.rb b/spec/support/factory_bot.rb index 68c93699..c7890e49 100644 --- a/spec/support/factory_bot.rb +++ b/spec/support/factory_bot.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true RSpec.configure do |config| config.include FactoryBot::Syntax::Methods end diff --git a/spec/support/feature_helpers.rb b/spec/support/feature_helpers.rb index dceb4ff5..6bda540a 100644 --- a/spec/support/feature_helpers.rb +++ b/spec/support/feature_helpers.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true module FeatureHelpers def expect_content(*args) args.each { |c| expect_content_single(c) } diff --git a/spec/support/shared_examples.rb b/spec/support/shared_examples.rb index 80c4ac3b..448a7b76 100644 --- a/spec/support/shared_examples.rb +++ b/spec/support/shared_examples.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true RSpec.shared_examples 'responds with 404' do let(:json) { JSON[subject.body].deep_symbolize_keys } diff --git a/spec/support/shoulda.rb b/spec/support/shoulda.rb index 2372e5da..7d045f35 100644 --- a/spec/support/shoulda.rb +++ b/spec/support/shoulda.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true Shoulda::Matchers.configure do |config| config.integrate do |with| with.test_framework :rspec diff --git a/spec/support/shrine_test_data.rb b/spec/support/shrine_test_data.rb index 2c61690c..570cc9b3 100644 --- a/spec/support/shrine_test_data.rb +++ b/spec/support/shrine_test_data.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'marcel' module ShrineTestData diff --git a/spec/uploaders/audio_file_uploader_spec.rb b/spec/uploaders/audio_file_uploader_spec.rb index 20728d2a..218fefef 100644 --- a/spec/uploaders/audio_file_uploader_spec.rb +++ b/spec/uploaders/audio_file_uploader_spec.rb @@ -1,4 +1,3 @@ -# frozen_string_literal: true require 'rails_helper' RSpec.describe AudioFileUploader do