http://github.com/elemel/rocks/tree/master/import-0.1-1.rockspec?raw=trueThe new, clean kind looks like this:http://github.com/elemel/rocks/raw/master/import-0.1-1.rockspec
The new kind of URL allows you to host LuaRocks repositories at GitHub. Mine is at:http://github.com/elemel/rocks/raw/masterTo create your own LuaRocks repository at GitHub, follow these steps:- Create a GitHub repository named e.g.
rocksand change directory to your local clone of it. - Copy your
rockspecfiles to your working directory. - Make a manifest:
luarocks-admin make_manifest . - Stage (add), commit, and push your
rockspecfiles and manifest to GitHub. - Add the raw URL string for your repository to the
rocks_serversarray in yourconfig.luafile.
tarball and zipball URLs of GitHub are convenient in rockspec files. For an example, see the rockspec file for import referred above. If you have trouble browsing a repository, try appending a slash to the URL.Update: I have moved my LuaRocks repository to my GitHub Pages.
No comments:
Post a Comment