wcl 0.2.4.alpha1 → 0.2.5.alpha1
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 +38 -0
- data/lib/wcl/version.rb +1 -1
- data/lib/wcl/wcl_wasm.wasm +0 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 538e287f16fdde95b2ca9e7b095a49d0758c91248be7b857f08efcf2810a981e
|
|
4
|
+
data.tar.gz: fb2acb6c250d03eeb80e5769e2d8ac68d7e572e74ef6f2b4dc4ba2805e37db78
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0d6949c25a63eba33d82b904cd8c00e1a1bca472013a11fa79e46f74b853e62d0a339cf74921d64a58c049340fe07b0a5c8c68c8f2057a04db2b75aeedf71162
|
|
7
|
+
data.tar.gz: 52992d5217c2c862628d6a63df7c8255753ff90df0df4bfa3383159e0015ef03c43b14a3333caa38e781e558518a46578921d4415102fab1bd804f1c07d23907
|
data/README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# wcl — Ruby bindings for WCL
|
|
2
|
+
|
|
3
|
+
Ruby bindings for [WCL (Wil's Configuration Language)](https://wcl.dev), powered by a WASM runtime. Ruby 3.1+.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
gem install wcl
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require "wcl"
|
|
15
|
+
|
|
16
|
+
doc = Wcl.parse(<<~WCL)
|
|
17
|
+
server web {
|
|
18
|
+
port = 8080
|
|
19
|
+
host = "localhost"
|
|
20
|
+
}
|
|
21
|
+
WCL
|
|
22
|
+
|
|
23
|
+
puts doc.values
|
|
24
|
+
# {"server"=>{"web"=>{"port"=>8080, "host"=>"localhost"}}}
|
|
25
|
+
|
|
26
|
+
servers = doc.blocks_of_type("server")
|
|
27
|
+
puts "Found #{servers.length} server(s)"
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Links
|
|
31
|
+
|
|
32
|
+
- **Website**: [wcl.dev](https://wcl.dev)
|
|
33
|
+
- **Documentation**: [wcl.dev/docs](https://wcl.dev/docs/)
|
|
34
|
+
- **GitHub**: [github.com/wiltaylor/wcl](https://github.com/wiltaylor/wcl)
|
|
35
|
+
|
|
36
|
+
## License
|
|
37
|
+
|
|
38
|
+
MIT
|
data/lib/wcl/version.rb
CHANGED
data/lib/wcl/wcl_wasm.wasm
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wcl
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.5.alpha1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Wil Taylor
|
|
@@ -31,6 +31,7 @@ executables: []
|
|
|
31
31
|
extensions: []
|
|
32
32
|
extra_rdoc_files: []
|
|
33
33
|
files:
|
|
34
|
+
- README.md
|
|
34
35
|
- lib/wcl.rb
|
|
35
36
|
- lib/wcl/callback.rb
|
|
36
37
|
- lib/wcl/convert.rb
|