emp_json 1.4.0.pre.g2af295da5 → 1.4.0.pre.g2c7b34d0b

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: 0000730e028c2cdcce57ac6cecd0574b22bcf80d68f6f1fb196361ef15df4a53
4
- data.tar.gz: e03477c1b347d1dc453001c6b4ef0ae15084840f5d3c6628d01ece770ca10ef0
3
+ metadata.gz: 1ff805dc9dbb50dd3f829cae6ed5e4b6520bbf5be74a3a72db23b956b03416d9
4
+ data.tar.gz: 2cb4ba20b7678212f9961d736292315e5af18f98ded5efb79e534610cb86c03d
5
5
  SHA512:
6
- metadata.gz: 2d949a1e98f9edd8ee029f9b491fdedafd02c385267cf5c6e5289793045de2c428f4a6e01e712766e6ba263c23098bcd7968a16d7f844443b7e832db1af9d4b3
7
- data.tar.gz: 23aec55675f54967665264ffdf2e51c267affe0b473ba987bd3219628526fca91126d6efe9ce0609fc2cd4a33e9c68a3beaeb3f077fb2bb93bfd0138d3ffa5b5
6
+ metadata.gz: d2fc0b677b6758c91d674484f470935037b567985a2596904033c94e0aef4c94de751cc165c718c9a6f9b336336f1eaf8e5becd89bcc70a900ada4200c238474
7
+ data.tar.gz: 9290dcf28b062bd42d5b669295e49f46eabef69a8f34d422e61fe67e0dff935171dd7d68637152cbb0d0bd64d961edab92ef92ec0111f15e0a9ce5937b406830
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- emp_json (1.4.0.pre.g2af295da5)
4
+ emp_json (1.4.0.pre.g2c7b34d0b)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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, RDF_XSD_FLOAT
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
- RDF_XSD_FLOAT: "http://www.w3.org/2001/XMLSchema#float"
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.g2af295da5
4
+ version: 1.4.0.pre.g2c7b34d0b
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-17 00:00:00.000000000 Z
11
+ date: 2022-08-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Serializer for the EmpJson specification.
14
14
  email: