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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e6705b30a79e047e4892d78b3f60a2fb71a9acc4b4687272a7e169e216177a81
4
- data.tar.gz: c4cbe96c86968b611d1932f505cb020c1071e6fa0938f11b25f4e78c3c7b840b
3
+ metadata.gz: 83a69bbf45fde201ec7d4a43af2bc006d193c9859862a9b426d2147907dd6948
4
+ data.tar.gz: 0ace9cb9df7ce51020f7a1d3444fac440b4171a5dc3a0be9d2d6673ce3434750
5
5
  SHA512:
6
- metadata.gz: 80cc406ed49c5256d4744c83eaf0e849722d28b151a6f47b5dfdb9c69871a82253f9b3c2b8331f92b6a253792b1c982f5bfcd9c198cd631f84613e50c57c4d5f
7
- data.tar.gz: b7b397512adac100586c392be50ecc9690562d7282078b2e627dc558aa37f096472543130c11eedf60dd4a4a5c091e6496d86064009583c85d110cb2aed2e151
6
+ metadata.gz: c3835bdfa2ba8f1e0dd1339a128a4aed0c7a467dfd60b3b86123af5047a5c432c3a40fc8d260f3dd199d392a6d274828d3f11f914b0689bdd6462c2ff912b864
7
+ data.tar.gz: d32137d0a877aa97790316c2d8277b572b92b339fa8d7dc40f7e7b629e4031aaf373275c57e535305e3d210b133f0cce25cff28fae1c57cef804cdfc7b2e21f0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # v3.1.1 2023-10-05
2
+
3
+ ## Changes since last release
4
+
5
+ * Add support for coercible symbols in the Fedora persister. ([abelemlih](https://github.com/abelemlih))
6
+
1
7
  # v3.1.0 2023-09-15
2
8
 
3
9
  ## Changes since last release
@@ -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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Valkyrie
3
- VERSION = "3.1.0"
3
+ VERSION = "3.1.1"
4
4
  end
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.0
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-09-15 00:00:00.000000000 Z
11
+ date: 2023-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-struct