Rename core.* to prosody.*
So eg require"prosody.usermanager"
Rename prosody-specific things from util.* into prosody.util.*
Goals/benefits:
- Improve the namespace
- Install into OS standard Lua search paths without conflicts
- Distribute util.* and net.* as separate package(s)
Zash
on
Too big and disruptive for 0.12 which is meant to be prepared for release.
Changes
tagsMilestone-0.12
Zash
on
New approach! To avoid the disruption of moving files around in the repo, we'll adjust require() behavior via searchers/search paths, allowing a gradual transition from require"util.foo" to require"prosody.util.foo"
In a way, this was already started by using dh-lua for our Debian packages, where things are installed into e.g. /usr/share/lua/5.4/prosody/util/array.lua and then the search paths are patched with https://hg.prosody.im/debian/file/d5c9e036c195/patches/shared-paths
Rename core.* to prosody.* So eg require"prosody.usermanager" Rename prosody-specific things from util.* into prosody.util.* Goals/benefits: - Improve the namespace - Install into OS standard Lua search paths without conflicts - Distribute util.* and net.* as separate package(s)
Too big and disruptive for 0.12 which is meant to be prepared for release.
ChangesMilestone-0.12New approach! To avoid the disruption of moving files around in the repo, we'll adjust require() behavior via searchers/search paths, allowing a gradual transition from require"util.foo" to require"prosody.util.foo" In a way, this was already started by using dh-lua for our Debian packages, where things are installed into e.g. /usr/share/lua/5.4/prosody/util/array.lua and then the search paths are patched with https://hg.prosody.im/debian/file/d5c9e036c195/patches/shared-paths
ChangesIt is done: https://hg.prosody.im/trunk/log?rev=extra%28%22topic%22%2C+%22renamening%22%29
Changes