Skip to content

Commit 131b88a

Browse files
authored
Merge branch 'main' into fix-Links-on-New-User-Collection-page-to-not-meet-WCAG-AA-minimum-color-contrast-requirements
2 parents dc65dcc + 5b03f59 commit 131b88a

File tree

82 files changed

+368
-416
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+368
-416
lines changed

.dassie/Gemfile

+11-12
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,21 @@ gem 'devise-guests', '~> 0.8'
1818
# Required because grpc and google-protobuf gem's binaries are not compatible with Alpine Linux.
1919
# To install the package in Alpine: `apk add ruby-grpc`
2020
# The pinned versions should match the version provided by the Alpine packages.
21-
if RUBY_PLATFORM =~ /musl/
22-
path '/usr/lib/ruby/gems/3.2.0' do
23-
gem 'google-protobuf', '~> 3.24.4', force_ruby_platform: true
24-
gem 'grpc', '~> 1.59.3', force_ruby_platform: true
25-
end
26-
end
21+
22+
# Disabled due to dependency mismatches in Alpine packages (grpc 1.62.1 needs protobuf ~> 3.25)
23+
# if RUBY_PLATFORM =~ /musl/
24+
# path '/usr/lib/ruby/gems/3.3.0' do
25+
# gem 'google-protobuf', '~> 3.24.4', force_ruby_platform: true
26+
# gem 'grpc', '~> 1.62.1', force_ruby_platform: true
27+
# end
28+
# end
2729

2830
gemspec name: 'hyrax', path: ENV.fetch('HYRAX_ENGINE_PATH', '..')
2931
gem 'jbuilder', '~> 2.5'
3032
gem 'jquery-rails'
3133
gem 'pg', '~> 1.3'
3234
gem 'puma'
33-
gem 'rails', '~> 6.1', '>= 6.1.7.10'
35+
gem 'rails', '~> 7.2', '< 8.0'
3436
gem 'riiif', '~> 2.1'
3537
gem 'rsolr', '>= 1.0', '< 3'
3638
gem 'sass-rails', '~> 6.0'
@@ -39,22 +41,19 @@ gem 'turbolinks', '~> 5'
3941
gem 'twitter-typeahead-rails', '0.11.1.pre.corejavascript'
4042
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
4143
gem 'uglifier', '>= 1.3.0'
44+
gem 'activerecord-nulldb-adapter', '~> 1.1'
4245

4346
group :development do
4447
gem 'better_errors' # add command line in browser when errors
4548
gem 'binding_of_caller' # deeper stack trace used by better errors
4649

4750
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
4851
gem 'web-console', '>= 3.3.0'
49-
gem 'listen', '>= 3.0.5', '< 3.2'
50-
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
51-
gem 'spring'
52-
gem 'spring-watcher-listen', '~> 2.0.0'
5352
end
5453

5554
group :development, :test do
5655
gem 'debug', '>= 1.0.0'
5756
gem 'pry-doc'
5857
gem 'pry-rails'
5958
gem 'pry-rescue'
60-
end
59+
end

.dassie/bin/rails

-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
#!/usr/bin/env ruby
2-
begin
3-
load File.expand_path('../spring', __FILE__)
4-
rescue LoadError => e
5-
raise unless e.message.include?('spring')
6-
end
72
APP_PATH = File.expand_path('../config/application', __dir__)
83
require_relative '../config/boot'
94
require 'rails/commands'

.dassie/bin/rake

-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
#!/usr/bin/env ruby
2-
begin
3-
load File.expand_path('../spring', __FILE__)
4-
rescue LoadError => e
5-
raise unless e.message.include?('spring')
6-
end
72
require_relative '../config/boot'
83
require 'rake'
94
Rake.application.run

.dassie/bin/spring

-17
This file was deleted.

.dassie/config/environments/development.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
config.assets.prefix = '/dev-assets'
6666

6767
# Raises error for missing translations
68-
config.action_view.raise_on_missing_translations = true
68+
config.i18n.raise_on_missing_translations = true
6969

7070
# Use an evented file watcher to asynchronously detect changes in source code,
7171
# routes, locales, etc. This feature depends on the listen gem.

.dassie/config/environments/production.rb

+4-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@
2323
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
2424

2525
# Compress JavaScripts and CSS.
26-
config.assets.js_compressor = Uglifier.new(harmony: true)
27-
# config.assets.css_compressor = :sass
26+
config.assets.configure do |env|
27+
env.js_compressor = :uglifier
28+
# env.css_compressor = :sass
29+
end
2830

2931
# Do not fallback to assets pipeline if a precompiled asset is missed.
3032
config.assets.compile = false

.dassie/config/environments/test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@
4343
config.active_support.deprecation = :stderr
4444

4545
# Raises error for missing translations
46-
config.action_view.raise_on_missing_translations = true
46+
config.i18n.raise_on_missing_translations = true
4747
end

.dassie/config/initializers/mini_magick.rb

-6
This file was deleted.

.dassie/config/initializers/riiif.rb

+20-18
Original file line numberDiff line numberDiff line change
@@ -35,29 +35,31 @@
3535
module Hyrax
3636
# Adds file locking to Riiif::File
3737
# @see RiiifFileResolver
38-
class RiiifFile < Riiif::File
39-
include ActiveSupport::Benchmarkable
40-
41-
attr_reader :id
42-
def initialize(input_path, tempfile = nil, id:)
43-
super(input_path, tempfile)
44-
raise(ArgumentError, "must specify id") if id.blank?
45-
@id = id
46-
end
38+
Rails.application.reloader.to_prepare do
39+
class RiiifFile < Riiif::File
40+
include ActiveSupport::Benchmarkable
41+
42+
attr_reader :id
43+
def initialize(input_path, tempfile = nil, id:)
44+
super(input_path, tempfile)
45+
raise(ArgumentError, "must specify id") if id.blank?
46+
@id = id
47+
end
4748

48-
# Wrap extract in a read lock and benchmark it
49-
def extract(transformation, image_info = nil)
50-
Riiif::Image.file_resolver.file_locks[id].with_read_lock do
51-
benchmark "RiiifFile extracted #{path} with #{transformation.to_params}", level: :debug do
52-
super
49+
# Wrap extract in a read lock and benchmark it
50+
def extract(transformation, image_info = nil)
51+
Riiif::Image.file_resolver.file_locks[id].with_read_lock do
52+
benchmark "RiiifFile extracted #{path} with #{transformation.to_params}", level: :debug do
53+
super
54+
end
5355
end
5456
end
55-
end
5657

57-
private
58+
private
5859

59-
def logger
60-
Hyrax.logger
60+
def logger
61+
Hyrax.logger
62+
end
6163
end
6264
end
6365

.dassie/config/spring.rb

-6
This file was deleted.

0 commit comments

Comments
 (0)