Skip to content

Commit 23f71eb

Browse files
committed
update structure
1 parent 45f96b0 commit 23f71eb

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
*.rock
2+
*.rockspec
23
.luarocks_key

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ install_dependencies:
66
luarocks install simple_test
77

88
test:
9-
lua test.lua
9+
LUA_PATH="./src/?.lua;./src/?/init.lua;./src/array/?.lua;;" lua test.lua
1010

1111
rockspec:
1212
bash $(task_folder)create_rockspec.sh $(version)

src/array.lua renamed to src/array/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local utils = require('./utils')
1+
local utils = require('array.utils')
22

33
local array
44

File renamed without changes.

test.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
package.path = "./src/?.lua;" .. package.path
2-
3-
local array = require './src/array'
41
local test = require 'simple_test'
2+
local array = require 'array'
53

64
test('meta infos', function(a)
75
a.equal(array.__VERSION, '1.3.1')

0 commit comments

Comments
 (0)