hydra-editor 5.0.4 → 5.0.5

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: 5c6af404429980f90c5fecedf2a3bb472c082c6af87434cd28dc37d6e4ce7770
4
- data.tar.gz: 13cccf003fc9a194d42dccc27a74cefca36cde19ec95bf00e8a424f4e7a4cc89
3
+ metadata.gz: 38ab055d213de3b1299c69bf11aa8265b72ba8f979857db58b9be7500c3f72b2
4
+ data.tar.gz: 3a2203ee73f2bf7362e155cb1f33d911d5a3a59cbc15e12ea26d8e5eac9a15d6
5
5
  SHA512:
6
- metadata.gz: 7708c2b37f92433894c4924d6fd262688f5af317c158b8d8371a5b6513c962d715cbefcb3ba9ea68cec94f05e1763aa97ccaaf7624dea86dc17cd087cd4d3219
7
- data.tar.gz: 3f76d2f92b57be1c20366d3c1849df2bdd33792406816813e2cb6a06f087810001141abc63409372f601d16fbe7eb32465f4d136ded5d28c0fc8c49eded83538
6
+ metadata.gz: 239f99bb9ab19061d074397e59b7e172f59cd14fac316ac3bc25d7a03c53370eaac8720baaa46d96aee409274ac5065b1acd0b7cebaebe5dcc27610be877a4de
7
+ data.tar.gz: 989a22a789fc9f71e59fbda9930d9b0259828a831bb696115307f5fbfc1268d738030a235d9c8434d69c0ae626487e5fb20953168a6a2dc4559bde8b9f5e641b
@@ -74,11 +74,8 @@ class MultiValueInput < SimpleForm::Inputs::CollectionInput
74
74
  end
75
75
 
76
76
  def collection
77
- @collection ||= begin
78
- val = object.send(attribute_name)
79
- col = val.respond_to?(:to_ary) ? val.to_ary : val
80
- col.reject { |value| value.to_s.strip.blank? } + ['']
81
- end
77
+ @collection ||=
78
+ Array(object.send(attribute_name)).reject { |v| v.to_s.strip.blank? } + ['']
82
79
  end
83
80
 
84
81
  def multiple?; true; end
@@ -1,3 +1,3 @@
1
1
  module HydraEditor
2
- VERSION = '5.0.4'.freeze
2
+ VERSION = '5.0.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra-editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.4
4
+ version: 5.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
8
8
  - David Chandek-Stark
9
9
  - Thomas Johnson
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-02-04 00:00:00.000000000 Z
13
+ date: 2021-08-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord
@@ -402,7 +402,7 @@ files:
402
402
  homepage: http://github.com/samvera/hydra-editor
403
403
  licenses: []
404
404
  metadata: {}
405
- post_install_message:
405
+ post_install_message:
406
406
  rdoc_options: []
407
407
  require_paths:
408
408
  - lib
@@ -417,8 +417,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
417
417
  - !ruby/object:Gem::Version
418
418
  version: '0'
419
419
  requirements: []
420
- rubygems_version: 3.1.2
421
- signing_key:
420
+ rubygems_version: 3.1.4
421
+ signing_key:
422
422
  specification_version: 4
423
423
  summary: A basic metadata editor for hydra-head
424
424
  test_files: []