aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-10-16 11:51:26 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-10-17 08:58:34 +0200
commit2559018decedb1900994d318ab511d43f8a557f6 (patch)
treea94614bc9dd8844502e582c17b430cd97802a2c2
parentf87d138fc1374506ac61edb3e262d16226827223 (diff)
downloadoperum-2559018decedb1900994d318ab511d43f8a557f6.tar.gz
operum-2559018decedb1900994d318ab511d43f8a557f6.zip
Update Rails and Ruby
Patch level releases which fixes some minor issues on both Ruby and Ruby and Rails. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
-rw-r--r--.ruby-version2
-rw-r--r--Dockerfile2
-rw-r--r--Gemfile2
-rw-r--r--Gemfile.lock168
-rw-r--r--app/models/thing.rb7
5 files changed, 89 insertions, 92 deletions
diff --git a/.ruby-version b/.ruby-version
index 6d5369b..f13c6f4 100644
--- a/.ruby-version
+++ b/.ruby-version
@@ -1 +1 @@
-ruby-3.3.4
+ruby-3.3.5
diff --git a/Dockerfile b/Dockerfile
index af641b5..da86f8b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,7 +1,7 @@
# syntax = docker/dockerfile:1
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile
-ARG RUBY_VERSION=3.3.4
+ARG RUBY_VERSION=3.3.5
FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim AS base
# Rails app lives here
diff --git a/Gemfile b/Gemfile
index b748e52..1bfdb85 100644
--- a/Gemfile
+++ b/Gemfile
@@ -2,7 +2,7 @@
source 'https://rubygems.org'
-ruby '3.3.4'
+ruby '3.3.5'
# Rails itself :)
gem 'rails', '~> 7.2.0'
diff --git a/Gemfile.lock b/Gemfile.lock
index 0f1e6f2..f3a8576 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -8,29 +8,29 @@ GIT
GEM
remote: https://rubygems.org/
specs:
- actioncable (7.2.1)
- actionpack (= 7.2.1)
- activesupport (= 7.2.1)
+ actioncable (7.2.1.1)
+ actionpack (= 7.2.1.1)
+ activesupport (= 7.2.1.1)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
zeitwerk (~> 2.6)
- actionmailbox (7.2.1)
- actionpack (= 7.2.1)
- activejob (= 7.2.1)
- activerecord (= 7.2.1)
- activestorage (= 7.2.1)
- activesupport (= 7.2.1)
+ actionmailbox (7.2.1.1)
+ actionpack (= 7.2.1.1)
+ activejob (= 7.2.1.1)
+ activerecord (= 7.2.1.1)
+ activestorage (= 7.2.1.1)
+ activesupport (= 7.2.1.1)
mail (>= 2.8.0)
- actionmailer (7.2.1)
- actionpack (= 7.2.1)
- actionview (= 7.2.1)
- activejob (= 7.2.1)
- activesupport (= 7.2.1)
+ actionmailer (7.2.1.1)
+ actionpack (= 7.2.1.1)
+ actionview (= 7.2.1.1)
+ activejob (= 7.2.1.1)
+ activesupport (= 7.2.1.1)
mail (>= 2.8.0)
rails-dom-testing (~> 2.2)
- actionpack (7.2.1)
- actionview (= 7.2.1)
- activesupport (= 7.2.1)
+ actionpack (7.2.1.1)
+ actionview (= 7.2.1.1)
+ activesupport (= 7.2.1.1)
nokogiri (>= 1.8.5)
racc
rack (>= 2.2.4, < 3.2)
@@ -39,35 +39,35 @@ GEM
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
useragent (~> 0.16)
- actiontext (7.2.1)
- actionpack (= 7.2.1)
- activerecord (= 7.2.1)
- activestorage (= 7.2.1)
- activesupport (= 7.2.1)
+ actiontext (7.2.1.1)
+ actionpack (= 7.2.1.1)
+ activerecord (= 7.2.1.1)
+ activestorage (= 7.2.1.1)
+ activesupport (= 7.2.1.1)
globalid (>= 0.6.0)
nokogiri (>= 1.8.5)
- actionview (7.2.1)
- activesupport (= 7.2.1)
+ actionview (7.2.1.1)
+ activesupport (= 7.2.1.1)
builder (~> 3.1)
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
- activejob (7.2.1)
- activesupport (= 7.2.1)
+ activejob (7.2.1.1)
+ activesupport (= 7.2.1.1)
globalid (>= 0.3.6)
- activemodel (7.2.1)
- activesupport (= 7.2.1)
- activerecord (7.2.1)
- activemodel (= 7.2.1)
- activesupport (= 7.2.1)
+ activemodel (7.2.1.1)
+ activesupport (= 7.2.1.1)
+ activerecord (7.2.1.1)
+ activemodel (= 7.2.1.1)
+ activesupport (= 7.2.1.1)
timeout (>= 0.4.0)
- activestorage (7.2.1)
- actionpack (= 7.2.1)
- activejob (= 7.2.1)
- activerecord (= 7.2.1)
- activesupport (= 7.2.1)
+ activestorage (7.2.1.1)
+ actionpack (= 7.2.1.1)
+ activejob (= 7.2.1.1)
+ activerecord (= 7.2.1.1)
+ activesupport (= 7.2.1.1)
marcel (~> 1.0)
- activesupport (7.2.1)
+ activesupport (7.2.1.1)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.3.1)
@@ -88,12 +88,12 @@ GEM
bindex (0.8.1)
bootsnap (1.18.4)
msgpack (~> 1.2)
- brakeman (6.1.2)
+ brakeman (6.2.1)
racc
builder (3.3.0)
bundle-audit (0.1.0)
bundler-audit
- bundler-audit (0.9.1)
+ bundler-audit (0.9.2)
bundler (>= 1.2.0, < 3)
thor (~> 1.0)
capybara (3.40.0)
@@ -123,22 +123,22 @@ GEM
ffi (1.17.0-x86_64-linux-gnu)
globalid (1.2.1)
activesupport (>= 6.1)
- i18n (1.14.5)
+ i18n (1.14.6)
concurrent-ruby (~> 1.0)
image_processing (1.13.0)
mini_magick (>= 4.9.5, < 5)
ruby-vips (>= 2.0.17, < 3)
- importmap-rails (2.0.1)
+ importmap-rails (2.0.3)
actionpack (>= 6.0.0)
activesupport (>= 6.0.0)
railties (>= 6.0.0)
io-console (0.7.2)
- irb (1.14.0)
+ irb (1.14.1)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
json (2.7.2)
language_server-protocol (3.17.0.3)
- logger (1.6.0)
+ logger (1.6.1)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
@@ -152,8 +152,8 @@ GEM
mini_magick (4.13.2)
mini_mime (1.1.5)
minitest (5.25.1)
- msgpack (1.7.2)
- net-imap (0.4.14)
+ msgpack (1.7.3)
+ net-imap (0.4.17)
date
net-protocol
net-protocol (0.2.2)
@@ -174,16 +174,16 @@ GEM
nokogiri (1.16.7-x86_64-linux)
racc (~> 1.4)
parallel (1.26.3)
- parser (3.3.4.2)
+ parser (3.3.5.0)
ast (~> 2.4.1)
racc
psych (5.1.2)
stringio
public_suffix (6.0.1)
- puma (6.4.2)
+ puma (6.4.3)
nio4r (~> 2.0)
racc (1.8.1)
- rack (3.1.7)
+ rack (3.1.8)
rack-session (2.0.0)
rack (>= 3.0.0)
rack-test (2.1.0)
@@ -191,20 +191,20 @@ GEM
rackup (2.1.0)
rack (>= 3)
webrick (~> 1.8)
- rails (7.2.1)
- actioncable (= 7.2.1)
- actionmailbox (= 7.2.1)
- actionmailer (= 7.2.1)
- actionpack (= 7.2.1)
- actiontext (= 7.2.1)
- actionview (= 7.2.1)
- activejob (= 7.2.1)
- activemodel (= 7.2.1)
- activerecord (= 7.2.1)
- activestorage (= 7.2.1)
- activesupport (= 7.2.1)
+ rails (7.2.1.1)
+ actioncable (= 7.2.1.1)
+ actionmailbox (= 7.2.1.1)
+ actionmailer (= 7.2.1.1)
+ actionpack (= 7.2.1.1)
+ actiontext (= 7.2.1.1)
+ actionview (= 7.2.1.1)
+ activejob (= 7.2.1.1)
+ activemodel (= 7.2.1.1)
+ activerecord (= 7.2.1.1)
+ activestorage (= 7.2.1.1)
+ activesupport (= 7.2.1.1)
bundler (>= 1.15.0)
- railties (= 7.2.1)
+ railties (= 7.2.1.1)
rails-dom-testing (2.2.0)
activesupport (>= 5.0.0)
minitest
@@ -215,9 +215,9 @@ GEM
rails-i18n (7.0.9)
i18n (>= 0.7, < 2)
railties (>= 6.0.0, < 8)
- railties (7.2.1)
- actionpack (= 7.2.1)
- activesupport (= 7.2.1)
+ railties (7.2.1.1)
+ actionpack (= 7.2.1.1)
+ activesupport (= 7.2.1.1)
irb (~> 1.13)
rackup (>= 1.0.0)
rake (>= 12.2)
@@ -228,33 +228,31 @@ GEM
rdoc (6.7.0)
psych (>= 4.0.0)
regexp_parser (2.9.2)
- reline (0.5.9)
+ reline (0.5.10)
io-console (~> 0.5)
- rexml (3.3.6)
- strscan
- rubocop (1.65.1)
+ rexml (3.3.8)
+ rubocop (1.67.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.4, < 3.0)
- rexml (>= 3.2.5, < 4.0)
- rubocop-ast (>= 1.31.1, < 2.0)
+ rubocop-ast (>= 1.32.2, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
- rubocop-ast (1.32.1)
+ rubocop-ast (1.32.3)
parser (>= 3.3.1.0)
- rubocop-minitest (0.35.1)
+ rubocop-minitest (0.36.0)
rubocop (>= 1.61, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
- rubocop-performance (1.21.1)
+ rubocop-performance (1.22.1)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
- rubocop-rails (2.25.1)
+ rubocop-rails (2.26.2)
activesupport (>= 4.2.0)
rack (>= 1.1)
- rubocop (>= 1.33.0, < 2.0)
+ rubocop (>= 1.52.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (1.13.0)
ruby-vips (2.2.2)
@@ -262,7 +260,7 @@ GEM
logger
rubyzip (2.3.2)
securerandom (0.3.1)
- selenium-webdriver (4.23.0)
+ selenium-webdriver (4.25.0)
base64 (~> 0.2)
logger (~> 1.4)
rexml (~> 3.2, >= 3.2.5)
@@ -281,33 +279,31 @@ GEM
sqlite3 (1.7.3-x86-linux)
sqlite3 (1.7.3-x86_64-darwin)
sqlite3 (1.7.3-x86_64-linux)
- stimulus-rails (1.3.3)
+ stimulus-rails (1.3.4)
railties (>= 6.0.0)
stringio (3.1.1)
- strscan (3.1.0)
- thor (1.3.1)
+ thor (1.3.2)
timeout (0.4.1)
- turbo-rails (2.0.6)
+ turbo-rails (2.0.11)
actionpack (>= 6.0.0)
- activejob (>= 6.0.0)
railties (>= 6.0.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
- unicode-display_width (2.5.0)
+ unicode-display_width (2.6.0)
useragent (0.16.10)
web-console (4.2.1)
actionview (>= 6.0.0)
activemodel (>= 6.0.0)
bindex (>= 0.4.0)
railties (>= 6.0.0)
- webrick (1.8.1)
+ webrick (1.8.2)
websocket (1.2.11)
websocket-driver (0.7.6)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
xpath (3.2.0)
nokogiri (~> 1.8)
- zeitwerk (2.6.17)
+ zeitwerk (2.7.0)
PLATFORMS
aarch64-linux
@@ -344,7 +340,7 @@ DEPENDENCIES
web-console
RUBY VERSION
- ruby 3.3.4p94
+ ruby 3.3.5p100
BUNDLED WITH
- 2.5.15
+ 2.5.16
diff --git a/app/models/thing.rb b/app/models/thing.rb
index f3596f1..7ec6dc6 100644
--- a/app/models/thing.rb
+++ b/app/models/thing.rb
@@ -12,9 +12,10 @@ class Thing < ApplicationRecord
has_many :tag_references, as: :taggable, dependent: :destroy
has_many :tags, through: :tag_references
- enum :status, %i[read notread tobepublished], validate: true
- enum :kind, %i[other poetry theater essay shorts
- novel paper letters phd chronicle bio it], validate: true
+ enum :status, { read: 0, notread: 1, tobepublished: 2 }, validate: true
+ enum :kind, { other: 0, poetry: 1, theater: 2, essay: 3,
+ shorts: 4, novel: 5, paper: 6, letters: 7,
+ phd: 8, chronicle: 9, bio: 10, it: 11 }, validate: true
# Returns all things which match the given text for any of the string columns
# from the table.