Quantcast

Switch to WowAce LibDataBroker-1.1

Erik L. Vonderscheer [10-07-10 - 04:55]
Switch to WowAce LibDataBroker-1.1
Small configuration GUI update
Filename
.pkgmeta
TradeFilter3.lua
TradeFilter3Options.lua
diff --git a/.pkgmeta b/.pkgmeta
index dc2abe4..3a9dc38 100644
--- a/.pkgmeta
+++ b/.pkgmeta
@@ -53,7 +53,7 @@ externals:
   url: git://git.curseforge.net/wow/libaboutpanel/mainline.git
   tag: latest
  libs/LibDataBroker-1.1:
-  url: git://github.com/tekkub/libdatabroker-1-1.git
+  url: git://git.wowace.com/wow/libdatabroker-1-1/mainline.git
   tag: latest
  libs/LibDBIcon-1.0:
   url: svn://svn.wowace.com/wow/libdbicon-1-0/mainline/trunk
diff --git a/TradeFilter3.lua b/TradeFilter3.lua
index 0ba386c..aae4678 100644
--- a/TradeFilter3.lua
+++ b/TradeFilter3.lua
@@ -65,10 +65,10 @@ local rptdone
 --[[  Globals  ]]--
 repeatdata = {}

-local PROJECT_VERSION = "@project-version@"
-local PROJECT_REVISION = 000 + tonumber(("$Revision: @project-revision@ $"):match("%d+"))
-TF3.date = sub("$Date: @project-date-iso@ $", 8, 17)
-TF3.version = gsub(PROJECT_VERSION, "-release", "")
+local MAJOR_VERSION = "@project-version@"
+local PATCH_VERSION = "@project-revision@"
+TF3.version = MAJOR_VERSION .. " r" .. PATCH_VERSION
+TF3.date = "@file-date-iso@"

 --[[ Database Defaults ]]--
 defaults = {
diff --git a/TradeFilter3Options.lua b/TradeFilter3Options.lua
index 9978fa9..e92f6bc 100644
--- a/TradeFilter3Options.lua
+++ b/TradeFilter3Options.lua
@@ -28,7 +28,7 @@ options = {
 			args = {
 				mainHeader = {
 					type = "description",
-					name = "  " .. L["NJAOF"] .. "\n  Version " .. TF3.version .. "\n  " .. TF3.date .. "\n",
+					name = "  " .. L["NJAOF"] .. "\n  Version " .. TF3.version .. "\n  " .. string.sub(TF3.date,6,7) .. "-" .. string.sub(TF3.date,9,10) .. "-" .. string.sub(TF3.date,1,4),
 					order = 1,
 					image = "Interface\\Icons\\Ability_Warrior_RallyingCry",
 					imageWidth = 32, imageHeight = 32,