Run rubocop on all files

This commit is contained in:
2023-06-08 21:57:54 +10:00
parent 6a2bc82e3b
commit 9d9d8ccf6d
65 changed files with 114 additions and 158 deletions

View File

@@ -2,7 +2,6 @@ module Admin
module Views
module AutoTagging
class Index < Admin::View
include Deps["repos.auto_tagging_repo"]
expose :auto_taggings do
@@ -11,4 +10,4 @@ module Admin
end
end
end
end
end

View File

@@ -2,7 +2,6 @@ module Admin
module Views
module AutoTagging
class New < Admin::View
include Deps["repos.tag_repo"]
expose :tags do
@@ -15,4 +14,4 @@ module Admin
end
end
end
end
end

View File

@@ -4,7 +4,6 @@ module Admin
module Views
module Bookmarks
class Index < Admin::View
include Deps["repos.bookmark_repo"]
expose :published_bookmarks do |bookmarks|
@@ -16,7 +15,7 @@ module Admin
end
expose :bookmarks do
bookmark_repo.list.partition{|p| p.published_at }
bookmark_repo.list.partition { |p| p.published_at }
end
expose :running_jobs do
@@ -26,4 +25,4 @@ module Admin
end
end
end
end
end

View File

@@ -1,7 +1,6 @@
module Admin
module Views
class Index < Admin::View
end
end
end
end

View File

@@ -2,7 +2,6 @@ module Admin
module Views
module MergeTags
class Index < Admin::View
include Deps["repos.tag_repo"]
expose :tags do
@@ -11,4 +10,4 @@ module Admin
end
end
end
end
end

View File

@@ -2,7 +2,6 @@ module Admin
module Views
module MergeTags
class New < Admin::View
include Deps["repos.tag_repo"]
expose :tag do |id:|
@@ -15,4 +14,4 @@ module Admin
end
end
end
end
end

View File

@@ -2,7 +2,6 @@ module Admin
module Views
module Photos
class Index < Admin::View
MEDIA_DIR = "public/media/".freeze
expose :photos_buckets do
@@ -13,4 +12,4 @@ module Admin
end
end
end
end
end

View File

@@ -2,7 +2,6 @@ module Admin
module Views
module Posts
class Index < Admin::View
include Deps["repos.post_repo"]
expose :published_posts do |posts|
@@ -14,9 +13,9 @@ module Admin
end
expose :posts do
post_repo.list.partition{|p| p.published_at }
post_repo.list.partition { |p| p.published_at }
end
end
end
end
end
end

View File

@@ -2,7 +2,6 @@ module Admin
module Views
module Tags
class Index < Admin::View
include Deps["repos.tag_repo"]
expose :tags do
@@ -10,13 +9,13 @@ module Admin
end
expose :unused_tags do |tags|
tags.partition {|t| t.posts.count == 0}.first
tags.partition { |t| t.posts.count == 0 }.first
end
expose :used_tags do |tags|
tags.partition {|t| t.posts.count == 0}.last
tags.partition { |t| t.posts.count == 0 }.last
end
end
end
end
end
end

View File

@@ -2,7 +2,6 @@ module Admin
module Views
module Trips
class Index < Admin::View
include Deps["repos.trip_repo"]
expose :trips do
@@ -11,4 +10,4 @@ module Admin
end
end
end
end
end

View File

@@ -8,4 +8,4 @@ module Admin
end
end
end
end
end

View File

@@ -2,7 +2,6 @@ module Admin
module Views
module Trips
class Show < Admin::View
include Deps["repos.trip_repo", "repos.post_repo"]
expose :trip do |id:|
@@ -15,4 +14,4 @@ module Admin
end
end
end
end
end