bump commonmarker; rubocop

This commit is contained in:
Peter Bhat Harkins 2022-03-04 07:57:27 -06:00
parent 9faf46b0cf
commit dff910dda6
4 changed files with 7 additions and 5 deletions

View File

@ -215,6 +215,8 @@ Style/MethodDefParentheses:
Enabled: false
Style/MultilineBlockChain:
Enabled: false
Style/MultilineMemoization:
Enabled: false
Style/MultilineTernaryOperator:
Enabled: false
Style/NegatedIf:

View File

@ -32,7 +32,7 @@ gem "rqrcode"
gem "pdf-reader"
gem "nokogiri", ">= 1.13.2"
gem "htmlentities"
gem "commonmarker", "~> 0.14"
gem "commonmarker", ">= 0.23.4"
# perf
gem 'flamegraph'

View File

@ -82,7 +82,7 @@ GEM
regexp_parser (>= 1.5, < 3.0)
xpath (~> 3.2)
chunky_png (1.4.0)
commonmarker (0.23.2)
commonmarker (0.23.4)
concurrent-ruby (1.1.9)
crack (0.4.5)
rexml
@ -293,7 +293,7 @@ DEPENDENCIES
bcrypt (~> 3.1.2)
byebug
capybara
commonmarker (~> 0.14)
commonmarker (>= 0.23.4)
database_cleaner
exception_notification
factory_bot_rails

View File

@ -23,13 +23,13 @@ class Message < ApplicationRecord
end
end
scope :inbox, -> (user) {
scope :inbox, ->(user) {
where(
recipient: user,
deleted_by_recipient: false,
).preload(:author, :hat, :recipient).order('id asc')
}
scope :outbox, -> (user) {
scope :outbox, ->(user) {
where(
author: user,
deleted_by_author: false,