yamlscript 0.1.80 → 0.1.82
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/ChangeLog.md +8 -0
- data/Makefile +1 -0
- data/ReadMe.md +13 -14
- data/lib/yamlscript/version.rb +1 -1
- data/lib/yamlscript.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: f48d1b61bb97a08a2d967f3b7226888e9410b58634cdd136c353fc0c42dc2cf5
|
4
|
+
data.tar.gz: 721fe8347dc5de31323c428308c815b8cb59745ae90ce2a213a3a72a6aa52c36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b8f4ec34b705b57c7b5a0649a054b99080fd5411c5ced9b19add175d7e04b86b5e357d5a9270e49e8b01d551584e34dd82b02b2555bea4fc5882969a1d87eab
|
7
|
+
data.tar.gz: 65fda9197cd6004d9910ef5103f7cccfa8eac2c269651aa1c36e4cc2a403f9b1e0d988102e6eab1f7eb794913d59856ed70c981d33082926142055e3b5eec084
|
data/ChangeLog.md
CHANGED
data/Makefile
CHANGED
data/ReadMe.md
CHANGED
@@ -13,12 +13,11 @@ Load `file.yaml` with YAMLScript:
|
|
13
13
|
!yamlscript/v0/
|
14
14
|
|
15
15
|
# Get data from external sources:
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
"random-name/master/first-names.json"
|
16
|
+
names-url =:
|
17
|
+
"https://raw.githubusercontent.com/dominictarr/\
|
18
|
+
random-name/master/first-names.json"
|
20
19
|
|
21
|
-
|
20
|
+
name-list =: &first-names json/load(curl(names-url))
|
22
21
|
|
23
22
|
# Data object with literal keys and generated values:
|
24
23
|
name:: rand-nth(*first-names)
|
@@ -75,15 +74,15 @@ CLI binary `ys` to run:
|
|
75
74
|
|
76
75
|
```text
|
77
76
|
$ ys --compile file.ys
|
78
|
-
(
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
77
|
+
(let
|
78
|
+
[names-url "https://raw.githubusercontent.com/dominictarr/random-name/master/first-names.json"
|
79
|
+
name-list (_& 'first-names (json/load (curl names-url)))]
|
80
|
+
(%
|
81
|
+
"name" (rand-nth (_** 'first-names))
|
82
|
+
"aka" (rand-nth name-list)
|
83
|
+
"age" (_& 'num (mul+ 2 3 7))
|
84
|
+
"color" (_& 'hue (first (shuffle (qw red green blue yellow))))
|
85
|
+
"title" (str (_** 'num) " shades of " (_** 'hue) ".")))
|
87
86
|
```
|
88
87
|
|
89
88
|
|
data/lib/yamlscript/version.rb
CHANGED
data/lib/yamlscript.rb
CHANGED
@@ -16,7 +16,7 @@ class YAMLScript
|
|
16
16
|
# This value is automatically updated by 'make bump'.
|
17
17
|
# The version number is used to find the correct shared library file.
|
18
18
|
# We currently only support binding to an exact version of libyamlscript.
|
19
|
-
YAMLSCRIPT_VERSION = '0.1.
|
19
|
+
YAMLSCRIPT_VERSION = '0.1.82'
|
20
20
|
|
21
21
|
# A low-level interface to the native library
|
22
22
|
module LibYAMLScript
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yamlscript
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.82
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ingy döt Net
|
8
8
|
- Delon Newman
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-11-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|
@@ -50,7 +50,7 @@ metadata:
|
|
50
50
|
homepage_uri: https://github.com/yaml/yamlscript
|
51
51
|
source_code_uri: https://github.com/yaml/yamlscript
|
52
52
|
changelog_uri: https://github.com/yaml/yamlscript/tree/main/ruby/ChangeLog.md
|
53
|
-
post_install_message:
|
53
|
+
post_install_message:
|
54
54
|
rdoc_options: []
|
55
55
|
require_paths:
|
56
56
|
- lib
|
@@ -65,8 +65,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: '0'
|
67
67
|
requirements: []
|
68
|
-
rubygems_version: 3.
|
69
|
-
signing_key:
|
68
|
+
rubygems_version: 3.4.20
|
69
|
+
signing_key:
|
70
70
|
specification_version: 4
|
71
71
|
summary: Program in YAML — Code is Data
|
72
72
|
test_files: []
|