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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 58a2e2e97e06da6d141ec207b55af9a95a651590b6c5b5e1d6e79d29e717c902
4
- data.tar.gz: 608a6c50337ce64b7c0472f2a0f852a8d25adba44429a5d3be47d58eed58cfa5
3
+ metadata.gz: 6490e1cc58f876632e1d50065bab857eb104c4e0af18e8d1c3c18624fcdcf228
4
+ data.tar.gz: 4c16e2ca22fa7803d20f521b21514317f31c13f689eca1d5d7eaee3e5d2ecd80
5
5
  SHA512:
6
- metadata.gz: 1fb07b17da4a3e0b7aaf9a5bda6ba9e719cb370298eabe1da75bcfc9ea57c0f76889ffaf16d81d2946b38885d34b1338b23e6448dfccd6dd4d2d677c21ac6aba
7
- data.tar.gz: c125714df2b9764306b540fe762fa4c72e3e0cc1089beefa44add644117681e0b2a182f70bcebc25b60c0f69917305857bde6476ff8f893f016aeb83dc303de8
6
+ metadata.gz: a40bedc72f0282d80f771d6808a924ece95447092a4bb9f48108977387e73b80cdc5ebd5f6c3af1aef938a2b952fde5a1ee8d320635e808b8f06a47f90cba41d
7
+ data.tar.gz: a689cc2b3415bb73af3940809fca8795b0de6cbb9f9768a62a347ea7016d7e18c005b5a33a0233ee61dad9f37dc324a20fb0a8f88068ca196fe291bc02d704a9
@@ -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
@@ -1,4 +1,4 @@
1
1
  module Mods
2
2
  # this is the Ruby Gem version
3
- VERSION = '3.0.0.alpha1'.freeze
3
+ VERSION = '3.0.0.alpha2'.freeze
4
4
  end
@@ -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: have_attributes(
84
- text: 'drt',
85
- type_at: ['code'],
86
- authority: ['marcrelator'],
87
- value: ['Director']
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.alpha1
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-26 00:00:00.000000000 Z
12
+ date: 2022-01-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri