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: 586a8299be19e795bc90b434d9902084ca8fa10bb8cbe9690fc108471e1f5495
4
- data.tar.gz: 00574a48dc3c3ba050529bf2d3fcd5e38df5de4c0e5ed4023ad07904dea29c99
3
+ metadata.gz: a054cc690de903702f63e057298f6c8af87c1bc7baf4d1a84626ccdf7dafd866
4
+ data.tar.gz: 5b817d141a6c40af29e0ebc04240e9b8b3d2230b601a09ff8328bfa061889010
5
5
  SHA512:
6
- metadata.gz: 9430fa89a1efb94a17ec8c83f5fc96e55f96221f962480ff6a71a9283548d385e1afabe1c8653215155a8d7804648075aae93d217ff2d25ec29357c5b2e64544
7
- data.tar.gz: 0d7b2e673cae7f336e65824c528b78abd59e8b730430570faa98910cf715e875a707dde7787a48cbf158f15bc596b057181c443d253387136604b307036812ea
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.capitalize].flatten)
5
+ ModsDisplay::Values.new(label: displayLabel(value) || label, values: [value.text.strip])
6
6
  end
7
7
  collapse_fields(return_fields)
8
8
  end
@@ -1,3 +1,3 @@
1
1
  module ModsDisplay
2
- VERSION = '0.10.0'
2
+ VERSION = '0.10.1'
3
3
  end
@@ -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 'should capitalize the first letter of the values' do
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(['Resource type'])
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.0
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-05-25 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: stanford-mods