active-fedora 11.0.0 → 11.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_fedora/attributes.rb +1 -1
- data/lib/active_fedora/fedora.rb +1 -1
- data/lib/active_fedora/loadable_from_json.rb +1 -1
- data/lib/active_fedora/rdf.rb +1 -0
- data/lib/active_fedora/rdf/field_map_entry.rb +6 -0
- data/lib/active_fedora/rdf/value_caster.rb +15 -0
- data/lib/active_fedora/version.rb +1 -1
- data/spec/unit/rdf/indexing_service_spec.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16ead45129d9f2be4aa17bde6a13d62a1079cf31
|
4
|
+
data.tar.gz: ae8fb524751ba62d38fe12f0f4b3953efaf2a4e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f043c0eabd5bc35f273e2d479d01edf61afc4d5987ac3c48eef8fd58eae863f5901d87192fea088c2e4d0c6d0abe6bf93931c8fab2fb80b5d443f870575bc625
|
7
|
+
data.tar.gz: f2eff2fb6b5d014e6c6ec7a1f97cb4dd152ee92218526040bc78a6fbe53463018b15009d620677fefe29e6aef9183d882f6f4a818a89e725578523a0e38760ac
|
@@ -138,7 +138,7 @@ module ActiveFedora
|
|
138
138
|
def warn_duplicate_predicates(new_name, new_properties)
|
139
139
|
new_predicate = new_properties[:predicate]
|
140
140
|
properties.select { |_k, existing| existing.predicate == new_predicate }.each do |key, _value|
|
141
|
-
ActiveFedora::Base.logger.warn "Same predicate (#{new_predicate}) used for properties #{key} and #{new_name}"
|
141
|
+
ActiveFedora::Base.logger.warn "Same predicate (#{new_predicate}) used for properties #{key} and #{new_name}" if ActiveFedora::Base.logger
|
142
142
|
end
|
143
143
|
end
|
144
144
|
|
data/lib/active_fedora/fedora.rb
CHANGED
@@ -86,7 +86,7 @@ module ActiveFedora
|
|
86
86
|
|
87
87
|
def validate_options
|
88
88
|
unless host.downcase.end_with?("/rest")
|
89
|
-
ActiveFedora::Base.logger.warn "Fedora URL (#{host}) does not end with /rest. This could be a problem. Check your fedora.yml config"
|
89
|
+
ActiveFedora::Base.logger.warn "Fedora URL (#{host}) does not end with /rest. This could be a problem. Check your fedora.yml config" if ActiveFedora::Base.logger
|
90
90
|
end
|
91
91
|
end
|
92
92
|
end
|
@@ -176,7 +176,7 @@ module ActiveFedora
|
|
176
176
|
def property_reflection(attribute_name)
|
177
177
|
self.class.reflect_on_property(attribute_name)
|
178
178
|
rescue ActiveTriples::UndefinedPropertyError
|
179
|
-
ActiveFedora::Base.logger.info "Undefined property #{attribute_name} reflected."
|
179
|
+
ActiveFedora::Base.logger.info "Undefined property #{attribute_name} reflected." if ActiveFedora::Base.logger
|
180
180
|
nil
|
181
181
|
end
|
182
182
|
|
data/lib/active_fedora/rdf.rb
CHANGED
@@ -20,7 +20,7 @@ describe ActiveFedora::RDF::IndexingService do
|
|
20
20
|
MyObj.new.tap do |obj|
|
21
21
|
obj.created = [Date.parse("2012-03-04")]
|
22
22
|
obj.title = ["Of Mice and Men, The Sequel"]
|
23
|
-
obj.publisher = ["Bob's Blogtastic Publishing"]
|
23
|
+
obj.publisher = [RDF::Literal.new("Bob's Blogtastic Publishing", language: :fr)]
|
24
24
|
obj.based_near = ["Tacoma, WA", "Renton, WA"]
|
25
25
|
obj.related_url = ["http://example.org/blogtastic/"]
|
26
26
|
obj.rights = ["Totally open, y'all"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active-fedora
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 11.0.
|
4
|
+
version: 11.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Zumwalt
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-09-
|
13
|
+
date: 2016-09-22 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rsolr
|
@@ -456,6 +456,7 @@ files:
|
|
456
456
|
- lib/active_fedora/rdf/indexing_service.rb
|
457
457
|
- lib/active_fedora/rdf/persistence.rb
|
458
458
|
- lib/active_fedora/rdf/project_hydra.rb
|
459
|
+
- lib/active_fedora/rdf/value_caster.rb
|
459
460
|
- lib/active_fedora/reflection.rb
|
460
461
|
- lib/active_fedora/relation.rb
|
461
462
|
- lib/active_fedora/relation/calculations.rb
|