emp_json 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1be366fe90935e2183bfcebab791742f36bda1eb0d2b4b957d3f8712c8e5021a
4
- data.tar.gz: 1e5def92984e8327e5a46712e9c3c615093535eed826f5cd7e406122036274b1
3
+ metadata.gz: 65165e2a8b93d1ece00376ef482e89bf60fcf7309cd0df6eff76a1b30a7cd746
4
+ data.tar.gz: c1f730784a16dcda8f8ae4bb42bc7b92c76d77eeb09a70ebc6139824efd54954
5
5
  SHA512:
6
- metadata.gz: 53fdb4ad35c3cb6229bc91f0c78db2ebbf29bcfb7286c905b136f4d0f68282fd32701e7df7159dc9517bbeda1b27659b54e9ce9be4763d8d6f188bc14f34029f
7
- data.tar.gz: d3b8fd2957612cb2fe6a7c508dceb09b9583d1fc9eae67fc065c357b6278de13e0cc6e6a94ca2e9ee9aab757b743a0f354134bde14a0000795a34c619166a887
6
+ metadata.gz: 1bb1c8b1992da6a597d8ff1f485b73ab65c3c1c2fe75d799b1b44a8b693baf51f5c8ac74c0bd0a30edfdd8f9ff302fef5ffaf48b6e19df4cffb9c69e2bee9a93
7
+ data.tar.gz: 4335dfd8d45856ecb616997b97809ad857182b5e8c86f7caf2ab1c0163c685c8475a4efa04e12baf2bf7097a9da9824b9794fe7c7e45353f2a62b1a54098918e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- emp_json (1.2.0)
4
+ emp_json (1.2.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -21,6 +21,7 @@ module Empathy
21
21
  RDF_RDFV_LANGSTRING = "#{RDF_RDFV}langString"
22
22
  RDF_RDFS = "http://www.w3.org/2000/01/rdf-schema#"
23
23
  RDF_XSD = "http://www.w3.org/2001/XMLSchema#"
24
+ RDF_XSD_TOKEN = "#{RDF_XSD}token"
24
25
  RDF_XSD_STRING = "#{RDF_XSD}string"
25
26
  RDF_XSD_DATETIME = "#{RDF_XSD}dateTime"
26
27
  RDF_XSD_BOOLEAN = "#{RDF_XSD}boolean"
@@ -82,7 +83,7 @@ module Empathy
82
83
  l: value.language.to_s,
83
84
  v: value.value
84
85
  }
85
- when RDF_XSD_STRING
86
+ when RDF_XSD_STRING, RDF_XSD_TOKEN
86
87
  shorthand(EMP_TYPE_STRING, value.value)
87
88
  when RDF_XSD_DATETIME
88
89
  shorthand(EMP_TYPE_DATETIME, value.value)
@@ -91,7 +92,7 @@ module Empathy
91
92
  when RDF_XSD_INTEGER
92
93
  integer_to_value(value.to_i)
93
94
  else
94
- throw "unknown RDF::Literal: #{value.datatype}"
95
+ throw "unknown RDF::Literal"
95
96
  end
96
97
  end
97
98
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Empathy
4
4
  module EmpJson
5
- VERSION = "1.2.0"
5
+ VERSION = "1.2.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emp_json
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thom van Kalkeren