cul_hydra 1.4.3 → 1.4.4

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: b765af14fc80de0413ccc45b11adfd2daf8da348
4
- data.tar.gz: 85737f1a45d1f97b9cef56df77d970ea6df36343
3
+ metadata.gz: ec361540642c4b017b3de3a596e5b535da517e37
4
+ data.tar.gz: b90682e644091e10d12c9fbe56f3643a22033d5a
5
5
  SHA512:
6
- metadata.gz: 610f16ebc0824af59c6e61218befdc0a342cb0a69b83c16e7a5cf11992cb12bbd70696cbf43bc733316bb38567d8fb9c7a23d63c5437deac1f30c495f650a125
7
- data.tar.gz: 075e59c183469c3abc955c04ccc301613516d568dff1b724f4ed174a735e124cdbf927d23fe3f5c4c03e20cce745b0aae3cb7cfb77ecf47676b1330cbd651348
6
+ metadata.gz: 0d90087ef8440fb86acf4f1abf737722b8073171b5ef61b8f5ee4e428bb19080411a8a47b478d313307d6038cd44276175a466894bd599253f4d43b8b9a4712a
7
+ data.tar.gz: 8b701785ed90406501d6208cdefb7189a04bce0ed8646b2f5dfe00e5182f3bad1245bdd871abcc91a08c077283e49b4d4e3e5db39f16abb5b152707abedb432c
@@ -49,8 +49,7 @@ class Concept < GenericAggregator
49
49
  end
50
50
 
51
51
  def description=(value)
52
- return unless value
53
- blob = (value.is_a? String) ? StringIO.new(value) : value
52
+ value = '' if value.nil?
54
53
  ds = description_ds
55
54
  if ds
56
55
  ds.content = value
@@ -70,10 +69,6 @@ class Concept < GenericAggregator
70
69
  set_singular_rel(:restriction, val, true)
71
70
  end
72
71
 
73
- def remove_restriction
74
- clear_relationship(:restriction)
75
- end
76
-
77
72
  # a representative image URI for this concept
78
73
  # https://schema.org/image
79
74
  def representative_image
@@ -123,7 +118,7 @@ class Concept < GenericAggregator
123
118
  def set_singular_rel(predicate, value, literal=false)
124
119
  raise "#{predicate} is a singular property" if value.respond_to? :each
125
120
  clear_relationship(predicate)
126
- add_relationship(predicate, value, literal)
121
+ add_relationship(predicate, value, literal) unless value.nil? || value.empty?
127
122
  end
128
123
 
129
124
  def to_solr(solr_doc = Hash.new, opts={})
@@ -1,6 +1,6 @@
1
1
  module Cul
2
2
  module Hydra
3
- VERSION = '1.4.3'
3
+ VERSION = '1.4.4'
4
4
  def self.version
5
5
  VERSION
6
6
  end
@@ -1,6 +1,6 @@
1
1
  module Cul
2
2
  module Hydra
3
- VERSION = '1.4.2'
3
+ VERSION = '1.4.3'
4
4
  def self.version
5
5
  VERSION
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cul_hydra
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Armintor
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-12-05 00:00:00.000000000 Z
12
+ date: 2016-12-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: blacklight