Ringobot log - RingoJS IRC channel: #ringojs on irc.freenode.net

2010-08-27:

[5:04] <tschaub> anyone have experience setting logging levels using ringo on appengine?
[7:24] <hannesw> uh, jsdoc app url regexps are kind of ugly
[7:24] <hannesw> http://github.com/ringo/ringojs/blob/master/apps/jsdoc/config.js#L17
[7:25] <hannesw> trying to figure out what that does...
[7:47] <oberhamsi> hannesw, uh uh might be too much back from when i had repos in url
[7:47] <oberhamsi> the first one is alright
[7:49] <oberhamsi> okay the second one is "correct" too
[7:52] <oberhamsi> i also have ringojs.org app webhook patch in pipeline
[7:53] <oberhamsi> that's already in my fork put untested b/c i ringojs.org doesn't start with ringo HEAD on my machine.. not sure.. will deal with it after noon
[12:31] <hannesw> hi oberhamsi
[12:31] <hannesw> did you get ringojs.org to run?
[12:32] <oberhamsi> hannesw, yes... didn't read README :|
[12:33] <hannesw> :)
[12:35] <hannesw> so do you think jsdoc webhooks are ready?
[12:36] <hannesw> I'll be on holiday next week, so today's my last working day for some time...
[12:40] <mcepl> hannesw: ping ... may I bother you once with the enforced https question ... https://groups.google.com/group/ringojs/msg/8b5439803e9e6962 ... did I get right or am I completely confused (which I expect)?
[12:41] <hannesw> mcepl sorry, was late with my reply yesterday
[12:41] <hannesw> to me this looks good
[12:41] <mcepl> awesome!
[12:41] <mcepl> (well, I had to leave yesterday ;))
[12:49] <oberhamsi> hannesw, i got it working now
[12:50] <oberhamsi> i committed small fixes to my forks
[12:50] <oberhamsi> we'd have ringojs.org/webhook/git and ringostarr could hook into that as well later.
[12:52] <hannesw> yep
[12:52] <hannesw> is that (require.paths.indexOf(module.directory) != -1) correct?
[12:52] <hannesw> http://github.com/oberhamsi/ringojs/commit/84da3d20356150cf1a0f0746765cab30bd736014
[12:52] <hannesw> shouldn't it be == -1?
[12:53] <oberhamsi> yes but thats fixed already http://github.com/oberhamsi/ringojs/compare/jsdoc-revamp
[12:54] <oberhamsi> oh i see .. == -1
[12:55] <hannesw> you could use contains() from ringo/utils/arrays
[12:56] <hannesw> so webhook is only for master, right?
[12:58] <oberhamsi> no i'd have to do more to get that
[12:59] <oberhamsi> do we care yet? maybe we won't do it with webhooks if the whole rendering is too expensive
[13:00] <hannesw> how do you get the new source from git?
[13:00] <hannesw> manually?
[13:01] <oberhamsi> oh i thought that is updatd by something else.. who/what does that now?
[13:03] <hannesw> nothing :)
[13:03] <hannesw> you have to do it manually
[13:04] <hannesw> well should be easy via subprocess
[13:07] <oberhamsi> can do :)
[13:42] <oberhamsi> hannesw, okay now webhook can update git repo and only activates for master commits
[13:43] <hannesw> oberhamsi cool!
[13:44] <hannesw> hm, i guess ringo/subprocess lacks a way to specify the working directory...
[13:44] <oberhamsi> what's the timeout for ringo responses? :)
[13:45] <hannesw> don't know, should be long enough
[13:45] <oberhamsi> okay
[13:46] <oberhamsi> wanna deploy it on ringojs or stuff to do?
[13:49] <oberhamsi> changes to ringojs.org are less then what i expected
[14:14] <hannesw> cool, let's try
[14:14] <hannesw> are paths set up correctly?
[14:15] <hannesw> going to merge your ringojs changes first
[14:19] <hannesw> done
[14:27] <oberhamsi> paths.. i don't have access to the server you'd have to fix those
[14:28] <hannesw> question: why exactly do you need apps/jsdoc on the module path?
[14:28] <oberhamsi> for <% extend %> to work
[14:29] <oberhamsi> i couldn't get that to work without.. it would not find the skin to extend from
[14:31] <hannesw> hm, ok. might work with absolute paths
[15:32] <hannesw> this is weird
[15:33] <hannesw> oberhamsi when i try to merge your ringojs.org jsdoc-revamp branch, git tries to merge from ringojs, not ringojs.org repository
[15:35] <hannesw> must be some _major_ git or github bug
[15:37] <oberhamsi> hannesw, i don't know what that jsdoc-revamp branch is doing there
[15:37] <hannesw> arghh...
[15:38] <oberhamsi> i must have done something stupid
[15:38] <hannesw> so the jsdoc-revamp branch _is_ ringojs!
[15:38] <hannesw> :)
[15:38] <oberhamsi> haha great. i'll delete it
[15:38] <hannesw> ok, phew.
[15:38] <oberhamsi> sorry about that
[15:39] <hannesw> how did you test the webhook?
[15:40] <oberhamsi> i ran ringojs.org app and called it.. what do you mean?
[15:40] <hannesw> ok
[15:41] <hannesw> ok so if /api is fully static, we need some kind of overview page there, right?
[15:41] <oberhamsi> not necessarely.. wiki/Documentation links to the versions. and /api/ would still list them though a bit ugly, but not linked
[15:41] <hannesw> and we need to render the legacy api docs offline
[15:42] <hannesw> ok
[15:42] <oberhamsi> you could render them on server once.. checkouts should be there, or does it really have that little memory?
[15:43] <hannesw> it should be ok
[15:48] <hannesw> one question about pullDirectory: '/home/simon/ringojs/.git/
[15:48] <hannesw> why is that the .git directory?
[15:48] <hannesw> shouldn't it be just /home/simon/ringojs/?
[15:49] <oberhamsi> let me try i don't think so
[15:50] <oberhamsi> no must be .git directory
[15:50] <hannesw> it's the .git dir of the repository where you pull your changes?
[15:51] <oberhamsi> yes the ringojs repository which gets pulled for jsdoc
[15:51] <hannesw> ok, adapting the paths now to what we have on ringojs.org
[15:52] <oberhamsi> cool
[15:52] <hannesw> I'm trying to keep the current structure, which is all in /usr/local/ringojs.org/
[15:52] <oberhamsi> okay
[15:55] <oberhamsi> i did /usr/local/htdocs/api because i thought it's nicer to render the docs into directory outside of ringojs.org checkout
[16:02] <hannesw> oberhamsi i agree
[16:10] <hannesw> ok, going to take ringojs.org down for update...
[16:19] * earl goes looking for ringostarr (again)
[16:34] <ringostarr> bb32836 Hannes Walln?fer: Don't exclude test module from jsdoc (obsolete)
[16:41] <hannesw> ok, everything looks ok
[16:42] <hannesw> thanks for the good work oberhamsi!
[16:42] <hannesw> curious as to whether documentation updates via git webhooks will work :)
[16:42] <oberhamsi> no problem
[16:42] <oberhamsi> yes me too :)
[16:42] <hannesw> one problem is jsdoc fails if target dir is not empty
[16:43] <oberhamsi> okay that is not a problem for webhook renderer
[16:43] <oberhamsi> only if you call ringo-doc
[16:43] <hannesw> ok
[16:44] <oberhamsi> maybe we'll find a way to make it use ringojs.org's skins/base.html
[16:44] <oberhamsi> not sure yet how to do that cleanly
[16:44] <hannesw> yes, i mentioned that above
[16:44] <hannesw> would be nice
[16:48] <oberhamsi> there's a "Test Hook" button https://github.com/ringo/ringojs/edit if you dare
[16:52] <hannesw> just re-rendered api with proper --name
[16:53] <ringostarr> 84da3d2 Simon Oberhammer: fix jsdoc messing with require.paths
[16:53] <ringostarr> 8bba32e Simon Oberhammer: fix again require.paths jsdoc
[16:53] <ringostarr> bb32836 Hannes Walln?fer: Don't exclude test module from jsdoc (obsolete)
[16:53] <hannesw> just tested :)
[16:54] <hannesw> log file says:
[16:54] <hannesw> Error: (1) error: cannot open /usr/local/ringojs.org/vendor/docs-master/.git/FETCH_HEAD: Permission denied
[16:54] <hannesw> ok. enough for today :)
[16:55] <oberhamsi> :) would have been too easy
[16:55] <hannesw> ok, repo must be writable by user ringojs
[16:56] <hannesw> trying again...
[16:56] <ringostarr> 84da3d2 Simon Oberhammer: fix jsdoc messing with require.paths
[16:56] <ringostarr> 8bba32e Simon Oberhammer: fix again require.paths jsdoc
[16:56] <ringostarr> bb32836 Hannes Walln?fer: Don't exclude test module from jsdoc (obsolete)
[16:57] <hannesw> ok, second permission problem, now in target direcrtory
[16:57] <hannesw> we're getting somewhere :)
[16:57] <oberhamsi> hehe
[16:57] <ringostarr> 84da3d2 Simon Oberhammer: fix jsdoc messing with require.paths
[16:57] <ringostarr> 8bba32e Simon Oberhammer: fix again require.paths jsdoc
[16:57] <ringostarr> bb32836 Hannes Walln?fer: Don't exclude test module from jsdoc (obsolete)
[16:58] <hannesw> this time no error message in log file, so it seems to have worked :)
[16:58] <oberhamsi> cool
[16:58] <oberhamsi> did that trigger 3 times the pull & render
[16:59] <hannesw> he.. cool, seems to have worked!
[16:59] <oberhamsi> probably easy to DOS us now with this not-so-secret url..
[16:59] <oberhamsi> sweet!
[16:59] <hannesw> high five!
[16:59] * oberhamsi fives
[17:00] <hannesw> hey! check this out - master api now automatically has proper ringojs.org skin!
[17:00] <hannesw> http://ringojs.org/api/master/
[17:01] <hannesw> but filter box is missing...
[17:02] <oberhamsi> sweet
[17:02] <oberhamsi> oh well the filter box was setup in base.html's <script>
[17:03] <hannesw> afk
[17:05] <oberhamsi> i'll have to add something to jsdoc that makes the skin customizable.. i needed that before and just hacked skins in jsdoc app
[17:06] <oberhamsi> i say: either leave it like it is - not broken but small stuff missing - or bluntly paste header div into jsdoc base.html for now
[18:06] <hannesw> oberhamsi you once experimented with OAuth in ringo, is that right?