(hopefully) fixes incorrect RSS feed formatting. also some deployment changes that didn't work and gemfile updates

+1
.ruby-gemset
··· 1 + blog
+1 -1
.ruby-version
··· 1 - ruby-3.0.2 1 + ruby-3.2.0
+1
.ruby-version.02.17.2025-01:27:07
··· 1 + ruby-3.0.2
+60
.rvmrc.02.17.2025-01:08:33
··· 1 + #!/usr/bin/env bash 2 + 3 + # This is an RVM Project .rvmrc file, used to automatically load the ruby 4 + # development environment upon cd'ing into the directory 5 + 6 + # First we specify our desired <ruby>[@<gemset>], the @gemset name is optional, 7 + # Only full ruby name is supported here, for short names use: 8 + # echo "rvm use 3.0.2@blog" > .rvmrc 9 + environment_id="ruby-3.0.2@blog" 10 + 11 + # Uncomment the following lines if you want to verify rvm version per project 12 + # rvmrc_rvm_version="1.29.12-next (master)" # 1.10.1 seems like a safe start 13 + # eval "$(echo ${rvm_version}.${rvmrc_rvm_version} | awk -F. '{print "[[ "$1*65536+$2*256+$3" -ge "$4*65536+$5*256+$6" ]]"}' )" || { 14 + # echo "This .rvmrc file requires at least RVM ${rvmrc_rvm_version}, aborting loading." 15 + # exit 1 16 + # } 17 + 18 + # First we attempt to load the desired environment directly from the environment 19 + # file. This is very fast and efficient compared to running through the entire 20 + # CLI and selector. If you want feedback on which environment was used then 21 + # insert the word 'use' after --create as this triggers verbose mode. 22 + if [[ -d "${rvm_path:-$HOME/.rvm}/environments" 23 + && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]] 24 + then 25 + \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id" 26 + for __hook in "${rvm_path:-$HOME/.rvm}/hooks/after_use"* 27 + do 28 + if [[ -f "${__hook}" && -x "${__hook}" && -s "${__hook}" ]] 29 + then \. "${__hook}" || true 30 + fi 31 + done 32 + unset __hook 33 + if (( ${rvm_use_flag:=1} >= 1 )) # display automatically 34 + then 35 + if [[ $- == *i* ]] # check for interactive shells 36 + then printf "%b" "Using: $(tput setaf 2 2>/dev/null)$GEM_HOME$(tput sgr0 2>/dev/null)\n" # show the user the ruby and gemset they are using in green 37 + else printf "%b" "Using: $GEM_HOME\n" # don't use colors in non-interactive shells 38 + fi 39 + fi 40 + else 41 + # If the environment file has not yet been created, use the RVM CLI to select. 42 + rvm --create use "$environment_id" || { 43 + echo "Failed to create RVM environment '${environment_id}'." 44 + return 1 45 + } 46 + fi 47 + 48 + # If you use bundler, this might be useful to you: 49 + # if [[ -s Gemfile ]] && { 50 + # ! builtin command -v bundle >/dev/null || 51 + # builtin command -v bundle | GREP_OPTIONS="" \command \grep $rvm_path/bin/bundle >/dev/null 52 + # } 53 + # then 54 + # printf "%b" "The rubygem 'bundler' is not installed. Installing it now.\n" 55 + # gem install bundler 56 + # fi 57 + # if [[ -s Gemfile ]] && builtin command -v bundle >/dev/null 58 + # then 59 + # bundle install | GREP_OPTIONS="" \command \grep -vE '^Using|Your bundle is complete' 60 + # fi
+1 -1
Gemfile
··· 1 1 source "https://rubygems.org" 2 2 3 - ruby "3.0.2" 3 + ruby "3.2.0" 4 4 5 5 # Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main" 6 6 gem "rails", "~> 7.1.3", ">= 7.1.3.2"
+1 -1
Gemfile.lock
··· 292 292 web-console 293 293 294 294 RUBY VERSION 295 - ruby 3.0.2p107 295 + ruby 3.2.0p0 296 296 297 297 BUNDLED WITH 298 298 2.2.22
+1 -1
app/views/articles/index.rss.builder
··· 8 8 @article.each do |article| 9 9 xml.item do 10 10 xml.title article.title 11 - xml.description article.body 11 + xml.description article.body.to_html.html_safe 12 12 xml.pubDate article.created_at.to_formatted_s(:rfc822) 13 13 xml.link article_url(article) 14 14 xml.guid article_url(article)
+2 -2
config/puma.rb
··· 23 23 worker_timeout 3600 if ENV.fetch("RAILS_ENV", "development") == "development" 24 24 25 25 # Specifies the `port` that Puma will listen on to receive requests; default is 3000. 26 - port ENV.fetch("PORT") { 3000 } 26 + port ENV.fetch("PORT") { 3003 } 27 27 28 28 # Specifies the `environment` that Puma will run in. 29 - environment ENV.fetch("RAILS_ENV") { "development" } 29 + environment ENV.fetch("RAILS_ENV") { "production" } 30 30 31 31 # Specifies the `pidfile` that Puma will use. 32 32 pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }