Skip to content

Commit fde69e2

Browse files
committed
--amend
1 parent 22ef10a commit fde69e2

File tree

2 files changed

+48
-32
lines changed

2 files changed

+48
-32
lines changed

cursor-text-objects-scm-1.rockspec

Lines changed: 0 additions & 32 deletions
This file was deleted.

template.rockspec

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
}

0 commit comments

Comments
 (0)