emp_json 1.4.0.pre.g35ef705a8 → 1.4.0.pre.g41bf02753
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: a5f8e3136621bfd8b2017c23529c955ff84635a5cd42e2da36628adb039b67e6
|
4
|
+
data.tar.gz: d780b6c30a993811b1c3b9547d63bdf2583480379a4c4fa77d000208d7e6fd7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 788b38c53b9917a2f5f82d3302190d5ddeebace976b4ebd5d1b348855f538314e30d3abb3c7b90434ba809a31b166f6a41a47748cddf541b5449f4fa31a311e2
|
7
|
+
data.tar.gz: efa78974a239b2cb38aa2aab182849d3a1024c060398ae036dcbf57203b9b7604a452724aaa793608a94ae50e7d1659811826e202e3a196636b2ceaf80aca617
|
data/Gemfile.lock
CHANGED
@@ -29,9 +29,8 @@ 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
|
-
RDF_XSD_FLOAT = "#{RDF_XSD}float"
|
33
|
-
RDF_XSD_DOUBLE = "#{RDF_XSD}double"
|
34
32
|
RDF_XSD_DECIMAL = "#{RDF_XSD}decimal"
|
33
|
+
RDF_XSD_DOUBLE = "#{RDF_XSD}double"
|
35
34
|
|
36
35
|
def object_to_value(value)
|
37
36
|
return primitive_to_value(value.iri) if value.respond_to?(:iri)
|
@@ -103,7 +102,7 @@ module Empathy
|
|
103
102
|
shorthand(EMP_TYPE_BOOL, value.value)
|
104
103
|
when RDF_XSD_DOUBLE
|
105
104
|
shorthand(EMP_TYPE_DOUBLE, value.value)
|
106
|
-
when RDF_XSD_DECIMAL
|
105
|
+
when RDF_XSD_DECIMAL
|
107
106
|
primitive(value.datatype.to_s, value.value)
|
108
107
|
when RDF_XSD_INTEGER
|
109
108
|
integer_to_value(value.to_i)
|
@@ -44,12 +44,10 @@ module Empathy
|
|
44
44
|
|
45
45
|
RDF_XSD_INTEGER: "http://www.w3.org/2001/XMLSchema#integer"
|
46
46
|
|
47
|
-
|
47
|
+
RDF_XSD_DECIMAL: "http://www.w3.org/2001/XMLSchema#decimal"
|
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
|
-
|
53
51
|
type shorthand = { type: string, v: string }
|
54
52
|
type primitive = { type: string, dt: string, v: string }
|
55
53
|
|
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.g41bf02753
|
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-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Serializer for the EmpJson specification.
|
14
14
|
email:
|