Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please publish json.lua on LuaRocks #13

Open
jirutka opened this issue Sep 7, 2018 · 4 comments
Open

Please publish json.lua on LuaRocks #13

jirutka opened this issue Sep 7, 2018 · 4 comments

Comments

@jirutka
Copy link

jirutka commented Sep 7, 2018

Please publish json.lua on LuaRocks, the de facto standard Lua packages repository. This issue has been already raised in #3, but the submitter closed it without any reason.

@bitbloxhub
Copy link

yes

@brunowego
Copy link

Take a look here.

luarocks install rxi-json-lua

@sodabrew
Copy link

sodabrew commented Aug 6, 2019

Could the latest release tag 0.1.2 get pushed to luarocks?

@hishamhm
Copy link

@rxi hi, I'm the admin of luarocks.org — I can transfer ownership of rxi-json-lua over to you. To upload the latest version to LuaRocks, you can do the following:

  1. Create an account at luarocks.org

  2. Once you're logged into your account, get an API key at https://luarocks.org/settings/api-keys

  3. Create a rockspec file called rxi-json-lua-0.1.2-1.rockspec (the -1 means the revision of the rockspec itself) with the following contents:

package = "rxi-json-lua"
version = "0.1.2-1"
source = {
   url = "git://github.com/rxi/json.lua",
   tag = "v0.1.2",
}
description = {
   summary = "A lightweight JSON library for Lua",
   detailed = [[
    - Implemented in pure Lua: works with 5.1, 5.2, 5.3 and JIT
    - Fast: generally outperforms other pure Lua JSON implementations (benchmark scripts)
    - Tiny: around 290sloc, 9kb
    - Proper error messages, eg: expected '}' or ',' at line 203 col 30
   ]],
   homepage = "https://github.com/rxi/json.lua",
   license = "MIT",
}
dependencies = {
   "lua >= 5.1, < 5.4"
}
build = {
   type = "builtin",
   modules = {
      ["json"] = "json.lua",
      -- the original uploader renamed the module to "rxi-json-lua".
      -- you might want to keep the line below for compatibility (or not, your call)
      --[[
      ["rxi-json-lua"] = "json.lua",
      ]]
   }
}
  1. Install LuaRocks

  2. Upload the package:

    • luarocks upload --api-key=YOUR_KEY rxi-json-lua-0.1.2-1.rockspec
  3. Ping me (here is fine) with your chosen account username at luarocks.org so I can transfer the package entry in the root luarocks.org repository over to your account

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants