sardonyx 0.3.0 → 0.3.1
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/bin/sdx +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cb1abb1054bac034790200a964982214b49e23fc6d7d770d0fd04891dfa6e347
|
|
4
|
+
data.tar.gz: ae202ff163082b2cc8796a9ff961a22a0acceb31f70cfdd9b02736bc2c2c6e56
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 62fdce49d54f1a3a57b8865390a2c2145d043db991c4982821299f726b2d268e15d5cd675b4ecaa05b03d2b159ec66d1fa5f03ddcba2b0d30733677d26465201
|
|
7
|
+
data.tar.gz: 1379d7546a69f008fd3c9b1d632ac5f42e1dfc887972c59dec4adf1b00d88251a02e8551d5fd8a03260cfe680ab860540a40191388a3bf051f4579d3b5f8d3b6
|
data/bin/sdx
CHANGED
|
@@ -5,6 +5,10 @@ require "sdx/vm/vm"
|
|
|
5
5
|
require "stringio"
|
|
6
6
|
require "readline"
|
|
7
7
|
|
|
8
|
+
if (ENV.fetch("SDX_PATH", "").split ":")
|
|
9
|
+
puts "\x1b[0;33mLooks like you don't have anything in your SDX_PATH! You should install the stdlib at https://github.com/SardonyxLang/SardonyxStd.\x1b[0;0m"
|
|
10
|
+
end
|
|
11
|
+
|
|
8
12
|
if ARGV.size == 1
|
|
9
13
|
path = [(File.expand_path File.dirname ARGV[0]), *(ENV.fetch("SDX_PATH", "").split ":")]
|
|
10
14
|
code = File.read ARGV[0]
|
|
@@ -18,7 +22,7 @@ if ARGV.size == 1
|
|
|
18
22
|
else
|
|
19
23
|
path = [(File.expand_path Dir.pwd), *(ENV.fetch("SDX_PATH", "").split ":")]
|
|
20
24
|
vm = VM.new StringIO.new ""
|
|
21
|
-
puts "Sardonyx v0.3.
|
|
25
|
+
puts "Sardonyx v0.3.1"
|
|
22
26
|
puts "Type :help for help, or :exit to exit"
|
|
23
27
|
loop do
|
|
24
28
|
begin
|