Skip to content

Commit

Permalink
0.8 release. Fixed major bug in inline
Browse files Browse the repository at this point in the history
  • Loading branch information
DorianGray committed Oct 19, 2015
1 parent b44ccac commit 8ed7aeb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lusty-0.7-8.rockspec → lusty-0.8-0.rockspec
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package = "lusty"
version = "0.7-8"
version = "0.8-0"
source = {
url = "https://github.com/Olivine-Labs/lusty/archive/v0.7.tar.gz",
dir = "lusty-0.7"
url = "https://github.com/Olivine-Labs/lusty/archive/v0.8.tar.gz",
dir = "lusty-0.8"
}
description = {
summary = "Lua web framework.",
Expand Down
4 changes: 2 additions & 2 deletions lusty/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ local function inline(name, env)
lineMod = -1
end

local file = loaded[name]
local file = loaded[name..'/'..table.concat(keys, '/')]
if not file then
local fileName = nil
local code, err = loadModule(name)
Expand All @@ -63,7 +63,7 @@ local function inline(name, env)
file, err = loadstring(code)
end
if not file then error(rewriteError(err, fileNames[name], lineMod)) end
loaded[name] = file
loaded[name..'/'..table.concat(keys, '/')] = file
end

local res = {
Expand Down

0 comments on commit 8ed7aeb

Please sign in to comment.