edn-abnf 0.1.5 → 0.1.7

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: a595a62b037a2f01e97e65a81ded57ab06f7bb8644b13b154ec0cff3bc10024c
4
- data.tar.gz: 9e08a40602ace456c0f354dd9c0faa377bfa5dc45e8f457210808d0933cb49ab
3
+ metadata.gz: fddd16926a1e5bfe04391f6d13697fbc6efae2f10aa8760c302a166392b0f219
4
+ data.tar.gz: 366deb2e42f3ae5260ca3be9e8c8fa9badd95013338534d856f467635d7128bf
5
5
  SHA512:
6
- metadata.gz: af634c12b0f15f52f1693e5ffc341bdb3c212cb162fbb34b912183d525069029a2c946a8b09143da497fda2726407d22f46e1ebce3f75bbe70550bceb6ac9566
7
- data.tar.gz: d17d1bb4da4943e31d2670a21e05b7a0ce4f74bbb202e5732f7f93bef469301b4c600168e48615a4458cab1c7d84b60dcd7b9ba4bc331ef6ed7ff63cb84080a9
6
+ metadata.gz: 1f752e65f80dcd12430c8add3976d5166689701a4e25892c7c2e4ae6d9f6447cdb7840c59e0294dbe010318e553402e565d24854a461cbdb7063d2d65ea71911
7
+ data.tar.gz: dfbe082491e4601b2b59fa6ec2c4304ae24bf7f47f1dbb9b152e2de535afd9c49caa215a537e575162a1b62da10cb722da1cad4b844a34114d9f317d7818f7b4
data/edn-abnf.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "edn-abnf"
3
- s.version = "0.1.5"
3
+ s.version = "0.1.7"
4
4
  s.summary = "CBOR Extended Diagnostic Notation (EDN) implemented in ABNF"
5
5
  s.description = %q{edn-abnf implements converters and miscellaneous tools for CBOR EDN's ABNF}
6
6
  s.author = "Carsten Bormann"
@@ -80,8 +80,8 @@ module HGRAMMAR
80
80
  curr = [el]
81
81
  end
82
82
  }
83
- if out.size == 0 && String === curr[0]
84
- curr.join # unpack_thread(curr)
83
+ if out.size == 0 && (curr.size == 0 || String === curr[0])
84
+ curr.join.b # unpack_thread(curr)
85
85
  else
86
86
  CBOR::Tagged.new(888, (out << curr).map {|x| unpack_thread(x)})
87
87
  end
@@ -38,13 +38,10 @@ module EDNGRAMMAR
38
38
  end
39
39
 
40
40
  module Seq2
41
- def S1
41
+ def S
42
42
  elements[0]
43
43
  end
44
44
 
45
- def S2
46
- elements[2]
47
- end
48
45
  end
49
46
 
50
47
  module Seq3
@@ -141,10 +138,6 @@ module EDNGRAMMAR
141
138
  r2 = instantiate_node(SyntaxNode,input, index...index)
142
139
  end
143
140
  s0 << r2
144
- if r2
145
- r13 = _nt_S
146
- s0 << r13
147
- end
148
141
  end
149
142
  if s0.last
150
143
  r0 = instantiate_node(SyntaxNode,input, i0...index, s0)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: edn-abnf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carsten Bormann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-27 00:00:00.000000000 Z
11
+ date: 2024-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  - !ruby/object:Gem::Version
123
123
  version: '0'
124
124
  requirements: []
125
- rubygems_version: 3.4.10
125
+ rubygems_version: 3.5.11
126
126
  signing_key:
127
127
  specification_version: 4
128
128
  summary: CBOR Extended Diagnostic Notation (EDN) implemented in ABNF