emp_json 1.4.0.pre.g2c7b34d0b → 1.4.0.pre.g35ef705a8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99b87822b8f4ecbb01871b596ed62b7c08c2707fd11dbda022c4b66b3cd9d6d2
|
4
|
+
data.tar.gz: 7ca81d54dde5deb8b16debe2017cb482a8e31010c21d7ae5b2011b57175b59ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc4107f3917a984bf3c871bfb9dae697b31ce2ccc85c90d59214c5e620337cd7f779f8ada9834b27a3616851615e5e6a18d3b02c2cd2a12f5a396578c804fb63
|
7
|
+
data.tar.gz: f8633a601f79fe62a2ecdf2b920943b5de16021fed8bc2d3de94f44a803793aef8f9e5a707968f3707f30f92e4f79f89c70ad2fc75d0a7460ef4871a87aea976
|
data/Gemfile.lock
CHANGED
@@ -29,8 +29,9 @@ module Empathy
|
|
29
29
|
RDF_XSD_DATETIME = "#{RDF_XSD}dateTime"
|
30
30
|
RDF_XSD_BOOLEAN = "#{RDF_XSD}boolean"
|
31
31
|
RDF_XSD_INTEGER = "#{RDF_XSD}integer"
|
32
|
-
|
32
|
+
RDF_XSD_FLOAT = "#{RDF_XSD}float"
|
33
33
|
RDF_XSD_DOUBLE = "#{RDF_XSD}double"
|
34
|
+
RDF_XSD_DECIMAL = "#{RDF_XSD}decimal"
|
34
35
|
|
35
36
|
def object_to_value(value)
|
36
37
|
return primitive_to_value(value.iri) if value.respond_to?(:iri)
|
@@ -102,7 +103,7 @@ module Empathy
|
|
102
103
|
shorthand(EMP_TYPE_BOOL, value.value)
|
103
104
|
when RDF_XSD_DOUBLE
|
104
105
|
shorthand(EMP_TYPE_DOUBLE, value.value)
|
105
|
-
when RDF_XSD_DECIMAL
|
106
|
+
when RDF_XSD_DECIMAL, RDF_XSD_FLOAT
|
106
107
|
primitive(value.datatype.to_s, value.value)
|
107
108
|
when RDF_XSD_INTEGER
|
108
109
|
integer_to_value(value.to_i)
|
@@ -44,10 +44,12 @@ module Empathy
|
|
44
44
|
|
45
45
|
RDF_XSD_INTEGER: "http://www.w3.org/2001/XMLSchema#integer"
|
46
46
|
|
47
|
-
|
47
|
+
RDF_XSD_FLOAT: "http://www.w3.org/2001/XMLSchema#float"
|
48
48
|
|
49
49
|
RDF_XSD_DOUBLE: "http://www.w3.org/2001/XMLSchema#double"
|
50
50
|
|
51
|
+
RDF_XSD_DECIMAL: "http://www.w3.org/2001/XMLSchema#decimal"
|
52
|
+
|
51
53
|
type shorthand = { type: string, v: string }
|
52
54
|
type primitive = { type: string, dt: string, v: string }
|
53
55
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emp_json
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.0.pre.
|
4
|
+
version: 1.4.0.pre.g35ef705a8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thom van Kalkeren
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Serializer for the EmpJson specification.
|
14
14
|
email:
|