valkyrie 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/CHANGELOG.md +6 -0
- data/lib/valkyrie/persistence/fedora/persister/model_converter.rb +19 -0
- data/lib/valkyrie/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83a69bbf45fde201ec7d4a43af2bc006d193c9859862a9b426d2147907dd6948
|
4
|
+
data.tar.gz: 0ace9cb9df7ce51020f7a1d3444fac440b4171a5dc3a0be9d2d6673ce3434750
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3835bdfa2ba8f1e0dd1339a128a4aed0c7a467dfd60b3b86123af5047a5c432c3a40fc8d260f3dd199d392a6d274828d3f11f914b0689bdd6462c2ff912b864
|
7
|
+
data.tar.gz: d32137d0a877aa97790316c2d8277b572b92b339fa8d7dc40f7e7b629e4031aaf373275c57e535305e3d210b133f0cce25cff28fae1c57cef804cdfc7b2e21f0
|
data/CHANGELOG.md
CHANGED
@@ -538,6 +538,25 @@ module Valkyrie::Persistence::Fedora
|
|
538
538
|
CompositeProperty.new(new_values)
|
539
539
|
end
|
540
540
|
end
|
541
|
+
|
542
|
+
# Class for mapping Property objects for Symbol values
|
543
|
+
class SymbolValue < MappedFedoraValue
|
544
|
+
FedoraValue.register(self)
|
545
|
+
|
546
|
+
# Determines whether or not the value is a Property for Symbol values
|
547
|
+
# @param [Object] value
|
548
|
+
# @return [Boolean]
|
549
|
+
def self.handles?(value)
|
550
|
+
value.is_a?(Property) && value.value.is_a?(Symbol)
|
551
|
+
end
|
552
|
+
|
553
|
+
# Generates the Property for the Symbol value
|
554
|
+
# The Symbol value is converted into a String
|
555
|
+
# @return [Valkyrie::Persistence::Fedora::Persister::ModelConverter::Property]
|
556
|
+
def result
|
557
|
+
map_value(converted_value: value.value.to_s)
|
558
|
+
end
|
559
|
+
end
|
541
560
|
end
|
542
561
|
end
|
543
562
|
end
|
data/lib/valkyrie/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: valkyrie
|
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
|
- Trey Pendragon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-struct
|