From 9fbf9b85aece78a3010fa843acb9723d647d1b70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20S=C3=BCdmeyer?= Date: Mon, 26 Apr 2021 14:09:02 +0200 Subject: [PATCH] rock installs correctly --- .gitignore | 1 + README.md | 3 +++ color.lua => init.lua | 7 +++---- {lib => util}/class.lua | 0 lib/utils.lua => util/init.lua | 0 5 files changed, 7 insertions(+), 4 deletions(-) rename color.lua => init.lua (96%) rename {lib => util}/class.lua (100%) rename lib/utils.lua => util/init.lua (100%) diff --git a/.gitignore b/.gitignore index 58e49b1..0aaa2a0 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ tmp/ test.lua *.rockspec +*.rock diff --git a/README.md b/README.md index 388a70e..090fb59 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ # Lua Color Convert and manipulate color values. + + +## diff --git a/color.lua b/init.lua similarity index 96% rename from color.lua rename to init.lua index a8e0207..cad0163 100644 --- a/color.lua +++ b/init.lua @@ -1,6 +1,5 @@ -require "lib.utils" - - +require "lua-color.util" +local class = require "lua-color.util.class" -- Utils @@ -33,7 +32,7 @@ end -- Color -local Color = require "lib.class" (function (this, value) +local Color = class(function (this, value) if value then this:set(value) else diff --git a/lib/class.lua b/util/class.lua similarity index 100% rename from lib/class.lua rename to util/class.lua diff --git a/lib/utils.lua b/util/init.lua similarity index 100% rename from lib/utils.lua rename to util/init.lua