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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/rdf/turtle/writer.rb +3 -3
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 74839614d06433f71569ae79b671c051a62ba832
4
- data.tar.gz: 844d3e5df010231f62bb31ab2017d9deec83855f
3
+ metadata.gz: 56d0d3cc2cf4292f416aa291e67d4d058cd332d7
4
+ data.tar.gz: d39c9e316044e0ebea6e8d1780a9ccf136a39e2e
5
5
  SHA512:
6
- metadata.gz: 38bf67b574d867570aaab90b406f6bcfb6bbdaf577b7df2e86251fd31da4066960643fe69f3511066b0514346abe8fb3f43080c9074ae781dd85000bf601e56a
7
- data.tar.gz: b16aa111179d97f73c310d9fc1a0734ae398ffdb36d732817add7a108883120a75d9f30f22b6a02b89dff1159ef9fd857fb3b350a8453ed1d7a9d7ce7257b4b6
6
+ metadata.gz: 15d74683135486f8c3f107c71f422d27f1b9e8d13c55decb6a75d629a0d923c804e9ece23a0c0ffb339ff42baea972f8f7e6adf9831bea4d556e808b63abcb7c
7
+ data.tar.gz: 2733ddfba4a8a54c84f997a31c37df08a3b2c820829c8c9f55899d2b67af769a4e2d36bd289b79f2077e6bc5f0138bb236600f49508d30b3f645ca3836b08f8c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.6
1
+ 1.1.7
@@ -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.6
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-04-02 00:00:00.000000000 Z
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.3
211
+ rubygems_version: 2.4.7
212
212
  signing_key:
213
213
  specification_version: 4
214
214
  summary: Turtle reader/writer for Ruby.