Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .dassie/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@ if RUBY_PLATFORM =~ /musl/
end

gem 'hydra-role-management'
gem 'active-fedora', git: 'https://github.com/samvera/active_fedora.git', branch: 'main'

gemspec name: 'hyrax', path: ENV.fetch('HYRAX_ENGINE_PATH', '..')
gem 'jbuilder', '~> 2.5'
gem 'jquery-rails'
gem 'okcomputer'
gem 'pg', '~> 1.3'
gem 'puma'
gem 'rack-mini-profiler', require: ['prepend_net_http_patch']
gem 'rails', '6.1.7.10'
gem 'rails', '~> 8.0'
gem 'riiif', '~> 2.8'
gem 'rsolr', '>= 1.0', '< 3'
gem 'sass-rails', '~> 6.0'
Expand Down
2 changes: 1 addition & 1 deletion .dassie/config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

concern :searchable, Blacklight::Routes::Searchable.new

resource :catalog, only: [:index], as: 'catalog', path: '/catalog', controller: 'catalog' do
resource :catalog, only: [:show], as: 'catalog', path: '/catalog', controller: 'catalog' do
concerns :searchable
end
devise_for :users
Expand Down
4 changes: 3 additions & 1 deletion .koppie/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,16 @@ if RUBY_PLATFORM =~ /musl/
end

gem 'hydra-role-management'
gem 'active-fedora', git: 'https://github.com/samvera/active_fedora.git', branch: 'main'

gemspec name: 'hyrax', path: ENV.fetch('HYRAX_ENGINE_PATH', '..')
gem 'jbuilder', '~> 2.5'
gem 'jquery-rails'
gem 'okcomputer'
gem 'pg', '~> 1.3'
gem 'puma'
gem 'rack-mini-profiler', require: ['prepend_net_http_patch']
gem 'rails', '~> 7.2', '< 8.0'
gem 'rails', '~> 8.0'
gem 'riiif', '~> 2.8'
gem 'rsolr', '>= 1.0', '< 3'
gem 'sass-rails', '~> 6.0'
Expand Down
2 changes: 1 addition & 1 deletion .koppie/config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

concern :searchable, Blacklight::Routes::Searchable.new

resource :catalog, only: [:index], as: 'catalog', path: '/catalog', controller: 'catalog' do
resource :catalog, only: [:show], as: 'catalog', path: '/catalog', controller: 'catalog' do
concerns :searchable
end
devise_for :users
Expand Down
4 changes: 2 additions & 2 deletions .koppie/db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.2].define(version: 2024_06_06_205216) do
ActiveRecord::Schema[8.0].define(version: 2024_06_06_205216) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
enable_extension "pg_catalog.plpgsql"
enable_extension "uuid-ossp"

create_table "bookmarks", id: :serial, force: :cascade do |t|
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ else
gemspec
end

gem 'active-fedora', git: 'https://github.com/samvera/active_fedora.git', branch: 'main'

group :development, :test do
gem 'benchmark-ips'
gem 'easy_translate'
Expand Down
5 changes: 2 additions & 3 deletions app/models/hyrax/operation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@ class Operation < ActiveRecord::Base
FAILURE = 'failure'
SUCCESS = 'success'

enum(
status: {
enum :status,
{
FAILURE => FAILURE,
PENDING => PENDING,
PERFORMING => PERFORMING,
SUCCESS => SUCCESS
}
)

self.table_name = 'curation_concerns_operations'
acts_as_nested_set
Expand Down
5 changes: 2 additions & 3 deletions app/models/hyrax/permission_template_access.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ class PermissionTemplateAccess < ActiveRecord::Base
GROUP = 'group'
USER = 'user'

enum(
access: {
enum :access,
{
VIEW => VIEW,
DEPOSIT => DEPOSIT,
MANAGE => MANAGE
}
)

# @api public
#
Expand Down
5 changes: 2 additions & 3 deletions app/models/proxy_deposit_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,13 @@ def send_request_transfer_message_as_part_of_update
CANCELED = 'canceled'
REJECTED = 'rejected'

enum(
status: {
enum :status,
{
ACCEPTED => ACCEPTED,
CANCELED => CANCELED,
PENDING => PENDING,
REJECTED => REJECTED
}
)

# @param [TrueClass,FalseClass] reset (false) if true, reset the access controls. This revokes edit access from the depositor
def transfer!(reset = false)
Expand Down
2 changes: 1 addition & 1 deletion app/models/sipity/notification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Notification < ActiveRecord::Base
NOTIFICATION_TYPE_EMAIL = 'email'

# TODO: There are other types, but for now, we are assuming just emails to send.
enum(notification_type: { NOTIFICATION_TYPE_EMAIL => NOTIFICATION_TYPE_EMAIL })
enum :notification_type, { NOTIFICATION_TYPE_EMAIL => NOTIFICATION_TYPE_EMAIL }

def self.valid_notification_types
notification_types.keys
Expand Down
5 changes: 2 additions & 3 deletions app/models/sipity/notification_recipient.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ class NotificationRecipient < ActiveRecord::Base
belongs_to :notification, class_name: 'Sipity::Notification'
belongs_to :role, class_name: 'Sipity::Role'

enum(
recipient_strategy: {
enum :recipient_strategy,
{
'to' => 'to',
'cc' => 'cc',
'bcc' => 'bcc'
}
)
end
end
4 changes: 2 additions & 2 deletions hyrax.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ SUMMARY
# NOTE: rails does not follow sem-ver conventions, it's
# minor version releases can include breaking changes; see
# http://guides.rubyonrails.org/maintenance_policy.html
spec.add_dependency 'rails', '> 6.1', '< 8.0'
spec.add_dependency 'rails', '~> 8.0'

spec.add_dependency 'active-fedora', '~> 15.0'
spec.add_dependency 'almond-rails', '~> 0.1'
Expand Down Expand Up @@ -86,7 +86,7 @@ SUMMARY
spec.add_dependency 'signet'
spec.add_dependency 'tinymce-rails', '~> 5.10'
spec.add_dependency 'valkyrie', '~> 3.5'
spec.add_dependency 'view_component', '~> 2.74.1' # Pin until blacklight is updated with workaround for https://github.com/ViewComponent/view_component/issues/1565
spec.add_dependency 'view_component'
spec.add_dependency 'sprockets', '3.7.2' # 3.7.3 fails feature specs
spec.add_dependency 'sass-rails', '~> 6.0'
spec.add_dependency 'select2-rails', '~> 3.5'
Expand Down
Loading