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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 280be81a452da45c1c8b5541c300e6829cfa08bc
4
- data.tar.gz: bc3d51f8d798b21cbd036a365f78f916c8036ac5
3
+ metadata.gz: 559d288907d4240127a8f04a291543b2c3066865
4
+ data.tar.gz: 19e19be48f8f63e150dbafeefee1d57610ff4818
5
5
  SHA512:
6
- metadata.gz: c4b7f90100e7c517fd1315efcc020ad0536f7b0f50fed36b7b3f3bdcbac555dbf5a2966105beccbb7821dba0b54a557d44929d9c13ce8b7331d83c8ffdee22d3
7
- data.tar.gz: b863194d5aa5ac90d3544dfaf08514c3693ffa9d2f80bb5562097736376c4e8f30da6374d9586a33cb03e2b441bf88c1e0ce2c0f65abb0b98b724cd4e5421d76
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 ||= Array.wrap(object[attribute_name]).reject { |value| value.to_s.strip.blank? } + ['']
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
@@ -1,3 +1,3 @@
1
1
  module HydraEditor
2
- VERSION = '3.1.0'.freeze
2
+ VERSION = '3.1.1'.freeze
3
3
  end
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.0
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-08-09 00:00:00.000000000 Z
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.10'
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.10'
201
+ version: '1.0'
202
202
  - !ruby/object:Gem::Dependency
203
203
  name: solr_wrapper
204
204
  requirement: !ruby/object:Gem::Requirement