kdl 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +1 -1
- data/lib/kdl/tokenizer.rb +7 -1
- data/lib/kdl/types/url_template.rb +2 -0
- data/lib/kdl/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8be036a0955b8ac11ce122cd4515bcb4770d73f2228aaa2e27827705250c95e8
|
4
|
+
data.tar.gz: 56671b97653eb3c1857a6c1a9df7b427df8e4c486983033aff44e0f8f57b51bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2c64169c11e46d89ff1e59350d03d88dd364a17e11e2a9e544cd861ab7d51023d3f2c9717f728970512b1072078d2aa3fb41fa83e534518f350d1d8ae2ee70c
|
7
|
+
data.tar.gz: 96a8ed2c9ea104ff480558e25e104cdbde98a1cab2c457b20022243d41f51e9a4839d5db5bb9bda320643aaafecd0a872e5ada80c25dc1a096ac5e6afabd7700
|
data/.github/workflows/ruby.yml
CHANGED
data/lib/kdl/tokenizer.rb
CHANGED
@@ -120,8 +120,8 @@ module KDL
|
|
120
120
|
end
|
121
121
|
else
|
122
122
|
self.context = :decimal
|
123
|
-
traverse(1)
|
124
123
|
@buffer = c
|
124
|
+
traverse(1)
|
125
125
|
end
|
126
126
|
when '\\'
|
127
127
|
t = Tokenizer.new(@str, @index + 1)
|
@@ -341,6 +341,12 @@ module KDL
|
|
341
341
|
return parse_float(s) if s =~ /[.E]/i
|
342
342
|
|
343
343
|
token(:INTEGER, Integer(munch_underscores(s), 10), format: '%d')
|
344
|
+
rescue
|
345
|
+
if s[0] =~ INITIAL_IDENTIFIER_CHARS && s[1..-1].each_char.all? { |c| c =~ IDENTIFIER_CHARS }
|
346
|
+
token(:IDENT, s)
|
347
|
+
else
|
348
|
+
raise
|
349
|
+
end
|
344
350
|
end
|
345
351
|
|
346
352
|
def parse_float(s)
|
data/lib/kdl/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kdl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danielle Smith
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: racc
|
@@ -97,7 +97,7 @@ metadata:
|
|
97
97
|
homepage_uri: https://kdl.dev
|
98
98
|
source_code_uri: https://github.com/danini-the-panini/kdl-rb
|
99
99
|
changelog_uri: https://github.com/danini-the-panini/kdl-rb/releases
|
100
|
-
post_install_message:
|
100
|
+
post_install_message:
|
101
101
|
rdoc_options: []
|
102
102
|
require_paths:
|
103
103
|
- lib
|
@@ -112,8 +112,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
112
|
- !ruby/object:Gem::Version
|
113
113
|
version: '0'
|
114
114
|
requirements: []
|
115
|
-
rubygems_version: 3.
|
116
|
-
signing_key:
|
115
|
+
rubygems_version: 3.3.7
|
116
|
+
signing_key:
|
117
117
|
specification_version: 4
|
118
118
|
summary: KDL Document Language
|
119
119
|
test_files: []
|