WoWInterface SVN zzcommon

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk/LibDualSpec-1.0
    from Rev 82 to Rev 67
    Reverse comparison

Rev 82 → Rev 67

Changelog-LibDualSpec-1.0-v1.8.txt New file
0,0 → 1,13
tag v1.8
ca5c72408f8b3983f3bcce0ae105fe27471ea485
mike <mike@broinitup.com>
2012-09-24 13:20:43 -0400
 
Tagging as v1.8
 
 
--------------------
 
mike:
- @project-date@ to @project-date-iso@
- Fix toc. It's 50001, not 50100 !
LibStub.lua New file
0,0 → 1,30
-- LibStub is a simple versioning stub meant for use in Libraries. http://www.wowace.com/wiki/LibStub for more info
-- LibStub is hereby placed in the Public Domain Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke
local LIBSTUB_MAJOR, LIBSTUB_MINOR = "LibStub", 2 -- NEVER MAKE THIS AN SVN REVISION! IT NEEDS TO BE USABLE IN ALL REPOS!
local LibStub = _G[LIBSTUB_MAJOR]
 
if not LibStub or LibStub.minor < LIBSTUB_MINOR then
LibStub = LibStub or {libs = {}, minors = {} }
_G[LIBSTUB_MAJOR] = LibStub
LibStub.minor = LIBSTUB_MINOR
 
function LibStub:NewLibrary(major, minor)
assert(type(major) == "string", "Bad argument #2 to `NewLibrary' (string expected)")
minor = assert(tonumber(strmatch(minor, "%d+")), "Minor version must either be a number or contain a number.")
 
local oldminor = self.minors[major]
if oldminor and oldminor >= minor then return nil end
self.minors[major], self.libs[major] = minor, self.libs[major] or {}
return self.libs[major], oldminor
end
 
function LibStub:GetLibrary(major, silent)
if not self.libs[major] and not silent then
error(("Cannot find a library instance of %q."):format(tostring(major)), 2)
end
return self.libs[major], self.minors[major]
end
 
function LibStub:IterateLibraries() return pairs(self.libs) end
setmetatable(LibStub, { __call = LibStub.GetLibrary })
end
LibDualSpec-1.0.toc New file
0,0 → 1,16
## Interface: 50001
## LoadOnDemand: 1
## Title: Lib: DualSpec-1.0
## Version: v1.8
## X-Date: 2012-09-24T17:09:25Z
## Notes: Adds dual spec support to individual AceDB-3.0 databases
## Author: Adirelle
## OptionalDeps: LibStub, Ace3
## X-Curse-Packaged-Version: v1.8
## X-Curse-Project-Name: LibDualSpec-1.0
## X-Curse-Project-ID: libdualspec-1-0
## X-Curse-Repository-ID: wow/libdualspec-1-0/mainline
 
LibStub.lua
LibDualSpec-1.0.lua