diff --git a/Gemfile b/Gemfile index 3053f901..531e5597 100644 --- a/Gemfile +++ b/Gemfile @@ -53,7 +53,7 @@ gem "bootsnap", require: false # Reduces boot times through caching; required in # Clients gem "httpx" # An HTTP client library for Ruby [https://gitlab.com/os85/httpx] -gem "honeybadger" # Error monitoring and uptime reporting [https://www.honeybadger.io] +gem "honeybadger", require: false # Error monitoring and uptime reporting [https://www.honeybadger.io] gem "litestream" # Standalone streaming replication for SQLite [https://litestream.io] gem "web-push" # Web Push library for Ruby [https://github.com/pushpad/web-push] gem "aws-sdk-s3" # Official AWS Ruby gem for Amazon S3 [https://github.com/aws/aws-sdk-ruby] @@ -89,7 +89,7 @@ group :development, :test do gem "bundle-audit", require: false # Patch level verification for Bundler [https://github.com/rubysec/bundler-audit] gem "debug", platforms: %i[mri windows] # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem gem "dotenv" # A Ruby gem to load environment variables from `.env` [https://github.com/bkeepers/dotenv] - gem "factory_bot_rails" # A library for setting up Ruby objects as test data [https://github.com/thoughtbot/factory_bot_rails] + gem "factory_bot_rails", require: false # A library for setting up Ruby objects as test data [https://github.com/thoughtbot/factory_bot_rails] gem "faker", require: false # A library for generating fake data [https://github.com/faker-ruby/faker] gem "rails_best_practices", require: false # A code metric tool for Rails projects [https://github.com/flyerhzm/rails_best_practices] gem "reek", require: false # Code smell detector for Ruby [https://github.com/troessner/reek] diff --git a/Gemfile.lock b/Gemfile.lock index 3e1490a9..67e7d222 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -230,7 +230,7 @@ GEM rainbow rubocop (>= 1) smart_properties - erubi (1.13.0) + erubi (1.13.1) erubis (2.7.0) et-orbi (1.2.11) tzinfo @@ -296,7 +296,7 @@ GEM invisible_captcha (2.3.0) rails (>= 5.2) io-console (0.8.0) - irb (1.14.1) + irb (1.14.3) rdoc (>= 4.0.0) reline (>= 0.4.2) jmespath (1.6.2) @@ -339,7 +339,7 @@ GEM railties (>= 7.0) sqlite3 logfmt (0.0.10) - logger (1.6.2) + logger (1.6.4) loofah (2.23.1) crass (~> 1.0.2) nokogiri (>= 1.12.0) @@ -386,9 +386,9 @@ GEM net-smtp (0.5.0) net-protocol nio4r (2.7.4) - nokogiri (1.17.1-arm64-darwin) + nokogiri (1.17.2-arm64-darwin) racc (~> 1.4) - nokogiri (1.17.1-x86_64-linux) + nokogiri (1.17.2-x86_64-linux) racc (~> 1.4) openssl (3.2.0) ostruct (0.6.1) @@ -411,7 +411,7 @@ GEM activesupport (>= 7.0.0) rack railties (>= 7.0.0) - psych (5.2.1) + psych (5.2.2) date stringio public_suffix (6.0.1) @@ -438,7 +438,7 @@ GEM activesupport (>= 5.0.0) minitest nokogiri (>= 1.6) - rails-html-sanitizer (1.6.1) + rails-html-sanitizer (1.6.2) loofah (~> 2.21) nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0) rails_best_practices (1.23.2) @@ -451,7 +451,7 @@ GEM ruby-progressbar rainbow (3.1.1) rake (13.2.1) - rdoc (6.8.1) + rdoc (6.10.0) psych (>= 4.0.0) reek (6.3.0) dry-schema (~> 1.13.0) @@ -459,7 +459,7 @@ GEM rainbow (>= 2.0, < 4.0) rexml (~> 3.1) regexp_parser (2.9.3) - reline (0.5.12) + reline (0.6.0) io-console (~> 0.5) require_all (3.0.0) rexml (3.3.9) @@ -509,7 +509,7 @@ GEM nokogiri (>= 1.12.0) scout_apm (5.4.0) parser - securerandom (0.4.0) + securerandom (0.4.1) sexp_processor (4.17.3) simplecov (0.22.0) docile (~> 1.1) diff --git a/app/content/layouts/article.html.erb b/app/content/layouts/article.html.erb index e2cecb2e..a81bac16 100644 --- a/app/content/layouts/article.html.erb +++ b/app/content/layouts/article.html.erb @@ -20,7 +20,7 @@ <%= render Pages::Timestamp.new published_on: current_page.published_on, updated_on: current_page.revised_on, class: "text-small block" %>
<% topics = current_page.topics.approved.pluck(:slug) %> - <% if topics.present? %> + <% if topics.any? %> <%= render Pages::Topics.new(topics: topics) %> <% end %>
@@ -30,7 +30,7 @@ <% cache [@current_page, :related_pages] do %> <% related_pages = @current_page.related_pages.published.limit(3) %> - <% if related_pages.present? %> + <% if related_pages.load.any? %>

More articles to enjoy