rdf-turtle 1.1.6 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/rdf/turtle/writer.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56d0d3cc2cf4292f416aa291e67d4d058cd332d7
|
4
|
+
data.tar.gz: d39c9e316044e0ebea6e8d1780a9ccf136a39e2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15d74683135486f8c3f107c71f422d27f1b9e8d13c55decb6a75d629a0d923c804e9ece23a0c0ffb339ff42baea972f8f7e6adf9831bea4d556e808b63abcb7c
|
7
|
+
data.tar.gz: 2733ddfba4a8a54c84f997a31c37df08a3b2c820829c8c9f55899d2b67af769a4e2d36bd289b79f2077e6bc5f0138bb236600f49508d30b3f645ca3836b08f8c
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.7
|
data/lib/rdf/turtle/writer.rb
CHANGED
@@ -244,11 +244,11 @@ module RDF::Turtle
|
|
244
244
|
literal = literal.dup.canonicalize! if @options[:canonicalize]
|
245
245
|
case literal
|
246
246
|
when RDF::Literal
|
247
|
-
case literal.datatype
|
247
|
+
case literal.valid? ? literal.datatype : false
|
248
248
|
when RDF::XSD.boolean, RDF::XSD.integer, RDF::XSD.decimal
|
249
|
-
literal.to_s
|
249
|
+
literal.canonicalize.to_s
|
250
250
|
when RDF::XSD.double
|
251
|
-
literal.to_s.sub('E', 'e') # Favor lower case exponent
|
251
|
+
literal.canonicalize.to_s.sub('E', 'e') # Favor lower case exponent
|
252
252
|
else
|
253
253
|
text = quoted(literal.value)
|
254
254
|
text << "@#{literal.language}" if literal.has_language?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdf-turtle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregg Kellogg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdf
|
@@ -208,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
208
208
|
version: '0'
|
209
209
|
requirements: []
|
210
210
|
rubyforge_project: rdf-turtle
|
211
|
-
rubygems_version: 2.4.
|
211
|
+
rubygems_version: 2.4.7
|
212
212
|
signing_key:
|
213
213
|
specification_version: 4
|
214
214
|
summary: Turtle reader/writer for Ruby.
|