valkyrie 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/valkyrie/persistence/postgres/orm_converter.rb +17 -15
- data/lib/valkyrie/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b7dcc5a9a264acb744d602fd069a7c2ff5a1c11
|
4
|
+
data.tar.gz: 82fdcd0161085c15492f9fb5fdd8515ffde5d7e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef3b35b27a29849cb2bd00e136d20018067c6852f1f3ead55f92fd202d1030b6ecc073fed84f43b724b9ba52aba193bd28d9b5eece9144ecac1b6edbabdc200c
|
7
|
+
data.tar.gz: '0824a51c53a59ec27205872aa5e29b22ad8bd711ac035bd307d17db1b5b17e1178d159d30229467f87d33b755ee4d6b979719333f287fd6ce74d979d382ed58b'
|
data/CHANGELOG.md
CHANGED
@@ -43,7 +43,9 @@ module Valkyrie::Persistence::Postgres
|
|
43
43
|
class RDFMetadata
|
44
44
|
attr_reader :metadata
|
45
45
|
def initialize(metadata)
|
46
|
-
|
46
|
+
# nil hash values are handled by the default state in dry-types
|
47
|
+
# anyways, so don't bother processing them here.
|
48
|
+
@metadata = metadata.compact
|
47
49
|
end
|
48
50
|
|
49
51
|
def result
|
@@ -107,6 +109,20 @@ module Valkyrie::Persistence::Postgres
|
|
107
109
|
end
|
108
110
|
end
|
109
111
|
|
112
|
+
# Handles iterating over arrays of values and converting each value.
|
113
|
+
class EnumeratorValue < ::Valkyrie::ValueMapper
|
114
|
+
PostgresValue.register(self)
|
115
|
+
def self.handles?(value)
|
116
|
+
value.respond_to?(:each)
|
117
|
+
end
|
118
|
+
|
119
|
+
def result
|
120
|
+
value.map do |value|
|
121
|
+
calling_mapper.for(value).result
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
110
126
|
# Converts Date strings to `DateTime`
|
111
127
|
class DateValue < ::Valkyrie::ValueMapper
|
112
128
|
PostgresValue.register(self)
|
@@ -124,20 +140,6 @@ module Valkyrie::Persistence::Postgres
|
|
124
140
|
DateTime.iso8601(value).utc
|
125
141
|
end
|
126
142
|
end
|
127
|
-
|
128
|
-
# Handles iterating over arrays of values and converting each value.
|
129
|
-
class EnumeratorValue < ::Valkyrie::ValueMapper
|
130
|
-
PostgresValue.register(self)
|
131
|
-
def self.handles?(value)
|
132
|
-
value.respond_to?(:each)
|
133
|
-
end
|
134
|
-
|
135
|
-
def result
|
136
|
-
value.map do |value|
|
137
|
-
calling_mapper.for(value).result
|
138
|
-
end
|
139
|
-
end
|
140
|
-
end
|
141
143
|
end
|
142
144
|
end
|
143
145
|
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: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Trey Pendragon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-struct
|