Skip to content

Commit

Permalink
Prepare for 1.2.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonaba committed Oct 3, 2016
1 parent bee3707 commit 7f4e2ae
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 30log-clean.lua
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ _class = function(name, attr)
end

class._DESCRIPTION = '30 lines library for object orientation in Lua'
class._VERSION = '30log v1.1.0'
class._VERSION = '30log v1.2.0'
class._URL = 'http://github.com/Yonaba/30log'
class._LICENSE = 'MIT LICENSE <http://www.opensource.org/licenses/mit-license.php>'

Expand Down
2 changes: 1 addition & 1 deletion 30log-global.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ _class = function(name, attr) local c = deep_copy(attr); _classes[c] = tostring(
c.without = function(self, ...) assert_call_from_class(self, 'without(mixin)'); for _, mixin in ipairs({...}) do
assert(self.mixins[mixin] == true, ('Attempted to remove a mixin which is not included in %s'):format(tostring(self))); local classes = self:subclasses(); classes[#classes + 1] = self
for _, class in ipairs(classes) do for method_name, method in pairs(mixin) do if type(method) == 'function' then class[method_name] = nil end end end; self.mixins[mixin] = nil end; return self end; return setmetatable(c, baseMt) end
class._DESCRIPTION = '30 lines library for object orientation in Lua'; class._VERSION = '30log v1.1.0'; class._URL = 'http://github.com/Yonaba/30log'; class._LICENSE = 'MIT LICENSE <http://www.opensource.org/licenses/mit-license.php>'
class._DESCRIPTION = '30 lines library for object orientation in Lua'; class._VERSION = '30log v1.2.0'; class._URL = 'http://github.com/Yonaba/30log'; class._LICENSE = 'MIT LICENSE <http://www.opensource.org/licenses/mit-license.php>'
return setmetatable(class,{__call = function(_,...) return _class(...) end })
2 changes: 1 addition & 1 deletion 30log.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ _class = function(name, attr) local c = deep_copy(attr); _classes[c] = tostring(
c.without = function(self, ...) assert_call_from_class(self, 'without(mixin)'); for _, mixin in ipairs({...}) do
assert(self.mixins[mixin] == true, ('Attempted to remove a mixin which is not included in %s'):format(tostring(self))); local classes = self:subclasses(); classes[#classes + 1] = self
for _, class in ipairs(classes) do for method_name, method in pairs(mixin) do if type(method) == 'function' then class[method_name] = nil end end end; self.mixins[mixin] = nil end; return self end; return setmetatable(c, baseMt) end
class._DESCRIPTION = '30 lines library for object orientation in Lua'; class._VERSION = '30log v1.1.0'; class._URL = 'http://github.com/Yonaba/30log'; class._LICENSE = 'MIT LICENSE <http://www.opensource.org/licenses/mit-license.php>'
class._DESCRIPTION = '30 lines library for object orientation in Lua'; class._VERSION = '30log v1.2.0'; class._URL = 'http://github.com/Yonaba/30log'; class._LICENSE = 'MIT LICENSE <http://www.opensource.org/licenses/mit-license.php>'
return setmetatable(class,{__call = function(_,...) return _class(...) end })
25 changes: 25 additions & 0 deletions rockspecs/30log-1.2.0-1.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package = "30log"
version = "1.2.0-1"
source = {
url = "https://github.com/Yonaba/30log/archive/30log-1.2.0-1.tar.gz",
dir = "30log-30log-1.2.0-1"
}
description = {
summary = "30 lines library for object orientation",
detailed = [[
30log, in extenso "30 Lines Of Goodness" is a minified library
for object-orientation in Lua. It features named (and unnamed) classes,
single inheritance and provides basic support for mixins.]],
homepage = "http://yonaba.github.io/30log",
license = "MIT <http://www.opensource.org/licenses/mit-license.php>"
}
dependencies = {"lua >= 5.1, <=5.3"}
build = {
type = "builtin",
modules = {
["30log"] = "30log.lua",
["30log-clean"] = "30log-clean.lua",
["30log-global"] = "30log-global.lua",
["30log-singleton"] = "30log-singleton.lua"
}
}
5 changes: 4 additions & 1 deletion version_history.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#Version history#

##1.2.0 (03/10/2016)
Added `class:cast()`, changes the class of an instance

##1.1.0 (09/26/2016)
### New features
* Added `class:subclasses()` returns the list of all classes which extend from `class`
Expand All @@ -17,7 +20,7 @@
* An instance of `class` is considered to be the instance of any superclass of `class`
* A class is considered to be the subclass of any of its direct superclass's superclasses

##1.0.0 (01/09/2015)
##1.0.0 (01/09/2015)

### New features
* `require "30log"` now returns a callable table
Expand Down

0 comments on commit 7f4e2ae

Please sign in to comment.