Page 12 of 25
Re: middleclass & middleclass-extras: OOP for LUA
Posted: Thu Nov 11, 2010 2:20 pm
by TechnoCat
Here is a love instead.
Re: middleclass & middleclass-extras: OOP for LUA
Posted: Thu Nov 11, 2010 2:37 pm
by kikito
lol. I wasn't quick enough.
I take you are using love 0.7. On my system (0.6.2 still) the text seems a bit too 'up'.
Re: middleclass & middleclass-extras: OOP for LUA
Posted: Thu Nov 11, 2010 8:09 pm
by zac352
kikito wrote:lol. I wasn't quick enough.
I take you are using love 0.7. On my system (0.6.2 still) the text seems a bit too 'up'.
Isn't that due to the text placement update?
Re: middleclass & middleclass-extras: OOP for LUA
Posted: Thu Nov 11, 2010 10:10 pm
by kikito
Precisely.
Re: middleclass & middleclass-extras: OOP for LUA
Posted: Tue Nov 23, 2010 1:21 am
by kikito
Things have been a bit slow these days due to changes in my real-life work-load and my new cat (she is called Lua, as I mentioned in another post
)
Anyway, today I've done some important changes in middleclass & middleclass-extras. These changes might affect you.
In middleclass:
- The filename has changed from MiddleClass.lua to middleclass.lua, for easier requiring (the complete lib or just the file). This can cause some trouble if you are not careful, specially if you use windows - the folder will work, but the zip file may not. Beware!
- I've moved all the specs to a dedicated github project. This makes middleclass much smaller and easier to include (cloning the whole dir doesn't seem like a bad idea now).
- Indeed, cloning the whole dir is now the recommended way to use middleclass. If anything, it will save you the hassle of having to copy the license file somewhere.
- On this regard, I've also created a small init.lua file that just loads middleclass.lua. Why did I do this? Because it's kind of an unspoken standard to call 'init.lua' the file that 'loads up' a module. I've made a proposal for including ?/init.lua by default on love's package.path. This should allow you to do require 'middleclass' instead of require 'middleclass.init'
- I've updated the README file, removing deprecated stuff and adding new stuff.
- Also, this can be considered version 1.1 of middleclass.
In middleclass-extras:
- Also moved all specs to middleclass-specs
- middleclass isn't included any more inside middleclass-extras. Before you could do this:
Now you have to do this:
Code: Select all
require 'middleclass.init'
require 'middleclass-extras.init'
and download middleclass separatedly. I believe this is clearer and simpler.
middleclass-extras is still not 1.0, but it's pretty close. I'd say it is 0.9 right now. It'll be 1.0 when I'm able to integrate it with PÄSSION, which I have already started doing (lots of things to test and mend!)
Re: middleclass & middleclass-extras: OOP for LUA
Posted: Tue Nov 23, 2010 6:58 pm
by Robin
Uh oh, more changes that will mess up my projects…
BTW, cloning the whole thing (if you're referring to git-clone) will still need to download the specs, because they're still in the repository.
Re: middleclass & middleclass-extras: OOP for LUA
Posted: Tue Nov 23, 2010 7:19 pm
by TechnoCat
Robin wrote:Uh oh, more changes that will mess up my projects…
BTW, cloning the whole thing (if you're referring to git-clone) will still need to download the specs, because they're still in the repository.
clone the two child repositories.
Re: middleclass & middleclass-extras: OOP for LUA
Posted: Tue Nov 23, 2010 7:32 pm
by Robin
TechnoCat wrote:clone the two child repositories.
I'm not sure what you're referring to, but if you do a
git clone git://github.com/kikito/middleclass.git, you'll have to clone the complete history, including all removed files, because git is a distributed VCS. Not that the specs (or some things now in middle-class-extras, which is still there as well) are that large, of course.
Re: middleclass & middleclass-extras: OOP for LUA
Posted: Tue Nov 23, 2010 11:29 pm
by kikito
Robin wrote:Uh oh, more changes that will mess up my projects…
Well, yes. Sorry
Robin wrote:BTW, cloning the whole thing (if you're referring to git-clone) will still need to download the specs, because they're still in the repository.
Well said. I'm just going to assume that the git guys are very clever and store the old files as deltas compressed with magic unicorn blood so it isn't really a big deal.
In any case, rm -rf .git should solve that. But then you would not be able to do git pull to get the changes automatically. And that is so convenient.
And there's also the option of using the git download service.
I'll probably have to include all that on the README, won't I ? -__-
Re: middleclass & middleclass-extras: OOP for LUA
Posted: Wed Nov 24, 2010 6:11 pm
by thelinx