Skip to content

Commit

Permalink
Merge pull request #328 from joyofrails/chore/random-updates
Browse files Browse the repository at this point in the history
Upgrade to vite 6, update development dependencies
  • Loading branch information
rossta authored Dec 21, 2024
2 parents ba3b544 + e027c7b commit f4d7122
Show file tree
Hide file tree
Showing 8 changed files with 3,433 additions and 5,173 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down
20 changes: 10 additions & 10 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -451,15 +451,15 @@ 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)
parser (~> 3.3.0)
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)
Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions app/content/layouts/article.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<%= render Pages::Timestamp.new published_on: current_page.published_on, updated_on: current_page.revised_on, class: "text-small block" %>
<div class="text-small">
<% topics = current_page.topics.approved.pluck(:slug) %>
<% if topics.present? %>
<% if topics.any? %>
<%= render Pages::Topics.new(topics: topics) %>
<% end %>
</div>
Expand All @@ -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? %>
<h3>More articles to enjoy</h3>
<ul class="list-none">
<% related_pages.each do |page| %>
Expand Down
2 changes: 2 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)

require "honeybadger" unless Rails.env.development?

module Joy
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
Expand Down
Loading

0 comments on commit f4d7122

Please sign in to comment.