mods 3.0.0.alpha1 → 3.0.0.alpha2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mods/nom_terminology.rb +1 -1
- data/lib/mods/version.rb +1 -1
- data/spec/lib/name_spec.rb +8 -6
- 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: 6490e1cc58f876632e1d50065bab857eb104c4e0af18e8d1c3c18624fcdcf228
|
4
|
+
data.tar.gz: 4c16e2ca22fa7803d20f521b21514317f31c13f689eca1d5d7eaee3e5d2ecd80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a40bedc72f0282d80f771d6808a924ece95447092a4bb9f48108977387e73b80cdc5ebd5f6c3af1aef938a2b952fde5a1ee8d320635e808b8f06a47f90cba41d
|
7
|
+
data.tar.gz: a689cc2b3415bb73af3940809fca8795b0de6cbb9f9768a62a347ea7016d7e18c005b5a33a0233ee61dad9f37dc324a20fb0a8f88068ca196fe291bc02d704a9
|
data/lib/mods/nom_terminology.rb
CHANGED
@@ -148,7 +148,7 @@ module Mods
|
|
148
148
|
r.roleTerm :path => 'm:roleTerm' do |rt|
|
149
149
|
with_attributes(rt, Mods::AUTHORITY_ATTRIBS | %w[type])
|
150
150
|
|
151
|
-
rt.value path: '.', accessor: (lambda do |roleTerm|
|
151
|
+
rt.value path: '.', single: true, accessor: (lambda do |roleTerm|
|
152
152
|
text = roleTerm.text.strip
|
153
153
|
|
154
154
|
if roleTerm.type_at == 'code' && roleTerm.authority == 'marcrelator'
|
data/lib/mods/version.rb
CHANGED
data/spec/lib/name_spec.rb
CHANGED
@@ -80,12 +80,14 @@ RSpec.describe "Mods <name> Element" do
|
|
80
80
|
have_attributes(text: 'Huston', type_at: 'family'),
|
81
81
|
]),
|
82
82
|
role: have_attributes(
|
83
|
-
roleTerm:
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
83
|
+
roleTerm: match_array([
|
84
|
+
have_attributes(
|
85
|
+
text: 'drt',
|
86
|
+
type_at: 'code',
|
87
|
+
authority: 'marcrelator',
|
88
|
+
value: 'Director'
|
89
|
+
)
|
90
|
+
]),
|
89
91
|
authority: ['marcrelator'],
|
90
92
|
code: ['drt'],
|
91
93
|
value: ['Director']
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mods
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0.
|
4
|
+
version: 3.0.0.alpha2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naomi Dushay
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-01-
|
12
|
+
date: 2022-01-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|