Skip to content

Commit

Permalink
Add 0.1 rockspec.
Browse files Browse the repository at this point in the history
  • Loading branch information
jinq0123 committed May 20, 2018
1 parent cb8ad55 commit 6932b5b
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions rockspecs/hotfix-0.1-1.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package = "hotfix"
version = "0.1-1"
source = {
url = "git://github.com/jinq0123/hotfix",
tag = "v0.1",
}
description = {
summary = "Lua 5.2/5.3 hotfix. Hot update functions and keep old data.",
homepage = "https://github.com/jinq0123/hotfix",
license = "Apache License 2.0",

detailed = [[
hotfix reloads the module and updates the old module, keeping the old data.
Usage:
local hotfix = require("hotfix")
hotfix.hotfix_module("mymodule.sub_module")
The module is reloaded and the returned value is updated to package.loaded[module_name].
Functons are updated to new ones but old upvalues are kept.
Old tables are kept and new fields are inserted.
All references to old functions are replaced to new ones.
]],
}

dependencies = {
"lua >= 5.2",
}

build = {
type = "builtin",
modules = {
["hotfix.hotfix"] = "lua/hotfix/hotfix.lua",
["hotfix.internal.functions_replacer"] = "lua/hotfix/internal/functions_replacer.lua",
["hotfix.internal.module_updater"] = "lua/hotfix/internal/module_updater.lua",
},
copy_directories = {
"helper",
},
}

0 comments on commit 6932b5b

Please sign in to comment.