yamlscript 0.1.80 → 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: 608156fc6a8a8d8556548effc661116a6a9cbd41777fd4c6e8ab5d307a8c0a38
4
- data.tar.gz: 15052b375771618e9f3bccce58326ea004e490da09e0985bf3b616ffb394ef77
3
+ metadata.gz: f48d1b61bb97a08a2d967f3b7226888e9410b58634cdd136c353fc0c42dc2cf5
4
+ data.tar.gz: 721fe8347dc5de31323c428308c815b8cb59745ae90ce2a213a3a72a6aa52c36
5
5
  SHA512:
6
- metadata.gz: 1e5f2a82d3881adeec68a616bda6d13051a379fad4867be2062c383ff478d9b6e30acd5c0e54e5e5fe019c5bf79a3ef3ecd5457b13edc27986badb6b9e1f4267
7
- data.tar.gz: b517f57aa86462a102db8b55903fbb9b8872ef2fd995663d473b6de6c90a48d667b3681149566e9a80c5cf422154dfd912a9464af8be3c939a3bfda3ec60c07a
6
+ metadata.gz: 4b8f4ec34b705b57c7b5a0649a054b99080fd5411c5ced9b19add175d7e04b86b5e357d5a9270e49e8b01d551584e34dd82b02b2555bea4fc5882969a1d87eab
7
+ data.tar.gz: 65fda9197cd6004d9910ef5103f7cccfa8eac2c269651aa1c36e4cc2a403f9b1e0d988102e6eab1f7eb794913d59856ed70c981d33082926142055e3b5eec084
data/ChangeLog.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [0.1.82] - 2024-11-03
2
+
3
+ - libyamlscript 0.1.82
4
+
5
+ ## [0.1.81] - 2024-11-01
6
+
7
+ - libyamlscript 0.1.81
8
+
1
9
  ## [0.1.80] - 2024-10-10
2
10
 
3
11
  - libyamlscript 0.1.80
data/Makefile CHANGED
@@ -26,6 +26,7 @@ $(RAKE_CMDS):: $(GEM_HOME)
26
26
 
27
27
  $(GEM_HOME):
28
28
  gem install minitest -v 5.20.0
29
+ bundle install
29
30
  endif
30
31
 
31
32
  clean::
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.80"
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.80'
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.80
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-10-10 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
@@ -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.3.5
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: []