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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c7fd58e017395f4ce4c67e04d8c4324c27bfe816926a41ebf0a813231cbe3eaf
4
- data.tar.gz: 5ad57dac159e4fabe083f209cf0d0bb07735ed533859da539b0c0796b2d3dc70
3
+ metadata.gz: 8be036a0955b8ac11ce122cd4515bcb4770d73f2228aaa2e27827705250c95e8
4
+ data.tar.gz: 56671b97653eb3c1857a6c1a9df7b427df8e4c486983033aff44e0f8f57b51bc
5
5
  SHA512:
6
- metadata.gz: 5c84ac4702188843e47041424d50e35ed19dcacbc8c9ce334a4036e6a8f2201f6d3dc420c9fbd6a5262fd42e1e387090c4ffe1575b4a7d92081a5776844e5492
7
- data.tar.gz: 4b02a0867a5ae9cc0e698df0308d91f9fa8b41a96e14ad5efd8b51e95659e3e20196a2d1c197e9dc6e0f96710f632e0d9295342e18e069b6313eac49a5841c72
6
+ metadata.gz: d2c64169c11e46d89ff1e59350d03d88dd364a17e11e2a9e544cd861ab7d51023d3f2c9717f728970512b1072078d2aa3fb41fa83e534518f350d1d8ae2ee70c
7
+ data.tar.gz: 96a8ed2c9ea104ff480558e25e104cdbde98a1cab2c457b20022243d41f51e9a4839d5db5bb9bda320643aaafecd0a872e5ada80c25dc1a096ac5e6afabd7700
@@ -17,7 +17,7 @@ jobs:
17
17
  test:
18
18
  strategy:
19
19
  matrix:
20
- ruby: [2.4, 2.5, 2.6, 2.7, 3.0, head]
20
+ ruby: [2.4, 2.5, 2.6, 2.7, 3.0, 3.1, head]
21
21
 
22
22
  runs-on: ubuntu-latest
23
23
 
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)
@@ -1,3 +1,5 @@
1
+ require 'uri'
2
+
1
3
  module KDL
2
4
  module Types
3
5
  class URLTemplate < Value
data/lib/kdl/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module KDL
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
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.2
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: 2021-12-16 00:00:00.000000000 Z
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.2.32
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: []