File tree Expand file tree Collapse file tree 2 files changed +48
-32
lines changed
Expand file tree Collapse file tree 2 files changed +48
-32
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ -- A template that will be replaced by the .github/workflows/release-luarocks.yml file
2+ --
3+ -- Reference:
4+ -- Example template https://github.com/nvim-neorocks/luarocks-tag-release/blob/master/resources/rockspec.template
5+ --
6+
7+ local git_ref = " $git_ref"
8+ local modrev = " $modrev"
9+ local specrev = " $specrev"
10+
11+ local repo_url = " $repo_url"
12+
13+ rockspec_format = " 3.0"
14+ package = " cursor-text-objects"
15+ version = modrev .. " -" .. specrev
16+
17+ local user = " ColinKennedy"
18+
19+ description = {
20+ homepage = " https://github.com/" .. user .. " /" .. package ,
21+ labels = { " neovim" , " neovim-plugin" },
22+ license = " MIT" ,
23+ summary = ' Use [ and ] to enhance all of your Neovim text-objects and text-operators!' ,
24+ }
25+
26+ test_dependencies = {
27+ " busted >= 2.0, < 3.0" ,
28+ " lua >= 5.1, < 6.0" ,
29+ }
30+
31+ -- Reference: https://github.com/luarocks/luarocks/wiki/test#test-types
32+ test = { type = " busted" }
33+
34+ source = {
35+ url = repo_url .. " /archive/" .. git_ref .. " .zip" ,
36+ dir = " $repo_name-" .. " $archive_dir_suffix" ,
37+ }
38+
39+ if modrev == " scm" or modrev == " dev" then
40+ source = {
41+ url = repo_url :gsub (" https" , " git" ),
42+ }
43+ end
44+
45+ build = {
46+ type = " builtin" ,
47+ copy_directories = $copy_directories ,
48+ }
You can’t perform that action at this time.
0 commit comments