yamlscript 0.1.37 → 0.1.39
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/ReadMe.md +3 -3
- data/lib/yamlscript/version.rb +1 -1
- data/lib/yamlscript.rb +2 -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: 00f7948d99baa564f05228c9322130672eb619f4a16c38667ef46ac7033ebb2c
|
4
|
+
data.tar.gz: 330fb5433f2dfbb4f1c2817bb648f13ee1a318426d2c82eb0fa92392a0df5d41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82391091181faac64664f60162ed3ac4f698e373d9bc0ac50c37c9af82efb305672a1e995f8576d2256c8ade8912362f128614d980dbbda504b956c3a13b2d5d
|
7
|
+
data.tar.gz: 4236d7db6e363c578f3cd24db697e19da1356caf6144450c0441d9ca7ff01ba4330f1c69cecb4e5b7bbd1ee55f80b650e03d9a17b92dac0e4ec9e436cc3c2a34
|
data/ChangeLog.md
CHANGED
data/ReadMe.md
CHANGED
@@ -9,7 +9,7 @@ Program in YAML
|
|
9
9
|
```yaml
|
10
10
|
#!/usr/bin/env ys-0
|
11
11
|
|
12
|
-
defn main(name):
|
12
|
+
defn main(name='world'):
|
13
13
|
say: "Hello, $name!"
|
14
14
|
```
|
15
15
|
|
@@ -106,12 +106,12 @@ but you will need to have a system install of `libyamlscript.so`.
|
|
106
106
|
One simple way to do that is with:
|
107
107
|
|
108
108
|
```bash
|
109
|
-
$ curl
|
109
|
+
$ curl -sSL yamlscript.org/install | bash
|
110
110
|
```
|
111
111
|
|
112
112
|
> Note: The above command will install the latest version of the YAMLScript
|
113
113
|
command line utility, `ys`, and the shared library, `libyamlscript.so`, into
|
114
|
-
|
114
|
+
`~/local/bin` and `~/.local/lib` respectively.
|
115
115
|
|
116
116
|
See https://github.com/yaml/yamlscript?#installing-yamlscript for more info.
|
117
117
|
|
data/lib/yamlscript/version.rb
CHANGED
data/lib/yamlscript.rb
CHANGED
@@ -16,7 +16,7 @@ class YAMLScript
|
|
16
16
|
# TODO: 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.39'
|
20
20
|
|
21
21
|
# A low-level interface to the native library
|
22
22
|
module LibYAMLScript
|
@@ -45,6 +45,7 @@ class YAMLScript
|
|
45
45
|
env_value = ENV.fetch('LD_LIBRARY_PATH', '')
|
46
46
|
paths = env_value.split(':')
|
47
47
|
paths << '/usr/local/lib'
|
48
|
+
paths << ENV.fetch('HOME', '') + '/.local/lib'
|
48
49
|
end
|
49
50
|
|
50
51
|
# Find the libyamlscript shared library file path
|
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.
|
4
|
+
version: 0.1.39
|
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-02
|
12
|
+
date: 2024-03-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|