yamlscript 0.1.81 → 0.1.82

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: 775602f3ebd520b8302a1b18ea2e5e1ee144b81f9300fe55e85f40345451f418
4
- data.tar.gz: 518c37d6c6e77bb61110e00f58e2d5d26b9e63546a4d712e1120efec750c0907
3
+ metadata.gz: f48d1b61bb97a08a2d967f3b7226888e9410b58634cdd136c353fc0c42dc2cf5
4
+ data.tar.gz: 721fe8347dc5de31323c428308c815b8cb59745ae90ce2a213a3a72a6aa52c36
5
5
  SHA512:
6
- metadata.gz: d5eef550d090f598fa63486b5eff9f11ec8907126e98f988f81fff96455f1fe894837f13637c4cf8e20611ee5b718bd14fdd1ab099400fb9aac4135af4ee8060
7
- data.tar.gz: 7b3c5dbb5a84d0fbc90fba652d27bddf24fce885e8ddadef32f50cafb5a7b8823ccd2a44f0ae1a31f539911cc6efa12653ea6a1e11f5d9db27791697f7003da8
6
+ metadata.gz: 4b8f4ec34b705b57c7b5a0649a054b99080fd5411c5ced9b19add175d7e04b86b5e357d5a9270e49e8b01d551584e34dd82b02b2555bea4fc5882969a1d87eab
7
+ data.tar.gz: 65fda9197cd6004d9910ef5103f7cccfa8eac2c269651aa1c36e4cc2a403f9b1e0d988102e6eab1f7eb794913d59856ed70c981d33082926142055e3b5eec084
data/ChangeLog.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.1.82] - 2024-11-03
2
+
3
+ - libyamlscript 0.1.82
4
+
1
5
  ## [0.1.81] - 2024-11-01
2
6
 
3
7
  - libyamlscript 0.1.81
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
- names-url =:
18
- "https://raw.githubusercontent.com/dominictarr/" +
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
- name-list =: &first-names json/load(curl(names-url))
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
- (def names-url
79
- (+_ "https://raw.githubusercontent.com/dominictarr/"
80
- "random-name/master/first-names.json"))
81
- (def name-list (_& 'first-names (json/load (curl names-url))))
82
- {"age" (_& 'num (*_ 2 3 7)),
83
- "aka" (_-> name-list (list rand-nth)),
84
- "color" (_& 'hue (_-> (qw red green blue yellow) (list shuffle) (list first))),
85
- "name" (rand-nth (_** 'first-names)),
86
- "title" (str (_** 'num) " shades of " (_** 'hue) ".")}
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class YAMLScript
4
- VERSION = "0.1.81"
4
+ VERSION = "0.1.82"
5
5
  end
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.81'
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yamlscript
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.81
4
+ version: 0.1.82
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ingy döt Net
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-11-02 00:00:00.000000000 Z
12
+ date: 2024-11-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest