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 +4 -4
- data/README.md +1 -1
- data/lib/cocina/models.rb +11 -19
- data/lib/cocina/models/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 04d6817bcbdb69d319cc3506afef0f7d8374bb8668e6fbdf05a47b6eab40cb3a
|
|
4
|
+
data.tar.gz: d36dc1283dc12c3f9bdd881f3c9268e2b6088f0c11d35dcbc9d5adf2bf749513
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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/
|
|
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
|
-
|
|
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
|
-
|
|
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
|
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.
|
|
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-
|
|
11
|
+
date: 2021-07-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|