From fa0ccc43010297c0c10e3075095c0a9171989498 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Fri, 26 Jun 2026 04:05:04 +0200 Subject: Stage 5: Rails 6.1 → 7.2 on Ruby 3.2.11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Bump Rails to 7.2.3, Ruby to 3.2.11 (new gemset rails7-upgrade) - pg pinned to 1.4.6 (bridge: Ruby 3.2 compatible, PostgreSQL 9.6 tolerant) - acts-as-taggable-on → 12.x (Rails 7.2 + Ruby 3.2 support) - awesome_nested_set → 3.7.0 (Rails 7.2 support, avoids 3.9.0 lft/rgt bug) - globalize → 7.0 (Rails 7.x required) - libxml-ruby → 5.x (Ruby 3.2 required) - unicorn → 6.x; fix unicorn.rb: RAILS_ROOT→Rails.root, RAILS_ENV→ENV, File.exists?→File.exist? - Add puma for development server - Remove dead initializers: assets.rb, ruby2.rb, backtrace_silencers.rb, new_rails_defaults.rb - Fix File.exists? → File.exist? in page.rb and authors_importer.rb - Add routing_filter_rails71_patch.rb (restores params[:locale] on Rails 7.1+) --- lib/authors_importer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/authors_importer.rb b/lib/authors_importer.rb index 8532a95..e0b16bd 100644 --- a/lib/authors_importer.rb +++ b/lib/authors_importer.rb @@ -4,7 +4,7 @@ require 'digest/sha1' class AuthorsImporter def initialize path - @parsed_file = CSV::Reader.parse(File.open(path, "r")) if File.exists? path + @parsed_file = CSV::Reader.parse(File.open(path, "r")) if File.exist? path end def import_authors -- cgit v1.3