toml-rb 2.1.2 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/toml-rb/grammars/array.citrus +6 -6
- data/lib/toml-rb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 765a560c972358ce8b26fd4c2a1206f3605cd981d34cc95ce76e8883c74db0ce
|
4
|
+
data.tar.gz: ceb2f71af612e83e62c33a27ea947144b76e900883eef1200cb6eb2d416f7426
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66cf777cc7be8677ba2feaf63a0521a3d578f2482d5bbf63908f2fc10424a213fcd8080a83eab73fcdb954f9e0645bb11ddb6fcb01f2f6121f512aae1606e147
|
7
|
+
data.tar.gz: 13b9908f48b5888487e9417d8b3eff1c7388e3e8b7e0a031ad0045142be2210ba6ba72252da5e7c79ed6c4faf26c6cf51128f343b72ef5483e969cc51b688268
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
![TOML Logo](https://github.com/toml-lang/toml/blob/
|
1
|
+
![TOML Logo](https://github.com/toml-lang/toml/blob/main/logos/toml-100.png)
|
2
2
|
|
3
3
|
|
4
4
|
toml-rb
|
@@ -11,7 +11,7 @@ toml-rb
|
|
11
11
|
|
12
12
|
A [TOML](https://github.com/toml-lang/toml) parser using [Citrus](http://mjackson.github.io/citrus) library.
|
13
13
|
|
14
|
-
TOML specs supported: `0.
|
14
|
+
TOML specs supported: `1.0.0`
|
15
15
|
|
16
16
|
Installation
|
17
17
|
------------
|
@@ -1,36 +1,36 @@
|
|
1
1
|
grammar TomlRB::Arrays
|
2
2
|
include TomlRB::Primitive
|
3
|
-
|
3
|
+
|
4
4
|
rule array_comments
|
5
5
|
(indent? (comment indent?)*)
|
6
6
|
end
|
7
7
|
|
8
8
|
rule float_array
|
9
|
-
(float (
|
9
|
+
(float (indent? "," array_comments float)*) {
|
10
10
|
captures[:float].map(&:value)
|
11
11
|
}
|
12
12
|
end
|
13
13
|
|
14
14
|
rule string_array
|
15
|
-
(string (
|
15
|
+
(string (indent? "," array_comments string)*) {
|
16
16
|
captures[:string].map(&:value)
|
17
17
|
}
|
18
18
|
end
|
19
19
|
|
20
20
|
rule integer_array
|
21
|
-
(integer (
|
21
|
+
(integer (indent? "," array_comments integer)*) {
|
22
22
|
captures[:integer].map(&:value)
|
23
23
|
}
|
24
24
|
end
|
25
25
|
|
26
26
|
rule datetime_array
|
27
|
-
(datetime (
|
27
|
+
(datetime (indent? "," array_comments datetime)*) {
|
28
28
|
captures[:datetime].map(&:value)
|
29
29
|
}
|
30
30
|
end
|
31
31
|
|
32
32
|
rule bool_array
|
33
|
-
(bool (
|
33
|
+
(bool (indent? "," array_comments bool)*) {
|
34
34
|
captures[:bool].map(&:value)
|
35
35
|
}
|
36
36
|
end
|
data/lib/toml-rb/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toml-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emiliano Mancuso
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-
|
12
|
+
date: 2022-07-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: citrus
|