hydra-editor 4.0.1 → 4.0.2

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: 29586ab094387a98528c46f14838b7eee43af9e4
4
- data.tar.gz: 420f5db0c3ab51aa9ad3929c3aa097da5fc2bbdc
3
+ metadata.gz: 4c32f6d539b3169127c2a122a996e659ec2a05a3
4
+ data.tar.gz: ed4e84d7d5dea7a704e38f13acd85a04f1e122b7
5
5
  SHA512:
6
- metadata.gz: 2308e0d0260e14de104d680011af09cf0bd0cdc0ba39e42098d30b4d20091d2dae2e725ef80464f9f07a6deb24348c05562d2ec977f6dc12732e16a8ae196473
7
- data.tar.gz: 5ae0ac966fdbf43318fe7625188bce2244a27feec248b77efd981af204bfaf2e98bb3dcf247ca652a8fa8e152d7f65075b91e50f29d8d408b75f32e615277e2b
6
+ metadata.gz: 91014f0bb2b749420b87cb90b18879722a67b48f09a4f8b76dd498fd3bd078f4a3a7e4f350f8b6bbf2b21a6d27015dfdc82c78b8b7c3f82ff3e0aed4b19f84ab
7
+ data.tar.gz: 31547da60fc5d6ee92dc40f011be28a107583279b9164a43abeada592d7b17dbf896e7e44dd439c4733e21395da0a7fb6156cc098435f472de1408a464cfb725
data/History.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # History of hydra-editor releases
2
2
 
3
+ ## 4.0.2
4
+ * 2018-05-10: MultiValue gets values from object methods and attributes [afred]
5
+
3
6
  ## 4.0.1
4
7
  * 2018-04-25: Updated the gemspec for authors, email, and homepage
5
8
 
@@ -75,7 +75,7 @@ class MultiValueInput < SimpleForm::Inputs::CollectionInput
75
75
 
76
76
  def collection
77
77
  @collection ||= begin
78
- val = object[attribute_name]
78
+ val = object.send(attribute_name)
79
79
  col = val.respond_to?(:to_ary) ? val.to_ary : val
80
80
  col.reject { |value| value.to_s.strip.blank? } + ['']
81
81
  end
@@ -1,3 +1,3 @@
1
1
  module HydraEditor
2
- VERSION = '4.0.1'.freeze
2
+ VERSION = '4.0.2'.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: 4.0.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-04-25 00:00:00.000000000 Z
13
+ date: 2018-05-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails