cocina-models 0.61.0 → 0.61.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 83f1515b4aa8389d471458c9c58f499fddbfe0f2cbf01b4be56c70f50ec77cd3
4
- data.tar.gz: 0a6de21eadb30b5efb2512cb2786ec290815314181c054d9012a29518d2f4021
3
+ metadata.gz: 04d6817bcbdb69d319cc3506afef0f7d8374bb8668e6fbdf05a47b6eab40cb3a
4
+ data.tar.gz: d36dc1283dc12c3f9bdd881f3c9268e2b6088f0c11d35dcbc9d5adf2bf749513
5
5
  SHA512:
6
- metadata.gz: ab9f26de5fb14d9e036034acec1c056cf5a067d426d0547e93cd05d5573b53617c97afa77c00417adbd270278edcf1edbcc40bb3db56512cf702a568fca6a808
7
- data.tar.gz: 8c368c49dd7581348a98898229c7bae57eab65fc31f0bdcced427d31e65294594b57ce76b36a2489cc263720d992bee4c1b0201e503e0ba8680e9848de4d9dcc
6
+ metadata.gz: e75b2cd3134d4b75a30f3511cc5f861001e70f274b53c92988575640460b9869993e18378bf05484d21ab18a7f0ce0a56db714b46718aab288b26202db1ed384
7
+ data.tar.gz: 152173ef29e9b971ee2c58ddbd77f6b284576c6be8cbe02fdd043535615d773a50f1df890b9bd7b2c8e10c8a36b3e4b9cb851390132103121cf52534453dce07
data/README.md CHANGED
@@ -72,7 +72,7 @@ Once the above listed steps have been completed, all the following applications
72
72
  * [sul-dlss/google-books](https://github.com/sul-dlss/google-books/)
73
73
  * [sul-dlss/argo](https://github.com/sul-dlss/argo/)
74
74
  * [sul-dlss/pre-assembly](https://github.com/sul-dlss/pre-assembly/)
75
- * [sul-dlss/hydrus](https://github.com/sul-dlss/hydra_etd/)
75
+ * [sul-dlss/hydra_etd](https://github.com/sul-dlss/hydra_etd/)
76
76
  * [sul-dlss/hydrus](https://github.com/sul-dlss/hydrus/)
77
77
  * [sul-dlss/happy-heron](https://github.com/sul-dlss/happy-heron/)
78
78
  * [sul-dlss/infrastructure-integration-test](https://github.com/sul-dlss/infrastructure-integration-test/)
data/lib/cocina/models.rb CHANGED
@@ -14,27 +14,19 @@ require 'thor'
14
14
 
15
15
  # Help Zeitwerk find some of our classes
16
16
  class CocinaModelsInflector < Zeitwerk::Inflector
17
- # rubocop:disable Metrics/MethodLength
17
+ INFLECTIONS = {
18
+ 'doi' => 'DOI',
19
+ 'dro' => 'DRO',
20
+ 'request_dro' => 'RequestDRO',
21
+ 'dro_access' => 'DROAccess',
22
+ 'dro_structural' => 'DROStructural',
23
+ 'request_dro_structural' => 'RequestDROStructural',
24
+ 'version' => 'VERSION'
25
+ }.freeze
26
+
18
27
  def camelize(basename, _abspath)
19
- case basename
20
- when 'dro'
21
- 'DRO'
22
- when 'request_dro'
23
- 'RequestDRO'
24
- when 'dro_access'
25
- 'DROAccess'
26
- when 'dro_structural'
27
- 'DROStructural'
28
- when 'request_dro_structural'
29
- 'RequestDROStructural'
30
- when 'version'
31
- 'VERSION'
32
- else
33
- super
34
- end
28
+ INFLECTIONS.fetch(basename) { super }
35
29
  end
36
-
37
- # rubocop:enable Metrics/MethodLength
38
30
  end
39
31
 
40
32
  loader = Zeitwerk::Loader.new
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cocina
4
4
  module Models
5
- VERSION = '0.61.0'
5
+ VERSION = '0.61.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocina-models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.61.0
4
+ version: 0.61.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-07-06 00:00:00.000000000 Z
11
+ date: 2021-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport