{"id":17624984,"url":"https://github.com/ukoloff/rufus-lua-moon","last_synced_at":"2025-03-30T01:42:50.720Z","repository":{"id":20476926,"uuid":"23754662","full_name":"ukoloff/rufus-lua-moon","owner":"ukoloff","description":"Provides MoonScript for Rufus::Lua interpreter","archived":false,"fork":false,"pushed_at":"2018-03-29T02:40:55.000Z","size":114,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-22T13:03:36.018Z","etag":null,"topics":["appveyor","lua","moonscript","ruby","travis-ci"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"JetBrains/swot","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ukoloff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-07T07:14:04.000Z","updated_at":"2018-03-29T02:40:56.000Z","dependencies_parsed_at":"2022-07-08T01:05:23.249Z","dependency_job_id":null,"html_url":"https://github.com/ukoloff/rufus-lua-moon","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ukoloff%2Frufus-lua-moon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ukoloff%2Frufus-lua-moon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ukoloff%2Frufus-lua-moon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ukoloff%2Frufus-lua-moon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ukoloff","download_url":"https://codeload.github.com/ukoloff/rufus-lua-moon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246266252,"owners_count":20749754,"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":["appveyor","lua","moonscript","ruby","travis-ci"],"created_at":"2024-10-22T22:07:08.346Z","updated_at":"2025-03-30T01:42:50.699Z","avatar_url":"https://github.com/ukoloff.png","language":"Ruby","readme":"# Rufus::Lua::Moon\n\n[![Build Status](https://travis-ci.org/ukoloff/rufus-lua-moon.svg?branch=master)](https://travis-ci.org/ukoloff/rufus-lua-moon)\n[![Build status](https://ci.appveyor.com/api/projects/status/9huwrdo2tm22kda6?svg=true)](https://ci.appveyor.com/project/ukoloff/rufus-lua-moon)\n[![Gem Version](https://badge.fury.io/rb/rufus-lua-moon.svg)](http://badge.fury.io/rb/rufus-lua-moon)\n\nProvides MoonScript for Rufus::Lua interpreter\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'rufus-lua-moon'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install rufus-lua-moon\n\n## Usage\n\nAfter creating Rufus::Lua interpreter patch it to support MoonScript:\n\n```ruby\ns=Rufus::Lua::State.new\ns.moon!\ns.eval \u003c\u003cEOL\n  m=require \"moonscript.base\"\n  x=m.to_lua \"-\u003e1\"\n  print(x)\nEOL\n```\nYou can set `package.moonpath` and require file(s) with moonscript code:\n```ruby\ns=Rufus::Lua::State.new.moon!\ns.eval \u003c\u003cEOL\n  package.moonpath='./?.moon'\n  require 'myfile'  -- load 'myfile.moon'\nEOL\n```\n\n## Dependencies\n\nOn Linux you should have Lua and Lpeg installed\n(eg. for [Ubuntu](.travis.yml)). \n\nOn Windows simply use\n[Rufus::Lua::Win](https://github.com/ukoloff/rufus-lua-win).\n\n## Credits\n\n  * [Lua](http://www.lua.org/)\n  * [MoonScript](http://moonscript.org/)\n  * [Rufus::Lua](https://github.com/jmettraux/rufus-lua)\n  * [Travis CI](https://travis-ci.org/)\n  * [AppVeyor](http://www.appveyor.com/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fukoloff%2Frufus-lua-moon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fukoloff%2Frufus-lua-moon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fukoloff%2Frufus-lua-moon/lists"}