sxp 0.0.12 → 0.0.13

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.
data/CREDITS CHANGED
@@ -0,0 +1 @@
1
+ * Ben Lavender <blavender@gmail.com>
data/README CHANGED
@@ -92,7 +92,12 @@ Resources
92
92
  Author
93
93
  ------
94
94
 
95
- * [Arto Bendiken](mailto:arto.bendiken@gmail.com) - <http://ar.to/>
95
+ * [Arto Bendiken](https://github.com/bendiken) - <http://ar.to/>
96
+
97
+ Contributors
98
+ ------------
99
+
100
+ * [Ben Lavender](https://github.com/bhuga) - <http://bhuga.net/>
96
101
 
97
102
  License
98
103
  -------
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.12
1
+ 0.0.13
@@ -8,6 +8,7 @@ module SXP; class Reader
8
8
  #
9
9
  # @see http://openjena.org/wiki/SSE
10
10
  class SPARQL < Extended
11
+ NIL = /^nil$/i
11
12
  FALSE = /^false$/i
12
13
  TRUE = /^true$/i
13
14
  EXPONENT = /[eE][+-]?[0-9]+/
@@ -64,6 +65,7 @@ module SXP; class Reader
64
65
  def read_atom
65
66
  case buffer = read_literal
66
67
  when '.' then buffer.to_sym
68
+ when NIL then nil
67
69
  when FALSE then RDF::Literal(false)
68
70
  when TRUE then RDF::Literal(true)
69
71
  when DECIMAL then RDF::Literal(Float(buffer[-1].eql?(?.) ? buffer + '0' : buffer))
data/lib/sxp/version.rb CHANGED
@@ -2,7 +2,7 @@ module SXP
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 12
5
+ TINY = 13
6
6
  EXTRA = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, EXTRA].compact.join('.')
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 12
9
- version: 0.0.12
8
+ - 13
9
+ version: 0.0.13
10
10
  platform: ruby
11
11
  authors:
12
12
  - Arto Bendiken
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-11-05 00:00:00 +01:00
17
+ date: 2011-01-13 00:00:00 +01:00
18
18
  default_executable: sxp2rdf
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency