{"id":19212501,"url":"https://github.com/leafo/moonrocks","last_synced_at":"2025-05-12T20:36:54.300Z","repository":{"id":66222874,"uuid":"10624985","full_name":"leafo/moonrocks","owner":"leafo","description":"command line tool for working with rocks.moonscript.org","archived":false,"fork":false,"pushed_at":"2015-10-23T17:42:39.000Z","size":215,"stargazers_count":30,"open_issues_count":7,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-01T03:11:07.508Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leafo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-11T15:50:33.000Z","updated_at":"2025-02-11T04:50:24.000Z","dependencies_parsed_at":"2023-02-20T00:30:46.998Z","dependency_job_id":null,"html_url":"https://github.com/leafo/moonrocks","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafo%2Fmoonrocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafo%2Fmoonrocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafo%2Fmoonrocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafo%2Fmoonrocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leafo","download_url":"https://codeload.github.com/leafo/moonrocks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249933569,"owners_count":21347700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T13:47:10.217Z","updated_at":"2025-04-20T17:33:28.888Z","avatar_url":"https://github.com/leafo.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `moonrocks`\n\nA command line tool for uploading and installing from the public Lua module\nhosting site, [LuaRocks][1].\n\nThis tool is no longer necessary as this functionality has been added to the\nmain [LuaRocks tool](https://github.com/keplerproject/luarocks/wiki/upload).\n\n## How To Install\n\nInstall using LuaRocks:\n\n```bash\n$ luarocks install moonrocks\n```\n\n\u003e Add `--local` or `--tree` if you need to install to a different location\n\nThis will give us the command line tool `moonrocks`.\n\n## How To Use\n\n`moonrocks` comes with two main commands, `install` and `upload`. You can run\n`moonrocks help` to see help from the command line.\n\n### `moonrocks install`\n\n\u003e This command is no longer necessary as rocks.moonrocks.org has become luarocks.org\n\n`install` is a simple wrapper for running `luarocks install`, except that it\nprepends `--server=http://rocks.moonscript.org` to the argument list, ensuring\nthat MoonRocks is checked as a module source.\n\nFor example, the following two commands are equivalent:\n\n```bash\n$ moonrocks install --local moonscript # install with moonrocks\n\n$ luarocks --server=http://rocks.moonscript.org install --local moonscript # install with luarocks\n```\n\n### `moonrocks upload \u003crockspec\u003e`\n\n`upload` will upload a rockspec to the server. If the module doesn't exist yet\nit will be created, if it already exists the new version will be added to it.\nIf a version for that rockspec already exists then you will be prompted to\noverwrite.\n\nThis is equivalent to going to \u003chttp://rocks.moonscript.org/upload\u003e and\nuploading a rockspec.\n\nBy default `upload` will use `luarocks pack` to pack the rockspec into a rock.\nThat rock will also be uploaded along with the rockspec. (This creates a src\nrock). If you don't wish to pack and upload a rock then include the flag\n`--skip-pack`\n\nAll remote actions (such as uploading a rockspec) require an associated account\non [MoonRocks][1]. You give access to your account by generating and API key.\nThe first time you issue a remote command you will be asked to log in. This\ninvolves generating an API key at \u003chttp://rocks.moonscript.org/settings\u003e and\npasting it into the tool.\n\n\n### `moonrocks login`\n\nYou can call `login` to set or replace your API key. You shouldn't normally\nneed to call this, `upload` will attempt to log you in automatically if a key\nis not configured.\n\nYour API key is stored in `USER_HOME/.moonrocks/config.lua`.\n\n\n## Dependencies\n\nThanks to the following libraries:\n\n* [Penlight](https://github.com/stevedonovan/Penlight)\n* [ansicolors](https://github.com/kikito/ansicolors.lua)\n* [luasocket](http://w3.impa.br/~diego/software/luasocket/)\n* [lua-cjson](http://www.kyne.com.au/~mark/software/lua-cjson.php)\n\n\n## License (MIT)\n\nCopyright (C) 2013 by Leaf Corcoran\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n [1]: http://rocks.moonscript.org\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleafo%2Fmoonrocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleafo%2Fmoonrocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleafo%2Fmoonrocks/lists"}