rufus-lua-moon 0.3.1 → 0.3.2
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/vendor/leafo/moonscript/base.lua +26 -7
- data/vendor/leafo/moonscript/version.lua +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9ac2290802ee13f83bf597434e4c19bd50a4517
|
4
|
+
data.tar.gz: 495d4d7419f763778794c0475f9285e1936c57bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b78d65cffbcfe8a00d5a6b3d3b4cbde831f1edd7fffa3e9fc417dfeda319186d2b89032911dec16fc12c51d5b28ce33fb85ee25422a81cce860ad05bda9e8f47
|
7
|
+
data.tar.gz: 4e0b5ce5fd0e1cc5507f1baf9bc2ddde199d0dd60542f750786baa06e4c105c6e19e98980f4fd3482409ac9caecaecf029d0d25fa68c7a12a04b3c38ceb83794
|
@@ -18,14 +18,32 @@ local dirsep, line_tables, create_moonpath, to_lua, moon_loader, loadstring, loa
|
|
18
18
|
dirsep = "/"
|
19
19
|
line_tables = require("moonscript.line_tables")
|
20
20
|
create_moonpath = function(package_path)
|
21
|
-
local
|
22
|
-
|
23
|
-
local
|
24
|
-
|
25
|
-
|
21
|
+
local moonpaths
|
22
|
+
do
|
23
|
+
local _accum_0 = { }
|
24
|
+
local _len_0 = 1
|
25
|
+
local _list_0 = split(package_path, ";")
|
26
|
+
for _index_0 = 1, #_list_0 do
|
27
|
+
local _continue_0 = false
|
28
|
+
repeat
|
29
|
+
local path = _list_0[_index_0]
|
30
|
+
local prefix = path:match("^(.-)%.lua$")
|
31
|
+
if not (prefix) then
|
32
|
+
_continue_0 = true
|
33
|
+
break
|
34
|
+
end
|
35
|
+
local _value_0 = prefix .. ".moon"
|
36
|
+
_accum_0[_len_0] = _value_0
|
37
|
+
_len_0 = _len_0 + 1
|
38
|
+
_continue_0 = true
|
39
|
+
until true
|
40
|
+
if not _continue_0 then
|
41
|
+
break
|
42
|
+
end
|
26
43
|
end
|
44
|
+
moonpaths = _accum_0
|
27
45
|
end
|
28
|
-
return concat(
|
46
|
+
return concat(moonpaths, ";")
|
29
47
|
end
|
30
48
|
to_lua = function(text, options)
|
31
49
|
if options == nil then
|
@@ -132,5 +150,6 @@ return {
|
|
132
150
|
dirsep = dirsep,
|
133
151
|
dofile = dofile,
|
134
152
|
loadfile = loadfile,
|
135
|
-
loadstring = loadstring
|
153
|
+
loadstring = loadstring,
|
154
|
+
create_moonpath = create_moonpath
|
136
155
|
}
|