hydra-editor 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/inputs/multi_value_input.rb +5 -1
- data/lib/hydra_editor/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 559d288907d4240127a8f04a291543b2c3066865
|
4
|
+
data.tar.gz: 19e19be48f8f63e150dbafeefee1d57610ff4818
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: baae3f090c771580a55ee7ae6cb5f389712b178995b86020e068d5eba8a2142f6ab1fb4f815efd0584eeb2ed13065b7ba609e387cb061de387fbdced6e5f42fa
|
7
|
+
data.tar.gz: f3d44ec6fb4912ffbc6b32d6e1c905ef366ea5c21ec7fccdcb72fc02b5be4d0bac91bdbd312e4c56ab9c4d64b989aa16e8c3ce0ec6879d7253bbb6cab0026650
|
@@ -74,7 +74,11 @@ class MultiValueInput < SimpleForm::Inputs::CollectionInput
|
|
74
74
|
end
|
75
75
|
|
76
76
|
def collection
|
77
|
-
@collection ||=
|
77
|
+
@collection ||= begin
|
78
|
+
val = object[attribute_name]
|
79
|
+
col = val.respond_to?(:to_ary) ? val.to_ary : val
|
80
|
+
col.reject { |value| value.to_s.strip.blank? } + ['']
|
81
|
+
end
|
78
82
|
end
|
79
83
|
|
80
84
|
def multiple?; true; end
|
data/lib/hydra_editor/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hydra-editor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-09-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -191,14 +191,14 @@ dependencies:
|
|
191
191
|
requirements:
|
192
192
|
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version: '0
|
194
|
+
version: '1.0'
|
195
195
|
type: :development
|
196
196
|
prerelease: false
|
197
197
|
version_requirements: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
199
|
- - "~>"
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version: '0
|
201
|
+
version: '1.0'
|
202
202
|
- !ruby/object:Gem::Dependency
|
203
203
|
name: solr_wrapper
|
204
204
|
requirement: !ruby/object:Gem::Requirement
|