hyrax 4.0.0.beta2 → 4.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +126 -53
- data/.dassie/Gemfile +1 -1
- data/.dassie/app/controllers/catalog_controller.rb +1 -1
- data/.dassie/config/initializers/hyrax.rb +4 -0
- data/.github/CONTRIBUTING.md +39 -27
- data/.github/SUPPORT.md +2 -3
- data/.github/workflows/main.yml +4 -4
- data/.github/workflows/release.yml +10 -4
- data/.koppie/Gemfile +1 -2
- data/.koppie/app/controllers/catalog_controller.rb +1 -1
- data/.koppie/config/authorities/licenses.yml +7 -7
- data/.koppie/config/initializers/file_services.rb +4 -0
- data/.koppie/db/schema.rb +2 -2
- data/.koppie/yarn.lock +1 -1
- data/.regen +1 -1
- data/CONTAINERS.md +5 -5
- data/CONTRIBUTING.md +2 -2
- data/Dockerfile +21 -9
- data/README.md +24 -97
- data/app/actors/hyrax/actors/create_with_files_actor.rb +1 -1
- data/app/assets/stylesheets/hyrax/_catalog.scss +4 -0
- data/app/assets/stylesheets/hyrax/_forms.scss +4 -0
- data/app/controllers/concerns/hyrax/controller.rb +3 -24
- data/app/controllers/concerns/hyrax/works_controller_behavior.rb +1 -0
- data/app/controllers/hyrax/admin/strategies_controller.rb +2 -2
- data/app/controllers/hyrax/dashboard/collections_controller.rb +1 -1
- data/app/controllers/hyrax/downloads_controller.rb +16 -1
- data/app/controllers/hyrax/file_sets_controller.rb +9 -2
- data/app/controllers/hyrax/my/works_controller.rb +3 -1
- data/app/controllers/hyrax/transfers_controller.rb +4 -1
- data/app/controllers/hyrax/workflow_actions_controller.rb +3 -2
- data/app/forms/hyrax/forms/administrative_set_form.rb +1 -1
- data/app/forms/hyrax/forms/file_set_edit_form.rb +1 -1
- data/app/forms/hyrax/forms/file_set_form.rb +8 -35
- data/app/forms/hyrax/forms/pcdm_collection_form.rb +2 -2
- data/app/forms/hyrax/forms/pcdm_object_form.rb +46 -0
- data/app/forms/hyrax/forms/permission.rb +2 -2
- data/app/forms/hyrax/forms/resource_form.rb +19 -44
- data/app/forms/hyrax/forms/work_embargo_form.rb +3 -3
- data/app/forms/hyrax/forms/work_lease_form.rb +3 -3
- data/app/helpers/hyrax/content_block_helper_behavior.rb +1 -1
- data/app/helpers/hyrax/hyrax_helper_behavior.rb +1 -1
- data/app/helpers/hyrax/iiif_helper.rb +1 -1
- data/app/indexers/hyrax/valkyrie_file_set_indexer.rb +1 -1
- data/app/jobs/characterize_job.rb +3 -2
- data/app/jobs/valkyrie_create_derivatives_job.rb +0 -2
- data/app/models/collection_branding_info.rb +7 -13
- data/app/models/concerns/hyrax/ability.rb +1 -1
- data/app/models/concerns/hyrax/collection_behavior.rb +0 -47
- data/app/models/concerns/hyrax/solr_document/metadata.rb +1 -0
- data/app/models/concerns/hyrax/suppressible.rb +0 -8
- data/app/models/file_download_stat.rb +4 -4
- data/app/models/hyrax/collection_type.rb +0 -16
- data/app/models/hyrax/file_metadata.rb +5 -12
- data/app/models/hyrax/file_set.rb +1 -9
- data/app/models/hyrax/permission_template.rb +1 -1
- data/app/models/hyrax/statistic.rb +4 -4
- data/app/models/sipity.rb +27 -6
- data/app/presenters/hyrax/collection_presenter.rb +1 -1
- data/app/presenters/hyrax/iiif_manifest_presenter.rb +15 -5
- data/app/presenters/hyrax/presenter_factory.rb +2 -2
- data/app/presenters/hyrax/work_show_presenter.rb +1 -1
- data/app/presenters/hyrax/workflow_presenter.rb +1 -1
- data/app/search_builders/hyrax/collection_search_builder.rb +1 -0
- data/app/search_builders/hyrax/filter_suppressed_with_roles.rb +1 -1
- data/app/services/hyrax/admin_set_service.rb +1 -1
- data/app/services/hyrax/collections/nested_collection_query_service.rb +2 -2
- data/app/services/hyrax/database_migrator.rb +1 -1
- data/app/services/hyrax/edit_permissions_service.rb +21 -3
- data/app/services/hyrax/restriction_service.rb +1 -1
- data/app/services/hyrax/solr_query_service.rb +10 -2
- data/app/services/hyrax/solr_service.rb +24 -18
- data/app/services/hyrax/thumbnail_path_service.rb +10 -2
- data/app/services/hyrax/valkyrie_persist_derivatives.rb +26 -15
- data/app/services/hyrax/valkyrie_upload.rb +23 -30
- data/app/services/hyrax/visibility_propagator.rb +5 -5
- data/app/services/hyrax/visibility_reader.rb +1 -1
- data/app/services/hyrax/visibility_writer.rb +1 -1
- data/app/services/hyrax/workflow/permission_query.rb +5 -5
- data/app/services/hyrax/workflow/status_list_service.rb +1 -1
- data/app/validators/hyrax/collection_membership_validator.rb +2 -2
- data/app/views/hyrax/base/_attribute_rows.html.erb +2 -0
- data/app/views/hyrax/dashboard/collections/_form_for_select_collection.html.erb +1 -1
- data/app/views/hyrax/file_sets/_permission.html.erb +1 -1
- data/app/views/hyrax/file_sets/edit.html.erb +1 -1
- data/app/views/hyrax/file_sets/media_display/_audio.html.erb +1 -1
- data/app/views/hyrax/file_sets/media_display/_default.html.erb +1 -1
- data/app/views/hyrax/file_sets/media_display/_image.html.erb +1 -1
- data/app/views/hyrax/file_sets/media_display/_office_document.html.erb +1 -1
- data/app/views/hyrax/file_sets/media_display/_pdf.html.erb +1 -1
- data/app/views/hyrax/file_sets/media_display/_video.html.erb +1 -1
- data/app/views/hyrax/uploads/_js_templates.html.erb +8 -8
- data/app/views/hyrax/uploads/_js_templates_branding.html.erb +2 -2
- data/app/views/hyrax/users/_vitals.html.erb +4 -4
- data/chart/hyrax/Chart.yaml +7 -7
- data/chart/hyrax/README.md +5 -0
- data/chart/hyrax/templates/_helpers.tpl +14 -6
- data/chart/hyrax/templates/cron-embargo.yaml +1 -1
- data/chart/hyrax/templates/cron-lease.yaml +1 -1
- data/chart/hyrax/templates/deployment-worker.yaml +2 -2
- data/chart/hyrax/templates/extra-list.yaml +8 -0
- data/chart/hyrax/templates/secrets.yaml +3 -3
- data/chart/hyrax/values.yaml +22 -15
- data/config/initializers/kaminari_engine_patch.rb +16 -0
- data/config/locales/hyrax.de.yml +7 -7
- data/config/locales/hyrax.es.yml +7 -7
- data/config/locales/hyrax.fr.yml +8 -8
- data/config/locales/hyrax.it.yml +7 -7
- data/config/locales/hyrax.pt-BR.yml +7 -7
- data/config/locales/hyrax.zh.yml +8 -8
- data/config/metadata/file_set_metadata.yaml +130 -0
- data/documentation/MAINTENANCE.md +77 -0
- data/documentation/developing-your-hyrax-based-app.md +2 -2
- data/documentation/legacyREADME.md +3 -3
- data/hyrax.gemspec +7 -10
- data/lib/generators/hyrax/templates/catalog_controller.rb +1 -1
- data/lib/hyrax/configuration.rb +16 -0
- data/lib/hyrax/controlled_vocabularies/resource_label_caching.rb +1 -1
- data/lib/hyrax/engine.rb +2 -1
- data/lib/hyrax/transactions/container.rb +0 -2
- data/lib/hyrax/transactions/steps/save_collection_banner.rb +1 -1
- data/lib/hyrax/transactions/steps/save_collection_logo.rb +1 -1
- data/lib/hyrax/transactions/transaction.rb +3 -2
- data/lib/hyrax/version.rb +1 -1
- data/lib/hyrax.rb +0 -1
- data/lib/valkyrie/indexing/solr/indexing_adapter.rb +1 -1
- data/lib/wings/active_fedora_converter/file_metadata_node.rb +1 -1
- data/lib/wings/valkyrie/storage.rb +4 -1
- data/samvera-fall-TM3.svg +376 -0
- data/template.rb +1 -1
- metadata +43 -85
- data/app/conversions/power_converters/polymorphic_type.rb +0 -9
- data/app/conversions/power_converters/sipity_action.rb +0 -11
- data/app/conversions/power_converters/sipity_action_name.rb +0 -10
- data/app/conversions/power_converters/sipity_agent.rb +0 -9
- data/app/conversions/power_converters/sipity_entity.rb +0 -14
- data/app/conversions/power_converters/sipity_role.rb +0 -10
- data/app/conversions/power_converters/sipity_workflow_id.rb +0 -17
- data/app/conversions/power_converters/sipity_workflow_state.rb +0 -13
- data/app/conversions/power_converters.rb +0 -7
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hyrax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.
|
4
|
+
version: 4.0.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date:
|
17
|
+
date: 2023-05-01 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: rails
|
@@ -36,20 +36,14 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
40
|
-
- - ">="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: 13.1.2
|
39
|
+
version: '14.0'
|
43
40
|
type: :runtime
|
44
41
|
prerelease: false
|
45
42
|
version_requirements: !ruby/object:Gem::Requirement
|
46
43
|
requirements:
|
47
44
|
- - "~>"
|
48
45
|
- !ruby/object:Gem::Version
|
49
|
-
version: '
|
50
|
-
- - ">="
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: 13.1.2
|
46
|
+
version: '14.0'
|
53
47
|
- !ruby/object:Gem::Dependency
|
54
48
|
name: almond-rails
|
55
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -211,33 +205,33 @@ dependencies:
|
|
211
205
|
- !ruby/object:Gem::Version
|
212
206
|
version: '0.2'
|
213
207
|
- !ruby/object:Gem::Dependency
|
214
|
-
name: dry-
|
208
|
+
name: dry-monads
|
215
209
|
requirement: !ruby/object:Gem::Requirement
|
216
210
|
requirements:
|
217
211
|
- - "~>"
|
218
212
|
- !ruby/object:Gem::Version
|
219
|
-
version: '1.
|
213
|
+
version: '1.5'
|
220
214
|
type: :runtime
|
221
215
|
prerelease: false
|
222
216
|
version_requirements: !ruby/object:Gem::Requirement
|
223
217
|
requirements:
|
224
218
|
- - "~>"
|
225
219
|
- !ruby/object:Gem::Version
|
226
|
-
version: '1.
|
220
|
+
version: '1.5'
|
227
221
|
- !ruby/object:Gem::Dependency
|
228
|
-
name: dry-
|
222
|
+
name: dry-struct
|
229
223
|
requirement: !ruby/object:Gem::Requirement
|
230
224
|
requirements:
|
231
225
|
- - "~>"
|
232
226
|
- !ruby/object:Gem::Version
|
233
|
-
version: '0
|
227
|
+
version: '1.0'
|
234
228
|
type: :runtime
|
235
229
|
prerelease: false
|
236
230
|
version_requirements: !ruby/object:Gem::Requirement
|
237
231
|
requirements:
|
238
232
|
- - "~>"
|
239
233
|
- !ruby/object:Gem::Version
|
240
|
-
version: '0
|
234
|
+
version: '1.0'
|
241
235
|
- !ruby/object:Gem::Dependency
|
242
236
|
name: dry-validation
|
243
237
|
requirement: !ruby/object:Gem::Requirement
|
@@ -328,14 +322,14 @@ dependencies:
|
|
328
322
|
requirements:
|
329
323
|
- - "~>"
|
330
324
|
- !ruby/object:Gem::Version
|
331
|
-
version: 1.1
|
325
|
+
version: '1.1'
|
332
326
|
type: :runtime
|
333
327
|
prerelease: false
|
334
328
|
version_requirements: !ruby/object:Gem::Requirement
|
335
329
|
requirements:
|
336
330
|
- - "~>"
|
337
331
|
- !ruby/object:Gem::Version
|
338
|
-
version: 1.1
|
332
|
+
version: '1.1'
|
339
333
|
- !ruby/object:Gem::Dependency
|
340
334
|
name: hydra-head
|
341
335
|
requirement: !ruby/object:Gem::Requirement
|
@@ -398,20 +392,6 @@ dependencies:
|
|
398
392
|
- - ">="
|
399
393
|
- !ruby/object:Gem::Version
|
400
394
|
version: '0'
|
401
|
-
- !ruby/object:Gem::Dependency
|
402
|
-
name: kaminari_route_prefix
|
403
|
-
requirement: !ruby/object:Gem::Requirement
|
404
|
-
requirements:
|
405
|
-
- - "~>"
|
406
|
-
- !ruby/object:Gem::Version
|
407
|
-
version: 0.1.1
|
408
|
-
type: :runtime
|
409
|
-
prerelease: false
|
410
|
-
version_requirements: !ruby/object:Gem::Requirement
|
411
|
-
requirements:
|
412
|
-
- - "~>"
|
413
|
-
- !ruby/object:Gem::Version
|
414
|
-
version: 0.1.1
|
415
395
|
- !ruby/object:Gem::Dependency
|
416
396
|
name: legato
|
417
397
|
requirement: !ruby/object:Gem::Requirement
|
@@ -474,14 +454,14 @@ dependencies:
|
|
474
454
|
requirements:
|
475
455
|
- - "~>"
|
476
456
|
- !ruby/object:Gem::Version
|
477
|
-
version: 3.0
|
457
|
+
version: '3.0'
|
478
458
|
type: :runtime
|
479
459
|
prerelease: false
|
480
460
|
version_requirements: !ruby/object:Gem::Requirement
|
481
461
|
requirements:
|
482
462
|
- - "~>"
|
483
463
|
- !ruby/object:Gem::Version
|
484
|
-
version: 3.0
|
464
|
+
version: '3.0'
|
485
465
|
- !ruby/object:Gem::Dependency
|
486
466
|
name: oauth
|
487
467
|
requirement: !ruby/object:Gem::Requirement
|
@@ -538,26 +518,6 @@ dependencies:
|
|
538
518
|
- - ">="
|
539
519
|
- !ruby/object:Gem::Version
|
540
520
|
version: '0'
|
541
|
-
- !ruby/object:Gem::Dependency
|
542
|
-
name: power_converter
|
543
|
-
requirement: !ruby/object:Gem::Requirement
|
544
|
-
requirements:
|
545
|
-
- - "~>"
|
546
|
-
- !ruby/object:Gem::Version
|
547
|
-
version: '0.1'
|
548
|
-
- - ">="
|
549
|
-
- !ruby/object:Gem::Version
|
550
|
-
version: 0.1.2
|
551
|
-
type: :runtime
|
552
|
-
prerelease: false
|
553
|
-
version_requirements: !ruby/object:Gem::Requirement
|
554
|
-
requirements:
|
555
|
-
- - "~>"
|
556
|
-
- !ruby/object:Gem::Version
|
557
|
-
version: '0.1'
|
558
|
-
- - ">="
|
559
|
-
- !ruby/object:Gem::Version
|
560
|
-
version: 0.1.2
|
561
521
|
- !ruby/object:Gem::Dependency
|
562
522
|
name: qa
|
563
523
|
requirement: !ruby/object:Gem::Requirement
|
@@ -655,6 +615,9 @@ dependencies:
|
|
655
615
|
- - ">="
|
656
616
|
- !ruby/object:Gem::Version
|
657
617
|
version: 0.1.2
|
618
|
+
- - "<"
|
619
|
+
- !ruby/object:Gem::Version
|
620
|
+
version: '2.0'
|
658
621
|
type: :runtime
|
659
622
|
prerelease: false
|
660
623
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -662,6 +625,9 @@ dependencies:
|
|
662
625
|
- - ">="
|
663
626
|
- !ruby/object:Gem::Version
|
664
627
|
version: 0.1.2
|
628
|
+
- - "<"
|
629
|
+
- !ruby/object:Gem::Version
|
630
|
+
version: '2.0'
|
665
631
|
- !ruby/object:Gem::Dependency
|
666
632
|
name: reform
|
667
633
|
requirement: !ruby/object:Gem::Requirement
|
@@ -710,20 +676,6 @@ dependencies:
|
|
710
676
|
- - "<"
|
711
677
|
- !ruby/object:Gem::Version
|
712
678
|
version: '4.0'
|
713
|
-
- !ruby/object:Gem::Dependency
|
714
|
-
name: samvera-nesting_indexer
|
715
|
-
requirement: !ruby/object:Gem::Requirement
|
716
|
-
requirements:
|
717
|
-
- - "~>"
|
718
|
-
- !ruby/object:Gem::Version
|
719
|
-
version: '2.0'
|
720
|
-
type: :runtime
|
721
|
-
prerelease: false
|
722
|
-
version_requirements: !ruby/object:Gem::Requirement
|
723
|
-
requirements:
|
724
|
-
- - "~>"
|
725
|
-
- !ruby/object:Gem::Version
|
726
|
-
version: '2.0'
|
727
679
|
- !ruby/object:Gem::Dependency
|
728
680
|
name: signet
|
729
681
|
requirement: !ruby/object:Gem::Requirement
|
@@ -758,20 +710,28 @@ dependencies:
|
|
758
710
|
requirements:
|
759
711
|
- - "~>"
|
760
712
|
- !ruby/object:Gem::Version
|
761
|
-
version:
|
762
|
-
- - ">="
|
763
|
-
- !ruby/object:Gem::Version
|
764
|
-
version: 2.1.1
|
713
|
+
version: 3.0.1
|
765
714
|
type: :runtime
|
766
715
|
prerelease: false
|
767
716
|
version_requirements: !ruby/object:Gem::Requirement
|
768
717
|
requirements:
|
769
718
|
- - "~>"
|
770
719
|
- !ruby/object:Gem::Version
|
771
|
-
version:
|
772
|
-
|
720
|
+
version: 3.0.1
|
721
|
+
- !ruby/object:Gem::Dependency
|
722
|
+
name: view_component
|
723
|
+
requirement: !ruby/object:Gem::Requirement
|
724
|
+
requirements:
|
725
|
+
- - "~>"
|
726
|
+
- !ruby/object:Gem::Version
|
727
|
+
version: 2.74.1
|
728
|
+
type: :runtime
|
729
|
+
prerelease: false
|
730
|
+
version_requirements: !ruby/object:Gem::Requirement
|
731
|
+
requirements:
|
732
|
+
- - "~>"
|
773
733
|
- !ruby/object:Gem::Version
|
774
|
-
version: 2.
|
734
|
+
version: 2.74.1
|
775
735
|
- !ruby/object:Gem::Dependency
|
776
736
|
name: sprockets
|
777
737
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1525,6 +1485,7 @@ files:
|
|
1525
1485
|
- ".koppie/config/initializers/content_security_policy.rb"
|
1526
1486
|
- ".koppie/config/initializers/cookies_serializer.rb"
|
1527
1487
|
- ".koppie/config/initializers/devise.rb"
|
1488
|
+
- ".koppie/config/initializers/file_services.rb"
|
1528
1489
|
- ".koppie/config/initializers/filter_parameter_logging.rb"
|
1529
1490
|
- ".koppie/config/initializers/hydra_config.rb"
|
1530
1491
|
- ".koppie/config/initializers/hyrax.rb"
|
@@ -1971,15 +1932,6 @@ files:
|
|
1971
1932
|
- app/controllers/hyrax/uploads_controller.rb
|
1972
1933
|
- app/controllers/hyrax/users_controller.rb
|
1973
1934
|
- app/controllers/hyrax/workflow_actions_controller.rb
|
1974
|
-
- app/conversions/power_converters.rb
|
1975
|
-
- app/conversions/power_converters/polymorphic_type.rb
|
1976
|
-
- app/conversions/power_converters/sipity_action.rb
|
1977
|
-
- app/conversions/power_converters/sipity_action_name.rb
|
1978
|
-
- app/conversions/power_converters/sipity_agent.rb
|
1979
|
-
- app/conversions/power_converters/sipity_entity.rb
|
1980
|
-
- app/conversions/power_converters/sipity_role.rb
|
1981
|
-
- app/conversions/power_converters/sipity_workflow_id.rb
|
1982
|
-
- app/conversions/power_converters/sipity_workflow_state.rb
|
1983
1935
|
- app/forms/hyrax/forms/admin/appearance.rb
|
1984
1936
|
- app/forms/hyrax/forms/admin/collection_type_form.rb
|
1985
1937
|
- app/forms/hyrax/forms/admin/collection_type_participant_form.rb
|
@@ -1996,6 +1948,7 @@ files:
|
|
1996
1948
|
- app/forms/hyrax/forms/file_set_form.rb
|
1997
1949
|
- app/forms/hyrax/forms/lease.rb
|
1998
1950
|
- app/forms/hyrax/forms/pcdm_collection_form.rb
|
1951
|
+
- app/forms/hyrax/forms/pcdm_object_form.rb
|
1999
1952
|
- app/forms/hyrax/forms/permission.rb
|
2000
1953
|
- app/forms/hyrax/forms/permission_template_form.rb
|
2001
1954
|
- app/forms/hyrax/forms/resource_form.rb
|
@@ -2961,6 +2914,7 @@ files:
|
|
2961
2914
|
- chart/hyrax/templates/deployment-worker.yaml
|
2962
2915
|
- chart/hyrax/templates/deployment.yaml
|
2963
2916
|
- chart/hyrax/templates/derivatives-pvc.yaml
|
2917
|
+
- chart/hyrax/templates/extra-list.yaml
|
2964
2918
|
- chart/hyrax/templates/hpa.yaml
|
2965
2919
|
- chart/hyrax/templates/ingress.yaml
|
2966
2920
|
- chart/hyrax/templates/secrets.yaml
|
@@ -2974,6 +2928,7 @@ files:
|
|
2974
2928
|
- config/i18n-tasks.yml
|
2975
2929
|
- config/initializers/1_healthz.rb
|
2976
2930
|
- config/initializers/indexing_adapter_initializer.rb
|
2931
|
+
- config/initializers/kaminari_engine_patch.rb
|
2977
2932
|
- config/initializers/listeners.rb
|
2978
2933
|
- config/initializers/reform_rails_6_1_monkey_patch.rb
|
2979
2934
|
- config/initializers/simple_form.rb
|
@@ -2995,11 +2950,13 @@ files:
|
|
2995
2950
|
- config/locales/simple_form.zh.yml
|
2996
2951
|
- config/metadata/basic_metadata.yaml
|
2997
2952
|
- config/metadata/core_metadata.yaml
|
2953
|
+
- config/metadata/file_set_metadata.yaml
|
2998
2954
|
- config/routes.rb
|
2999
2955
|
- config/schema_org.yml
|
3000
2956
|
- db/seeds.rb
|
3001
2957
|
- docker-compose-koppie.yml
|
3002
2958
|
- docker-compose.yml
|
2959
|
+
- documentation/MAINTENANCE.md
|
3003
2960
|
- documentation/developing-your-hyrax-based-app.md
|
3004
2961
|
- documentation/legacyREADME.md
|
3005
2962
|
- documentation/note-about-versions.md
|
@@ -3292,6 +3249,7 @@ files:
|
|
3292
3249
|
- lib/wings/valkyrie/storage.rb
|
3293
3250
|
- lib/wings/valkyrizable.rb
|
3294
3251
|
- package.json
|
3252
|
+
- samvera-fall-TM3.svg
|
3295
3253
|
- tasks/benchmark.rake
|
3296
3254
|
- tasks/hyrax_dev.rake
|
3297
3255
|
- template.rb
|
@@ -3338,7 +3296,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
3338
3296
|
- !ruby/object:Gem::Version
|
3339
3297
|
version: 1.3.1
|
3340
3298
|
requirements: []
|
3341
|
-
rubygems_version: 3.
|
3299
|
+
rubygems_version: 3.4.12
|
3342
3300
|
signing_key:
|
3343
3301
|
specification_version: 4
|
3344
3302
|
summary: Hyrax is a front-end based on the robust Samvera framework, providing a user
|
@@ -1,9 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
PowerConverter.define_conversion_for(:polymorphic_type) do |input|
|
3
|
-
Deprecation.warn('PowerConverter is deprecated. Use `.base_class` instead')
|
4
|
-
if input.respond_to?(:base_class)
|
5
|
-
input.base_class
|
6
|
-
elsif input.is_a?(ActiveRecord::Base)
|
7
|
-
input.class.base_class
|
8
|
-
end
|
9
|
-
end
|
@@ -1,11 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
PowerConverter.define_conversion_for(:sipity_action) do |input, scope|
|
3
|
-
Deprecation.warn('PowerConverter is deprecated. Use `Sipity::WorkflowAction(input, workflow)` instead')
|
4
|
-
workflow_id = PowerConverter.convert_to_sipity_workflow_id(scope)
|
5
|
-
case input
|
6
|
-
when Sipity::WorkflowAction
|
7
|
-
input if input.workflow_id == workflow_id
|
8
|
-
when String, Symbol
|
9
|
-
Sipity::WorkflowAction.find_by(workflow_id: workflow_id, name: input.to_s)
|
10
|
-
end
|
11
|
-
end
|
@@ -1,10 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
PowerConverter.define_conversion_for(:sipity_action_name) do |input|
|
3
|
-
Deprecation.warn('PowerConverter is deprecated. Use `Sipity::WorkflowAction.name_for(input)` instead')
|
4
|
-
case input
|
5
|
-
when String, Symbol
|
6
|
-
input.to_s.sub(/[\?\!]\Z/, '')
|
7
|
-
when Sipity::WorkflowAction
|
8
|
-
input.name
|
9
|
-
end
|
10
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
PowerConverter.define_conversion_for(:sipity_entity) do |input|
|
3
|
-
Deprecation.warn('PowerConverter is deprecated. Use `Sipity::Entity(input)` instead')
|
4
|
-
case input
|
5
|
-
when URI::GID
|
6
|
-
Sipity::Entity.find_by(proxy_for_global_id: input.to_s)
|
7
|
-
when SolrDocument
|
8
|
-
PowerConverter.convert_to_sipity_entity(input.to_model.to_global_id)
|
9
|
-
when Sipity::Entity
|
10
|
-
input
|
11
|
-
when Sipity::Comment
|
12
|
-
PowerConverter.convert_to_sipity_entity(input.entity)
|
13
|
-
end
|
14
|
-
end
|
@@ -1,10 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
PowerConverter.define_conversion_for(:sipity_role) do |input|
|
3
|
-
Deprecation.warn('PowerConverter is deprecated. Use `Sipity::WorkflowAction.name_for(input)` instead')
|
4
|
-
case input
|
5
|
-
when Sipity::Role
|
6
|
-
input
|
7
|
-
when String, Symbol
|
8
|
-
Sipity::Role.find_or_create_by(name: input)
|
9
|
-
end
|
10
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
PowerConverter.define_conversion_for(:sipity_workflow_id) do |input|
|
3
|
-
case input
|
4
|
-
when Sipity::Workflow
|
5
|
-
input.id
|
6
|
-
when Integer
|
7
|
-
input
|
8
|
-
when String
|
9
|
-
input.to_i
|
10
|
-
else
|
11
|
-
if input.respond_to?(:workflow_id)
|
12
|
-
input.workflow_id
|
13
|
-
else
|
14
|
-
PowerConverter.convert_to_sipity_workflow_id(PowerConverter.convert_to_sipity_entity(input))
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
require 'power_converter'
|
3
|
-
|
4
|
-
PowerConverter.define_conversion_for(:sipity_workflow_state) do |input, workflow|
|
5
|
-
Deprecation.warn('PowerConverter is deprecated. Use `Sipity::WorkflowState(input, workflow)` instead')
|
6
|
-
|
7
|
-
case input
|
8
|
-
when Sipity::WorkflowState
|
9
|
-
input
|
10
|
-
when Symbol, String
|
11
|
-
Sipity::WorkflowState.where(workflow_id: workflow.id, name: input).first
|
12
|
-
end
|
13
|
-
end
|