Clean up main app repos

This commit is contained in:
2023-11-18 08:38:29 +11:00
parent cfbab5ab4b
commit e1a230bdba
7 changed files with 14 additions and 25 deletions

6
.gitignore vendored
View File

@@ -21,4 +21,10 @@ config/systemd/que.service.erb
script/deploy script/deploy
tmp/* tmp/*
public/media public/media
public/assets/*.css
public/assets/*.js
public/assets/*.ttf
public/assets/*.json
public/*.json
public/assets/*.js.map
*.p8 *.p8

View File

@@ -56,11 +56,11 @@ gem "sentry-ruby"
gem "warning" gem "warning"
group :cli, :development do group :cli, :development do
gem "hanami-reloader" gem "hanami-reloader", "~> 2.1.0.rc"
end end
group :cli, :development, :test do group :cli, :development, :test do
gem "hanami-rspec" gem "hanami-rspec", "~> 2.1.0.rc"
end end
group :development do group :development do

View File

@@ -203,15 +203,15 @@ GEM
hanami-utils (~> 2.1.rc) hanami-utils (~> 2.1.rc)
rack (~> 2.0) rack (~> 2.0)
zeitwerk (~> 2.6) zeitwerk (~> 2.6)
hanami-reloader (2.0.2) hanami-reloader (2.1.0.rc2)
hanami-cli (~> 2.0) hanami-cli (~> 2.1.rc)
zeitwerk (~> 2.6) zeitwerk (~> 2.6)
hanami-router (2.1.0.rc2) hanami-router (2.1.0.rc2)
mustermann (~> 3.0) mustermann (~> 3.0)
mustermann-contrib (~> 3.0) mustermann-contrib (~> 3.0)
rack (~> 2.0) rack (~> 2.0)
hanami-rspec (2.0.1) hanami-rspec (2.1.0.rc2)
hanami-cli (~> 2.0) hanami-cli (~> 2.1.rc)
rake (~> 13.0) rake (~> 13.0)
rspec (~> 3.12) rspec (~> 3.12)
zeitwerk (~> 2.6) zeitwerk (~> 2.6)
@@ -498,9 +498,9 @@ DEPENDENCIES
hanami (= 2.1.0rc2) hanami (= 2.1.0rc2)
hanami-assets (= 2.1.0rc2) hanami-assets (= 2.1.0rc2)
hanami-controller (= 2.1.0rc2) hanami-controller (= 2.1.0rc2)
hanami-reloader hanami-reloader (~> 2.1.0.rc)
hanami-router (= 2.1.0rc2) hanami-router (= 2.1.0rc2)
hanami-rspec hanami-rspec (~> 2.1.0.rc)
hanami-validations (= 2.1.0rc2) hanami-validations (= 2.1.0rc2)
hanami-view (= 2.1.0rc2) hanami-view (= 2.1.0rc2)
httparty httparty

View File

@@ -1,8 +1,6 @@
module Adamantium module Adamantium
module Repos module Repos
class MovieRepo < Adamantium::Repo[:movies] class MovieRepo < Adamantium::Repo[:movies]
commands :create
def listing def listing
movies.order(Sequel.lit("year desc")).to_a movies.order(Sequel.lit("year desc")).to_a
end end

View File

@@ -1,15 +1,9 @@
module Adamantium module Adamantium
module Repos module Repos
class PodcastRepo < Adamantium::Repo[:podcasts] class PodcastRepo < Adamantium::Repo[:podcasts]
commands :create
def listing def listing
podcasts.order(:name).to_a podcasts.order(:name).to_a
end end
def delete_all
podcasts.delete
end
end end
end end
end end

View File

@@ -1,7 +0,0 @@
module Adamantium
module Repos
class WebmentionsRepo < Adamantium::Repo[:webmentions]
commands :create
end
end
end

View File

@@ -1,8 +1,6 @@
module Adamantium module Adamantium
module Repos module Repos
class WorkoutRepo < Adamantium::Repo[:workouts] class WorkoutRepo < Adamantium::Repo[:workouts]
commands :create, update: :by_pk
def list def list
workouts.order(:published_at).to_a workouts.order(:published_at).to_a
end end