diff --git a/Gemfile.lock b/Gemfile.lock index 97b3437..b975a48 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -4,58 +4,59 @@ GEM addressable (2.8.7) public_suffix (>= 2.0.2, < 7.0) ast (2.4.3) - bigdecimal (3.2.2) + bigdecimal (3.3.1) canister (0.9.2) climate_control (1.2.0) coderay (1.1.3) - crack (1.0.0) + crack (1.0.1) bigdecimal rexml diff-lcs (1.6.2) docile (1.4.1) dotenv (3.1.8) - faraday (2.13.4) + faraday (2.14.0) faraday-net_http (>= 2.0, < 3.5) json logger faraday-net_http (3.4.1) net-http (>= 0.5.0) - hashdiff (1.2.0) - json (2.13.2) + hashdiff (1.2.1) + json (2.15.2) language_server-protocol (3.17.0.5) lint_roller (1.1.0) logger (1.7.0) method_source (1.1.0) - mysql2 (0.5.6) - net-http (0.6.0) + mysql2 (0.5.7) + bigdecimal + net-http (0.7.0) uri parallel (1.27.0) - parser (3.3.9.0) + parser (3.3.10.0) ast (~> 2.4.1) racc - prism (1.4.0) + prism (1.6.0) pry (0.15.2) coderay (~> 1.1) method_source (~> 1.0) public_suffix (6.0.2) racc (1.8.1) rainbow (3.1.1) - regexp_parser (2.10.0) - rexml (3.4.1) - rspec (3.13.1) + regexp_parser (2.11.3) + rexml (3.4.4) + rspec (3.13.2) rspec-core (~> 3.13.0) rspec-expectations (~> 3.13.0) rspec-mocks (~> 3.13.0) - rspec-core (3.13.5) + rspec-core (3.13.6) rspec-support (~> 3.13.0) rspec-expectations (3.13.5) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) - rspec-mocks (3.13.5) + rspec-mocks (3.13.7) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) - rspec-support (3.13.4) - rubocop (1.75.8) + rspec-support (3.13.6) + rubocop (1.80.2) json (~> 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) @@ -63,10 +64,10 @@ GEM parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 2.9.3, < 3.0) - rubocop-ast (>= 1.44.0, < 2.0) + rubocop-ast (>= 1.46.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 4.0) - rubocop-ast (1.46.0) + rubocop-ast (1.47.1) parser (>= 3.3.7.2) prism (~> 1.4) rubocop-performance (1.25.0) @@ -74,19 +75,19 @@ GEM rubocop (>= 1.75.0, < 2.0) rubocop-ast (>= 1.38.0, < 2.0) ruby-progressbar (1.13.0) - sequel (5.94.0) + sequel (5.98.0) bigdecimal simplecov (0.22.0) docile (~> 1.1) simplecov-html (~> 0.11) simplecov_json_formatter (~> 0.1) simplecov-html (0.13.2) - simplecov-lcov (0.8.0) + simplecov-lcov (0.9.0) simplecov_json_formatter (0.1.4) - standard (1.50.0) + standard (1.51.1) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.0) - rubocop (~> 1.75.5) + rubocop (~> 1.80.2) standard-custom (~> 1.0.0) standard-performance (~> 1.8) standard-custom (1.0.2) @@ -97,11 +98,11 @@ GEM rubocop-performance (~> 1.25.0) standardrb (1.0.1) standard - unicode-display_width (3.1.4) - unicode-emoji (~> 4.0, >= 4.0.4) - unicode-emoji (4.0.4) - uri (1.0.3) - webmock (3.25.1) + unicode-display_width (3.2.0) + unicode-emoji (~> 4.1) + unicode-emoji (4.1.0) + uri (1.1.0) + webmock (3.26.1) addressable (>= 2.8.0) crack (>= 0.3.2) hashdiff (>= 0.4.0, < 2.0.0) @@ -125,4 +126,4 @@ DEPENDENCIES webmock BUNDLED WITH - 2.6.9 + 2.7.2 diff --git a/LICENSE b/LICENSE index 9e184e6..309f00d 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2008-2022, Regents of the University of Michigan. All rights +Copyright (c) 2008-2025, Regents of the University of Michigan. All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/lib/verifier/hathifiles_contents.rb b/lib/verifier/hathifiles_contents.rb index da0f58b..4e2c9d1 100644 --- a/lib/verifier/hathifiles_contents.rb +++ b/lib/verifier/hathifiles_contents.rb @@ -59,9 +59,9 @@ class Verifier::HathifileContents < Verifier # content provider - required, lowercase characters + dash {name: "content_provider_code", regex: /^[a-z\-_]+$/}, # responsible entity code - required, lowercase characters + dash - {name: "responsible_entity_code", regex: /^[a-z\-]+$/}, + {name: "responsible_entity_code", regex: /^[a-z-]+$/}, # digitization agent code - required, lowercase characters + dash and optional trailing digit (yale2) - {name: "digitization_agent_code", regex: /^[a-z\-]+\d?$/}, + {name: "digitization_agent_code", regex: /^[a-z-]+\d?$/}, # access profile code - required, lowercase characters + plus {name: "access_profile_code", regex: /^[a-z+]+$/}, # author - optional, anything goes