From e1a230bdbaae071ecdba6764babd5dbb85b8b12c Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sat, 18 Nov 2023 08:38:29 +1100 Subject: [PATCH] Clean up main app repos --- .gitignore | 6 ++++++ Gemfile | 4 ++-- Gemfile.lock | 12 ++++++------ app/repos/movie_repo.rb | 2 -- app/repos/podcast_repo.rb | 6 ------ app/repos/webmentions_repo.rb | 7 ------- app/repos/workout_repo.rb | 2 -- 7 files changed, 14 insertions(+), 25 deletions(-) delete mode 100644 app/repos/webmentions_repo.rb diff --git a/.gitignore b/.gitignore index 7885edd..e7619d6 100644 --- a/.gitignore +++ b/.gitignore @@ -21,4 +21,10 @@ config/systemd/que.service.erb script/deploy tmp/* public/media +public/assets/*.css +public/assets/*.js +public/assets/*.ttf +public/assets/*.json +public/*.json +public/assets/*.js.map *.p8 diff --git a/Gemfile b/Gemfile index 55c8109..825ea19 100644 --- a/Gemfile +++ b/Gemfile @@ -56,11 +56,11 @@ gem "sentry-ruby" gem "warning" group :cli, :development do - gem "hanami-reloader" + gem "hanami-reloader", "~> 2.1.0.rc" end group :cli, :development, :test do - gem "hanami-rspec" + gem "hanami-rspec", "~> 2.1.0.rc" end group :development do diff --git a/Gemfile.lock b/Gemfile.lock index 89c80e2..84eebb9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -203,15 +203,15 @@ GEM hanami-utils (~> 2.1.rc) rack (~> 2.0) zeitwerk (~> 2.6) - hanami-reloader (2.0.2) - hanami-cli (~> 2.0) + hanami-reloader (2.1.0.rc2) + hanami-cli (~> 2.1.rc) zeitwerk (~> 2.6) hanami-router (2.1.0.rc2) mustermann (~> 3.0) mustermann-contrib (~> 3.0) rack (~> 2.0) - hanami-rspec (2.0.1) - hanami-cli (~> 2.0) + hanami-rspec (2.1.0.rc2) + hanami-cli (~> 2.1.rc) rake (~> 13.0) rspec (~> 3.12) zeitwerk (~> 2.6) @@ -498,9 +498,9 @@ DEPENDENCIES hanami (= 2.1.0rc2) hanami-assets (= 2.1.0rc2) hanami-controller (= 2.1.0rc2) - hanami-reloader + hanami-reloader (~> 2.1.0.rc) hanami-router (= 2.1.0rc2) - hanami-rspec + hanami-rspec (~> 2.1.0.rc) hanami-validations (= 2.1.0rc2) hanami-view (= 2.1.0rc2) httparty diff --git a/app/repos/movie_repo.rb b/app/repos/movie_repo.rb index 01c90a8..dca8309 100644 --- a/app/repos/movie_repo.rb +++ b/app/repos/movie_repo.rb @@ -1,8 +1,6 @@ module Adamantium module Repos class MovieRepo < Adamantium::Repo[:movies] - commands :create - def listing movies.order(Sequel.lit("year desc")).to_a end diff --git a/app/repos/podcast_repo.rb b/app/repos/podcast_repo.rb index 27e4b4c..4a21217 100644 --- a/app/repos/podcast_repo.rb +++ b/app/repos/podcast_repo.rb @@ -1,15 +1,9 @@ module Adamantium module Repos class PodcastRepo < Adamantium::Repo[:podcasts] - commands :create - def listing podcasts.order(:name).to_a end - - def delete_all - podcasts.delete - end end end end diff --git a/app/repos/webmentions_repo.rb b/app/repos/webmentions_repo.rb deleted file mode 100644 index 7f6c9ce..0000000 --- a/app/repos/webmentions_repo.rb +++ /dev/null @@ -1,7 +0,0 @@ -module Adamantium - module Repos - class WebmentionsRepo < Adamantium::Repo[:webmentions] - commands :create - end - end -end diff --git a/app/repos/workout_repo.rb b/app/repos/workout_repo.rb index faeec70..a144c31 100644 --- a/app/repos/workout_repo.rb +++ b/app/repos/workout_repo.rb @@ -1,8 +1,6 @@ module Adamantium module Repos class WorkoutRepo < Adamantium::Repo[:workouts] - commands :create, update: :by_pk - def list workouts.order(:published_at).to_a end