sxp 1.2.3 → 1.3.0
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 +4 -4
- data/README.md +4 -4
- data/VERSION +1 -1
- data/lib/sxp/reader/basic.rb +1 -1
- metadata +11 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61374894094dfef958193088e14f4ad30c9510fdbd99463c2dc7787332fe7322
|
4
|
+
data.tar.gz: 95bb2ac7d7019cda158a9acf4f62135b9d194d90da2c536d6c8debaa0b5bd4b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff36cf0e38d92c01ec88505c2b43ecb675309fe1ba11be06dc1fbd76ff2b0f2f1ed09df8d2758faa01ad977ff959b7d57aecac1458064d7d50951128e9d4a821
|
7
|
+
data.tar.gz: bbbc68c4a419fe356939a497db48504cc9bc04a738670b51e55cee4126267c2505379e273471de2b5828e4cf3da3812c985065543a1dd7e41d17873273f89c76
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
This is a Ruby implementation of a universal [S-expression][] parser.
|
4
4
|
|
5
|
-
[](https:/badge.fury.io/rb/sxp)
|
6
6
|
[](https://github.com/dryruby/sxp.rb/actions?query=workflow%3ACI)
|
7
7
|
[](https://coveralls.io/r/dryruby/sxp.rb?branch=develop)
|
8
8
|
|
@@ -11,7 +11,7 @@ This is a Ruby implementation of a universal [S-expression][] parser.
|
|
11
11
|
* Parses S-expressions in universal, [Scheme][], [Common Lisp][], or
|
12
12
|
[SPARQL][] syntax.
|
13
13
|
* Adds a `#to_sxp` method to Ruby objects.
|
14
|
-
* Compatible with Ruby >=
|
14
|
+
* Compatible with Ruby >= 3.0, Rubinius >= 3.0, and JRuby 9+.
|
15
15
|
|
16
16
|
## Basic syntax
|
17
17
|
|
@@ -224,8 +224,8 @@ In addition to the standard datatypes, the SPARQL dialect supports the following
|
|
224
224
|
|
225
225
|
# Dependencies
|
226
226
|
|
227
|
-
* [Ruby](https:/ruby-lang.org/) (>=
|
228
|
-
* [RDF.rb](https:/rubygems.org/gems/rdf) (~> 3.
|
227
|
+
* [Ruby](https:/ruby-lang.org/) (>= 3.0)
|
228
|
+
* [RDF.rb](https:/rubygems.org/gems/rdf) (~> 3.3), only needed for SPARQL
|
229
229
|
S-expressions
|
230
230
|
|
231
231
|
# Installation
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.3.0
|
data/lib/sxp/reader/basic.rb
CHANGED
@@ -26,7 +26,7 @@ module SXP; class Reader
|
|
26
26
|
case buffer = read_literal
|
27
27
|
when '.' then buffer.to_sym
|
28
28
|
when RATIONAL then Rational($1.to_i, $2.to_i)
|
29
|
-
when DECIMAL then Float(buffer) #
|
29
|
+
when DECIMAL then Float(buffer.end_with?('.') ? "#{buffer}0" : buffer)
|
30
30
|
when INTEGER then Integer(buffer)
|
31
31
|
else buffer.to_sym
|
32
32
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sxp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arto Bendiken
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2023-09-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rdf
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '3.
|
20
|
+
version: '3.3'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '3.
|
27
|
+
version: '3.3'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: matrix
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -45,28 +45,28 @@ dependencies:
|
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '1.
|
48
|
+
version: '1.5'
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: '1.
|
55
|
+
version: '1.5'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: rspec
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '3.
|
62
|
+
version: '3.12'
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '3.
|
69
|
+
version: '3.12'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: yard
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
@@ -124,6 +124,7 @@ metadata:
|
|
124
124
|
homepage_uri: https://github.com/dryruby/sxp
|
125
125
|
mailing_list_uri: https://lists.w3.org/Archives/Public/public-rdf-ruby/
|
126
126
|
source_code_uri: https://github.com/dryruby/sxp
|
127
|
+
rubygems_mfa_required: 'true'
|
127
128
|
post_install_message:
|
128
129
|
rdoc_options: []
|
129
130
|
require_paths:
|
@@ -132,14 +133,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
132
133
|
requirements:
|
133
134
|
- - ">="
|
134
135
|
- !ruby/object:Gem::Version
|
135
|
-
version: '
|
136
|
+
version: '3.0'
|
136
137
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
138
|
requirements:
|
138
139
|
- - ">="
|
139
140
|
- !ruby/object:Gem::Version
|
140
141
|
version: '0'
|
141
142
|
requirements: []
|
142
|
-
rubygems_version: 3.
|
143
|
+
rubygems_version: 3.4.19
|
143
144
|
signing_key:
|
144
145
|
specification_version: 4
|
145
146
|
summary: A pure-Ruby implementation of a universal S-expression parser.
|