Commit graph

34 commits

Author SHA1 Message Date
Kim Alvefur
43531740f9 util: Prefix module imports with prosody namespace 2023-03-17 16:23:16 +01:00
Kim Alvefur
43351d2b54 Spelling: Fix various spelling mistakes (thanks timeless)
Words, sometimes I wonder how they even work

Maybe I missed something.
2022-03-07 00:13:56 +01:00
Matthew Wild
018c618a3f util.pluginloader: Fix method to return any module metadata (luacheck) 2022-02-04 15:04:20 +00:00
Matthew Wild
61216794b9 util.pluginloader: Support for a per-file load filter
Load filters can choose to block the loading of certain files, and optionally
return some metadata about the loaded file.
2022-02-03 12:56:52 +00:00
Matthew Wild
e88413e22b util.pluginloader: Support for multiple pluginloader instances, and options 2022-02-03 12:53:19 +00:00
Kim Alvefur
0113f59de0 util.pluginloader: Look for module libs in mod_plugin/lib.lua
Luarocks can't be told to install something as foo.lib.lua AFAIK, so
instead let's try mod_bar/foo.lua
2020-10-05 20:58:37 +02:00
Kim Alvefur
19549a6976 util.pluginloader: Look for top level mod_something.lua in luarocks-style tree 2020-10-05 20:56:53 +02:00
Kim Alvefur
b0616dd198 util.pluginloader: Extract Lua version once
It's not going to change while the module is loaded.
2020-10-05 20:56:03 +02:00
João Duarte
ebfdb94d96 util.pluginloader: Added a new path to the variable local_names 2019-08-16 13:54:40 -07:00
Kim Alvefur
1438a38845 util: Various minor changes to please [luacheck] 2017-11-10 05:42:32 +01:00
Matthew Wild
a1e077c5e7 modulemanager, util.pluginloader: Move logic for locating some module libraries to pluginloader, to fix problems with non-filesystem errors being masked by the second load_code call 2016-02-01 21:26:15 +00:00
Kim Alvefur
eaa823a597 util.*: Remove use of module() function, make all module functions local and return them in a table at the end 2015-02-21 10:36:37 +01:00
Kim Alvefur
9ea9c5719a Merge 0.9->0.10 2014-03-09 23:47:53 +01:00
Kim Alvefur
ebf052523a util.pluginloader: Always use path separator from package.config (thanks Junne) 2014-03-09 22:15:40 +01:00
Florian Zeitz
1d833bb807 Remove all trailing whitespace 2013-08-09 17:48:21 +02:00
Matthew Wild
dd9768067d util.pluginloader: Remove unused imports 2012-08-01 01:27:42 +01:00
Matthew Wild
5048d36617 util.pluginloader: Expose load_file 2012-08-01 01:27:31 +01:00
Florian Zeitz
d49b9bc2ab Eliminate direct setfenv usage 2012-06-08 05:04:38 +02:00
Waqas Hussain
886aab55ec util.pluginloader: Rewritten resource loading to be cleaner, and added support for prosody-modules directory layout. "/" in plugin names is no longer supported. 2011-02-22 21:47:38 +05:00
Waqas Hussain
2a37446dfa util.pluginloader: Remove unused support for custom loaders, to simplify further refactoring. 2011-02-20 20:11:52 +05:00
Waqas Hussain
6ae4c18ce7 util.pluginloader: Return file path on success in pluginloader.load_code(). 2011-02-20 20:03:43 +05:00
Waqas Hussain
cf8bb78998 util.pluginloader: Return full file path from internal file loader on success, not just the name. 2011-02-20 20:01:05 +05:00
Waqas Hussain
799df42891 util.pluginloader: Add support for multiple plugin directories. 2011-01-21 04:35:49 +05:00
Waqas Hussain
4791aa6464 util.pluginloader: Remove useless datamanager dependency. 2010-07-31 12:32:56 +05:00
Waqas Hussain
6f80673f10 util.pluginloader: Fix loading of plugins, plugin libraries and resources in subfolders (e.g., when loading 'a/b', load 'a/mod_b.lua', and not 'mod_a/b.lua'). 2010-07-31 12:32:34 +05:00
Matthew Wild
679ffe558d prosodyctl, util.pluginloader: Remove support for storing plugins in the data store, and the addplugin command 2010-06-11 14:25:22 +01:00
Matthew Wild
46c0b8c7f9 Merge 0.6->0.7 2010-03-22 17:24:55 +00:00
Matthew Wild
2bc0606453 Update copyright headers for 2010 2010-03-22 17:06:15 +00:00
Matthew Wild
7be6d854c1 util.pluginloader: Don't specify a host for the plugin data store (clever waqas...) 2009-12-05 13:34:45 +00:00
Matthew Wild
7add1f641e util.pluginloader: Support for fetching plugins from the data store 2009-12-02 18:05:03 +00:00
Matthew Wild
e45610ce6e Add copyright header to those files missing one 2009-07-10 03:08:38 +01:00
Waqas Hussain
7422c11cfa util.pluginloader: Append "@" to chunk names (fixes weird formatting in plugin tracebacks) 2009-06-28 22:29:17 +05:00
Matthew Wild
1fadaf4fa7 util.pluginloader: Remove unnecessary return value suppressing the real load error 2009-06-22 21:56:52 +01:00
Waqas Hussain
84d3a71ab2 util.pluginloader: Initial commit - a plugin resource loader 2009-06-14 21:01:30 +05:00