Clean up main app repos
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -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
|
||||
|
4
Gemfile
4
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
|
||||
|
12
Gemfile.lock
12
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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -1,7 +0,0 @@
|
||||
module Adamantium
|
||||
module Repos
|
||||
class WebmentionsRepo < Adamantium::Repo[:webmentions]
|
||||
commands :create
|
||||
end
|
||||
end
|
||||
end
|
@@ -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
|
||||
|
Reference in New Issue
Block a user