{"id":20081976,"url":"https://github.com/exercism/lua","last_synced_at":"2025-08-22T05:32:10.477Z","repository":{"id":17609622,"uuid":"20413657","full_name":"exercism/lua","owner":"exercism","description":"Exercism exercises in Lua.","archived":false,"fork":false,"pushed_at":"2024-05-22T08:03:58.000Z","size":1214,"stargazers_count":39,"open_issues_count":10,"forks_count":56,"subscribers_count":12,"default_branch":"main","last_synced_at":"2024-05-23T09:27:27.628Z","etag":null,"topics":["community-contributions-paused","exercism-track"],"latest_commit_sha":null,"homepage":"https://exercism.org/tracks/lua","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/exercism.png","metadata":{"funding":{"github":["exercism"],"custom":["https://exercism.org/donate"]},"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-06-02T17:52:31.000Z","updated_at":"2024-05-22T08:04:01.000Z","dependencies_parsed_at":"2023-02-17T04:01:02.857Z","dependency_job_id":"afa65dad-592c-4b96-a9e2-07ea46f73c33","html_url":"https://github.com/exercism/lua","commit_stats":{"total_commits":497,"total_committers":49,"mean_commits":"10.142857142857142","dds":0.613682092555332,"last_synced_commit":"333cc9d54d6deb25854f8b64a73e22414bc12204"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exercism%2Flua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exercism%2Flua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exercism%2Flua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exercism%2Flua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exercism","download_url":"https://codeload.github.com/exercism/lua/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230561014,"owners_count":18245324,"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":["community-contributions-paused","exercism-track"],"created_at":"2024-11-13T15:41:11.717Z","updated_at":"2024-12-20T09:07:19.033Z","avatar_url":"https://github.com/exercism.png","language":"Lua","funding_links":["https://github.com/sponsors/exercism","https://exercism.org/donate"],"categories":[],"sub_categories":[],"readme":"# Exercism Lua Track\n\n[![Test](https://github.com/exercism/lua/actions/workflows/test.yml/badge.svg)](https://github.com/exercism/lua/actions/workflows/test.yml)\n\nExercism exercises in Lua\n\n## Configuring a Development Development and Contributing\n\nInstall Lua and Luarocks according to the [installation instructions][1] for your platform.\nThen, install all additional development dependencies with:\n\n```shell\n$ ./bin/install-dev-dependencies\n```\n\nTo contribute a patch you will need a GitHub account and you will need to fork\nthe *exercism/lua* repo to your account.\nClone your fork with the command: `git clone https://github.com/\u003cyour_username\u003e/lua`.\nCreate your patch and open a pull request to the exercism/lua repo.\n\nSee the GitHub Help for [forking a repo][2] and [creating a pull request][3]\nif you are unfamiliar with this process.\n\nTo contribute a new exercise, create a folder named after the exercise within the\n*lua/exercises* directory. Create your files for a new test, test class and the implementation.\n\nFor example, for the [Bob][4] exercise:\n\n    $ tree bob\n    bob\n    ├── bob_spec.lua\n    └── bob.lua\n\n    0 directories, 2 files\n\nRun the test\n\n    $ busted\n\nRename *bob.lua* to *example.lua*, and add the exercise to the [lua/config.json][5] file.\n\n    $ tree bob\n    bob\n    ├── bob_spec.lua\n    └── example.lua\n\n    0 directories, 2 files\n\nOptionally, you can generate the spec from the upstream canonical data.\nTo use the spec generator, create a file called `spec_generator.lua` in the `.meta/` directory of the exercise.\nThis file should be a Lua module returning a table with two fields:\n- `module_name` - A string containing the name of the Lua variable to which the module under test will be bound.\n- `generate_test` - A function that returns a string representation of a test given the corresponding case from the canonical data.\n\nOptionally, a third field can be included:\n- `test_helpers` - A string that will be injected at the top of the outermost `describe` block. This can include helper functions that are used in multiple tests or other setup code.\n\nTo use the test generator, run:\n\n```shell\n$ ./bin/generate-spec \u003cexercise name\u003e\n```\n\nThis will use `curl` to fetch the canonical data from the upstream repository, generate the spec file, and format it.\n\n## Contributing Guide\n\nPlease be familiar with the [contributing guide][6] in the docs repository.\nThis describes some great ways to get involved. In particular, please read the\n[Pull Request Guidelines][7] before opening a pull request.\n\n## Other Resources\n\nPleases see the [Useful Lua Resources][8] page.\n\n## Lua icon\nThe Lua icon is inspired by the [Lua logo][9], which was designed by Alexandre Nakonechnyj.\n\n[1]: https://exercism.io/tracks/lua/installation\n[2]: https://help.github.com/articles/fork-a-repo/\n[3]: https://help.github.com/articles/creating-a-pull-request/\n[4]: https://github.com/exercism/lua/tree/master/exercises/bob\n[5]: https://github.com/exercism/lua/blob/master/config.json\n[6]: https://github.com/exercism/docs/tree/master/contributing-to-language-tracks\n[7]: https://github.com/exercism/docs/blob/master/contributing/pull-request-guidelines.md\n[8]: https://exercism.io/tracks/lua/resources\n[9]: http://www.lua.org/images/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexercism%2Flua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexercism%2Flua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexercism%2Flua/lists"}