rufus-lua-moon 0.3.1 → 0.3.2

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
  SHA1:
3
- metadata.gz: 7d8589607161eec6f6fccf8c51d12a20884505e1
4
- data.tar.gz: f0a922f11872caf83252a877e511ff0afbaf0959
3
+ metadata.gz: b9ac2290802ee13f83bf597434e4c19bd50a4517
4
+ data.tar.gz: 495d4d7419f763778794c0475f9285e1936c57bc
5
5
  SHA512:
6
- metadata.gz: a201b801a986357ad278f0d789541569740c12b32b6caec0b015334252b0baba7ce3802d0d29a63651b74b75bd5cde70e988e464198265b7e7b19287f6fe5c33
7
- data.tar.gz: fc942e682a02dd75787cce0b3ed76bc70e98ae11aeb073e95f9ba67b9045f44ca2ce703c942ac1864e154de99e085f2a5ae1d1e70d33d95aae7b7cf20be79a0b
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 paths = split(package_path, ";")
22
- for i, path in ipairs(paths) do
23
- local p = path:match("^(.-)%.lua$")
24
- if p then
25
- paths[i] = p .. ".moon"
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(paths, ";")
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
  }
@@ -1,4 +1,4 @@
1
- local version = "0.3.1"
1
+ local version = "0.3.2"
2
2
  return {
3
3
  version = version,
4
4
  print_version = function()
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rufus-lua-moon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stas Ukolov