mods_display 0.10.0 → 0.10.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a054cc690de903702f63e057298f6c8af87c1bc7baf4d1a84626ccdf7dafd866
|
4
|
+
data.tar.gz: 5b817d141a6c40af29e0ebc04240e9b8b3d2230b601a09ff8328bfa061889010
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5d6c3dc3b45b6a0b1f683aa5f5a63553789b518effadc46e79b63f23d8d6aef8249a06a660311bd5a0d560e741abd8f61c745072b5ef7b1c889e1452b02b768
|
7
|
+
data.tar.gz: 8dbe33bda66156f40532863328af008f232c25e1ed56bafa0e98881b2da2b2f9056cdbeaa1cc228a9f15c0f719b34e295a48c0d931a355690a5d3bb889632984
|
@@ -2,7 +2,7 @@ module ModsDisplay
|
|
2
2
|
class ResourceType < Field
|
3
3
|
def fields
|
4
4
|
return_fields = @values.map do |value|
|
5
|
-
ModsDisplay::Values.new(label: displayLabel(value) || label, values: [value.text.strip
|
5
|
+
ModsDisplay::Values.new(label: displayLabel(value) || label, values: [value.text.strip])
|
6
6
|
end
|
7
7
|
collapse_fields(return_fields)
|
8
8
|
end
|
data/lib/mods_display/version.rb
CHANGED
@@ -26,9 +26,9 @@ describe ModsDisplay::ResourceType do
|
|
26
26
|
expect(fields.length).to eq(1)
|
27
27
|
expect(fields.first.label).to eq('Special label:')
|
28
28
|
end
|
29
|
-
it '
|
29
|
+
it 'passes the field value through' do
|
30
30
|
fields = mods_display_resource_type(@downcase).fields
|
31
31
|
expect(fields.length).to eq(1)
|
32
|
-
expect(fields.first.values).to eq(['
|
32
|
+
expect(fields.first.values).to eq(['resource type'])
|
33
33
|
end
|
34
34
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mods_display
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jessie Keck
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: stanford-mods
|