Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jcraigk committed Nov 4, 2024
1 parent 4e15047 commit fabc64c
Show file tree
Hide file tree
Showing 19 changed files with 20 additions and 24 deletions.
2 changes: 1 addition & 1 deletion app/services/album_cover_service.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "mini_magick"

class AlbumCoverService < BaseService
class AlbumCoverService < ApplicationService
param :show

def call
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class BaseService
class ApplicationService
extend Dry::Initializer

def self.call(...)
Expand Down
2 changes: 1 addition & 1 deletion app/services/bustout_tag_service.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class BustoutTagService < BaseService
class BustoutTagService < ApplicationService
MIN_GAP = 100

param :show
Expand Down
2 changes: 1 addition & 1 deletion app/services/cover_art_image_service.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CoverArtImageService < BaseService
class CoverArtImageService < ApplicationService
param :show
option :dry_run, default: -> { false }

Expand Down
2 changes: 1 addition & 1 deletion app/services/cover_art_prompt_service.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CoverArtPromptService < BaseService
class CoverArtPromptService < ApplicationService
param :show

HUES = %w[
Expand Down
2 changes: 1 addition & 1 deletion app/services/debut_tag_service.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class DebutTagService < BaseService
class DebutTagService < ApplicationService
param :show

def call
Expand Down
2 changes: 1 addition & 1 deletion app/services/gap_service.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class GapService < BaseService
class GapService < ApplicationService
param :show

def call
Expand Down
2 changes: 1 addition & 1 deletion app/services/google_spreadsheet_fetcher.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class GoogleSpreadsheetFetcher < BaseService
class GoogleSpreadsheetFetcher < ApplicationService
attr_reader :spreadsheet_id, :range, :has_headers

OOB_URI = "urn:ietf:wg:oauth:2.0:oob".freeze
Expand Down
2 changes: 1 addition & 1 deletion app/services/id3_tag_service.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "mp3info"

class Id3TagService < BaseService
class Id3TagService < ApplicationService
param :track

def call
Expand Down
2 changes: 1 addition & 1 deletion app/services/interactive_cover_art_service.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class InteractiveCoverArtService < BaseService
class InteractiveCoverArtService < ApplicationService
include ActionView::Helpers::TextHelper

class InterruptError < StandardError; end
Expand Down
2 changes: 1 addition & 1 deletion app/services/jamcharts_importer.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class JamchartsImporter < BaseService
class JamchartsImporter < ApplicationService
include ActionView::Helpers::SanitizeHelper

BASE_URL = "https://api.phish.net/v5".freeze
Expand Down
2 changes: 1 addition & 1 deletion app/services/meta_tag_service.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class MetaTagService < BaseService
class MetaTagService < ApplicationService
param :path

TITLE_SUFFIX = " - #{App.app_name}"
Expand Down
2 changes: 1 addition & 1 deletion app/services/search_service.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class SearchService < BaseService
class SearchService < ApplicationService
param :term
param :scope, default: proc { "all" }

Expand Down
2 changes: 1 addition & 1 deletion app/services/track_slug_generator.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class TrackSlugGenerator < BaseService
class TrackSlugGenerator < ApplicationService
param :track

def call
Expand Down
2 changes: 1 addition & 1 deletion app/services/track_tag_sync_service.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "csv"

class TrackTagSyncService < BaseService
class TrackTagSyncService < ApplicationService
include ActionView::Helpers::SanitizeHelper

attr_reader :track, :created_ids, :updated_ids, :missing_tracks
Expand Down
2 changes: 1 addition & 1 deletion app/services/user_jwt_service.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class UserJwtService < BaseService
class UserJwtService < ApplicationService
param :user

def call
Expand Down
2 changes: 1 addition & 1 deletion app/services/waveform_image_service.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class WaveformImageService < BaseService
class WaveformImageService < ApplicationService
param :track

def call
Expand Down
6 changes: 0 additions & 6 deletions db/migrate/20241103223637_remove_shrine.rb

This file was deleted.

4 changes: 3 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.2].define(version: 2024_11_03_223637) do
ActiveRecord::Schema[7.2].define(version: 2024_10_06_185101) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_stat_statements"
enable_extension "plpgsql"
Expand Down Expand Up @@ -252,6 +252,8 @@
t.string "slug", limit: 255, null: false
t.integer "tags_count", default: 0
t.integer "jam_starts_at_second"
t.text "audio_file_data"
t.text "waveform_png_data"
t.index ["jam_starts_at_second"], name: "index_tracks_on_jam_starts_at_second"
t.index ["likes_count"], name: "index_tracks_on_likes_count"
t.index ["show_id", "position"], name: "index_tracks_on_show_id_and_position", unique: true
Expand Down

0 comments on commit fabc64c

Please sign in to comment.