summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-06-26 04:05:04 +0200
committererdgeist <erdgeist@erdgeist.org>2026-06-26 04:05:04 +0200
commitfa0ccc43010297c0c10e3075095c0a9171989498 (patch)
tree3d857550ce094a4c4e860ce25f1034923c30ce52 /lib
parentc06723ee715512c2033c7786c48f15674585b56b (diff)
Stage 5: Rails 6.1 → 7.2 on Ruby 3.2.11
- 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+)
Diffstat (limited to 'lib')
-rw-r--r--lib/authors_importer.rb2
1 files changed, 1 insertions, 1 deletions
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'
4class AuthorsImporter 4class AuthorsImporter
5 5
6 def initialize path 6 def initialize path
7 @parsed_file = CSV::Reader.parse(File.open(path, "r")) if File.exists? path 7 @parsed_file = CSV::Reader.parse(File.open(path, "r")) if File.exist? path
8 end 8 end
9 9
10 def import_authors 10 def import_authors