From phil at produxion.net Fri Nov 26 14:01:38 2004 From: phil at produxion.net (Phil Powell) Date: Fri, 26 Nov 2004 14:01:38 +0000 Subject: [as2api-dev] Test message Message-ID: This is a test message! Phil From phil at produxion.net Fri Nov 26 14:01:38 2004 From: phil at produxion.net (Phil Powell) Date: Fri, 26 Nov 2004 14:01:38 +0000 Subject: [as2api-dev] Test message Message-ID: This is a test message! Phil _______________________________________________ as2api-dev mailing list as2api-dev@lists.badgers-in-foil.co.uk http://lists.badgers-in-foil.co.uk/mailman/listinfo/as2api-dev From dave at badgers-in-foil.co.uk Fri Nov 26 15:03:03 2004 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Fri, 26 Nov 2004 15:03:03 +0000 Subject: [as2api-dev] Test message In-Reply-To: References: Message-ID: <20041126150303.GC22452@vhost.badgers-in-foil.co.uk> On Fri, Nov 26, 2004 at 02:01:38PM +0000, Phil Powell wrote: > This is a test message! Take *that* you damned dirty list-archiver! http://lists.badgers-in-foil.co.uk/pipermail/as2api-dev/2004-November/000001.html {{SPRANG}} dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Fri Nov 26 15:55:35 2004 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Fri, 26 Nov 2004 15:55:35 +0000 Subject: [as2api-dev] Navigation Frameset Message-ID: <20041126155534.GD22452@vhost.badgers-in-foil.co.uk> I've just committed revison 36, which generates navigation frameset files. You can now enter the documentation via 'overview-summary.html' or 'frameset.html'. dave -- http://david.holroyd.me.uk/ From phil at produxion.net Fri Nov 26 16:04:49 2004 From: phil at produxion.net (Phil Powell) Date: Fri, 26 Nov 2004 16:04:49 +0000 Subject: [as2api-dev] CSS include Message-ID: One thing I was thinking about earlier: Does the .css file still have to be copied across by hand? Or have you changed this in a recent revision to be copied over automatically? I guess passing in an argument to point to a style sheet would be a useful addition, with the default used if none is selected. What do you think? From dave at badgers-in-foil.co.uk Fri Nov 26 17:13:04 2004 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Fri, 26 Nov 2004 17:13:04 +0000 Subject: [as2api-dev] CSS include In-Reply-To: References: Message-ID: <20041126171304.GF22452@vhost.badgers-in-foil.co.uk> On Fri, Nov 26, 2004 at 04:04:49PM +0000, Phil Powell wrote: > One thing I was thinking about earlier: > > Does the .css file still have to be copied across by hand? Or have you > changed this in a recent revision to be copied over automatically? Not changed it yet. > I guess passing in an argument to point to a style sheet would be a > useful addition, with the default used if none is selected. The way I've made this work before for other generated HTML is, - Generate brand-new HTML -> copy in default CSS - Generate over existing HTML -> never overwite CSS if it exists This has a nice simplicity -- there's no need for an extra program parameter. It also means that if someone makes experimental changes to the default CSS 'in place', they won't loose those changes by accident when they regenerate the API doc with the same command-line (or whatever). A comment at the top of the provided CSS to the effect that 'this file will not be overwritten' should give users confidence to play with the styling. Do you think that would be good enough? dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Fri Nov 26 17:24:11 2004 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Fri, 26 Nov 2004 17:24:11 +0000 Subject: [as2api-dev] Inherited fields and methods Message-ID: <20041126172410.GG22452@vhost.badgers-in-foil.co.uk> Another quick change to the HTML; revision 38 enhances the method index and field index sections. These now additionally contain lists of the methods and fields inherited from each superclass or superinterface. This provides a fuller picture of what you can do with a particular kind of object, without also having to visit each supertype's page. dave -- http://david.holroyd.me.uk/ From phil at produxion.net Fri Nov 26 17:36:29 2004 From: phil at produxion.net (Phil Powell) Date: Fri, 26 Nov 2004 17:36:29 +0000 Subject: [as2api-dev] RybtCocoa revision Message-ID: I'm in the process of porting the recently factored files into the OS X GUI (it's Friday afternoon, and I'm trying to avoid any "proper" work), but experiencing a problem which seems to point to this line in api_loader.rb: ActionScript::Parse::ASToken.module_eval("attr_accessor :last_comment") The full error the compiler is throwing looks like this: /Users/philp/as2api/build/as2api.app/Contents/Resources/api_loader.rb: 5: uninitialized constant ActionScript (NameError) from /Users/philp/as2api/build/as2api.app/Contents/Resources/rb_main.rb:15: in `require' from /Users/philp/as2api/build/as2api.app/Contents/Resources/rb_main.rb:15: in `rb_main_init' from /Users/philp/as2api/build/as2api.app/Contents/Resources/rb_main.rb:14: in `each' from /Users/philp/as2api/build/as2api.app/Contents/Resources/rb_main.rb:14: in `rb_main_init' from /Users/philp/as2api/build/as2api.app/Contents/Resources/rb_main.rb:20 I remember we experienced problems with 1.6 compatibility, which is the reason this line was added, but I'm a little confused now as to why it ought to be causing problems now that it lives in this new file. rb_main.rb is automatically generated by XCode to run the app, and that's what seems to be choking when it's trying to do a sanity check of the rb scripts on startup. Any ideas? PHil From dave at badgers-in-foil.co.uk Fri Nov 26 17:51:07 2004 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Fri, 26 Nov 2004 17:51:07 +0000 Subject: [as2api-dev] RybtCocoa revision In-Reply-To: References: Message-ID: <20041126175106.GA26845@vhost.badgers-in-foil.co.uk> On Fri, Nov 26, 2004 at 05:36:29PM +0000, Phil Powell wrote: > The full error the compiler is throwing looks like this: > > /Users/philp/as2api/build/as2api.app/Contents/Resources/api_loader.rb: > 5: uninitialized constant ActionScript (NameError) [...] > > I remember we experienced problems with 1.6 compatibility, which is the > reason this line was added, but I'm a little confused now as to why it > ought to be causing problems now that it lives in this new file. Probably down to the 'require' directives no longer being in the proper places after I refactored stuff. It still 'happens' to work for the command-line version because it's got all the require's at the top of that file. Some of them should actaully be in other files. I'll just have a look... dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Fri Nov 26 17:59:53 2004 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Fri, 26 Nov 2004 17:59:53 +0000 Subject: [as2api-dev] RybtCocoa revision In-Reply-To: <20041126175106.GA26845@vhost.badgers-in-foil.co.uk> References: <20041126175106.GA26845@vhost.badgers-in-foil.co.uk> Message-ID: <20041126175952.GB26845@vhost.badgers-in-foil.co.uk> On Fri, Nov 26, 2004 at 05:51:07PM +0000, David Holroyd wrote: > On Fri, Nov 26, 2004 at 05:36:29PM +0000, Phil Powell wrote: > > The full error the compiler is throwing looks like this: > > > > /Users/philp/as2api/build/as2api.app/Contents/Resources/api_loader.rb: > > 5: uninitialized constant ActionScript (NameError) > Probably down to the 'require' directives no longer being in the proper > places after I refactored stuff. [...] Ok, try again, with revision 39. dave -- http://david.holroyd.me.uk/ From phil at produxion.net Fri Nov 26 18:00:43 2004 From: phil at produxion.net (Phil Powell) Date: Fri, 26 Nov 2004 18:00:43 +0000 Subject: [as2api-dev] RybtCocoa revision In-Reply-To: <20041126175106.GA26845@vhost.badgers-in-foil.co.uk> References: <20041126175106.GA26845@vhost.badgers-in-foil.co.uk> Message-ID: <16FA05DC-3FD5-11D9-A021-000A95871B9A@produxion.net> Yep, think I've traced it to that too, but baffled right now as to the fix - I tried adding extra require lines to the top of that file, but no joy - going to poke around some more... On 26 Nov 2004, at 5:51 pm, David Holroyd wrote: > On Fri, Nov 26, 2004 at 05:36:29PM +0000, Phil Powell wrote: >> The full error the compiler is throwing looks like this: >> >> /Users/philp/as2api/build/as2api.app/Contents/Resources/api_loader.rb: >> 5: uninitialized constant ActionScript (NameError) > [...] >> >> I remember we experienced problems with 1.6 compatibility, which is >> the >> reason this line was added, but I'm a little confused now as to why it >> ought to be causing problems now that it lives in this new file. > > Probably down to the 'require' directives no longer being in the proper > places after I refactored stuff. It still 'happens' to work for > the command-line version because it's got all the require's at the top > of that file. Some of them should actaully be in other files. > > I'll just have a look... > > > dave > > -- > http://david.holroyd.me.uk/ > > _______________________________________________ > as2api-dev mailing list > as2api-dev@lists.badgers-in-foil.co.uk > http://lists.badgers-in-foil.co.uk/mailman/listinfo/as2api-dev > > From dave at badgers-in-foil.co.uk Fri Nov 26 18:19:15 2004 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Fri, 26 Nov 2004 18:19:15 +0000 Subject: [as2api-dev] RybtCocoa revision In-Reply-To: <02F144B8-3FD7-11D9-A021-000A95871B9A@produxion.net> References: <20041126175106.GA26845@vhost.badgers-in-foil.co.uk> <20041126175952.GB26845@vhost.badgers-in-foil.co.uk> <02F144B8-3FD7-11D9-A021-000A95871B9A@produxion.net> Message-ID: <20041126181914.GC26845@vhost.badgers-in-foil.co.uk> On Fri, Nov 26, 2004 at 06:14:28PM +0000, Phil Powell wrote: > Ouch! > > subversion/libsvn_fs/bdb/bdb-err.c:61: (apr_err=160029) > svn: Berkeley DB error while opening environment for filesystem > /var/lib/svn/as2api/db: > DB_RUNRECOVERY: Fatal error, run database recovery > > Looks like your DB might have just been fried! It did that yesterday too. No idea why. Anyway, dave@vhost:~$ svnadmin recover /var/lib/svn/as2api Please wait; recovering the repository may take some time... Recovery completed. The latest repos revision is 39. (It didn't take 'some time'.) Try again (again (again)). dave -- http://david.holroyd.me.uk/ From phil at produxion.net Fri Nov 26 18:59:51 2004 From: phil at produxion.net (Phil Powell) Date: Fri, 26 Nov 2004 18:59:51 +0000 Subject: [as2api-dev] RybtCocoa revision In-Reply-To: <20041126181914.GC26845@vhost.badgers-in-foil.co.uk> References: <20041126175106.GA26845@vhost.badgers-in-foil.co.uk> <20041126175952.GB26845@vhost.badgers-in-foil.co.uk> <02F144B8-3FD7-11D9-A021-000A95871B9A@produxion.net> <20041126181914.GC26845@vhost.badgers-in-foil.co.uk> Message-ID: <59E1FAF6-3FDD-11D9-A021-000A95871B9A@produxion.net> Deja-vu: subversion/libsvn_fs/bdb/bdb-err.c:61: (apr_err=160029) svn: Berkeley DB error while opening environment for filesystem /var/lib/svn/as2api/db: Permission denied On 26 Nov 2004, at 6:19 pm, David Holroyd wrote: > On Fri, Nov 26, 2004 at 06:14:28PM +0000, Phil Powell wrote: >> Ouch! >> >> subversion/libsvn_fs/bdb/bdb-err.c:61: (apr_err=160029) >> svn: Berkeley DB error while opening environment for filesystem >> /var/lib/svn/as2api/db: >> DB_RUNRECOVERY: Fatal error, run database recovery >> >> Looks like your DB might have just been fried! > > It did that yesterday too. No idea why. Anyway, > > dave@vhost:~$ svnadmin recover /var/lib/svn/as2api > Please wait; recovering the repository may take some time... > > Recovery completed. > The latest repos revision is 39. > > (It didn't take 'some time'.) Try again (again (again)). > > > dave > > -- > http://david.holroyd.me.uk/ > > _______________________________________________ > as2api-dev mailing list > as2api-dev@lists.badgers-in-foil.co.uk > http://lists.badgers-in-foil.co.uk/mailman/listinfo/as2api-dev > > -- Phil Powell Produxion - http://www.produxion.net Part of the 334 Group - http://www.334group.com From phil at produxion.net Fri Nov 26 19:21:10 2004 From: phil at produxion.net (Phil Powell) Date: Fri, 26 Nov 2004 19:21:10 +0000 Subject: [as2api-dev] RybtCocoa revision In-Reply-To: <20041126190841.GD26845@vhost.badgers-in-foil.co.uk> References: <20041126175106.GA26845@vhost.badgers-in-foil.co.uk> <20041126175952.GB26845@vhost.badgers-in-foil.co.uk> <02F144B8-3FD7-11D9-A021-000A95871B9A@produxion.net> <20041126181914.GC26845@vhost.badgers-in-foil.co.uk> <59E1FAF6-3FDD-11D9-A021-000A95871B9A@produxion.net> <20041126190841.GD26845@vhost.badgers-in-foil.co.uk> Message-ID: <549EEE72-3FE0-11D9-A021-000A95871B9A@produxion.net> That appears to have dislodged the problem - great! Have got the new revisions compiling, just got to sort out some indiscrepancies in my Controller code and it ought to run fine... On 26 Nov 2004, at 7:08 pm, David Holroyd wrote: > On Fri, Nov 26, 2004 at 06:59:51PM +0000, Phil Powell wrote: >> Deja-vu: >> >> subversion/libsvn_fs/bdb/bdb-err.c:61: (apr_err=160029) >> svn: Berkeley DB error while opening environment for filesystem >> /var/lib/svn/as2api/db: >> Permission denied > > Ah, different error this time -- blomin' crappy 'svnadmin recover' > recreates the database files with different permissions. I've made > them > group-writable again, so maybe now it won't complain at you. > > > dave > > -- > http://david.holroyd.me.uk/ > > From phil at produxion.net Fri Nov 26 19:28:59 2004 From: phil at produxion.net (Phil Powell) Date: Fri, 26 Nov 2004 19:28:59 +0000 Subject: [as2api-dev] RybtCocoa revision In-Reply-To: <549EEE72-3FE0-11D9-A021-000A95871B9A@produxion.net> References: <20041126175106.GA26845@vhost.badgers-in-foil.co.uk> <20041126175952.GB26845@vhost.badgers-in-foil.co.uk> <02F144B8-3FD7-11D9-A021-000A95871B9A@produxion.net> <20041126181914.GC26845@vhost.badgers-in-foil.co.uk> <59E1FAF6-3FDD-11D9-A021-000A95871B9A@produxion.net> <20041126190841.GD26845@vhost.badgers-in-foil.co.uk> <549EEE72-3FE0-11D9-A021-000A95871B9A@produxion.net> Message-ID: <6C1D627E-3FE1-11D9-A021-000A95871B9A@produxion.net> Have some oddness going on now with the GlobalTypeAgregator class not being recognised properly - going to take a fresh look tomorrow.... On 26 Nov 2004, at 7:21 pm, Phil Powell wrote: > That appears to have dislodged the problem - great! > > Have got the new revisions compiling, just got to sort out some > indiscrepancies in my Controller code and it ought to run fine... > > On 26 Nov 2004, at 7:08 pm, David Holroyd wrote: > >> On Fri, Nov 26, 2004 at 06:59:51PM +0000, Phil Powell wrote: >>> Deja-vu: >>> >>> subversion/libsvn_fs/bdb/bdb-err.c:61: (apr_err=160029) >>> svn: Berkeley DB error while opening environment for filesystem >>> /var/lib/svn/as2api/db: >>> Permission denied >> >> Ah, different error this time -- blomin' crappy 'svnadmin recover' >> recreates the database files with different permissions. I've made >> them >> group-writable again, so maybe now it won't complain at you. >> >> >> dave >> >> -- >> http://david.holroyd.me.uk/ >> >> > > > _______________________________________________ > as2api-dev mailing list > as2api-dev@lists.badgers-in-foil.co.uk > http://lists.badgers-in-foil.co.uk/mailman/listinfo/as2api-dev > > -- Phil Powell Produxion - http://www.produxion.net Part of the 334 Group - http://www.334group.com From dave at badgers-in-foil.co.uk Sat Nov 27 04:27:49 2004 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Sat, 27 Nov 2004 04:27:49 +0000 Subject: [as2api-dev] Tonight's changes Message-ID: <20041127042749.GE26845@vhost.badgers-in-foil.co.uk> * Treat constructors differently to other functions * Allow a type to reference its own, unqualified name without importing it * Fix known cases of parse errors caused by missing semicolons * Ignore #include directives, rather than giving parse errors (just a quick hack) As a result of the last two, all the classes included with Flash can be parsed without failure, with the proviso that many of these appear to reference classes that don't seem to exist (e.g. 'mx/data/types/Obj.as:1: Found no definition of type known locally as "mx.data.binding.DataType"') To celebrate, I've uploaded the resulting documentation as an example: http://www.badgers-in-foil.co.uk/projects/as2api/examples/flash_mx_2004/frameset.html Time for sleep... dave -- http://david.holroyd.me.uk/ From phil at produxion.net Sat Nov 27 13:40:12 2004 From: phil at produxion.net (Phil Powell) Date: Sat, 27 Nov 2004 13:40:12 +0000 Subject: [as2api-dev] RybtCocoa revision In-Reply-To: <6C1D627E-3FE1-11D9-A021-000A95871B9A@produxion.net> References: <20041126175106.GA26845@vhost.badgers-in-foil.co.uk> <20041126175952.GB26845@vhost.badgers-in-foil.co.uk> <02F144B8-3FD7-11D9-A021-000A95871B9A@produxion.net> <20041126181914.GC26845@vhost.badgers-in-foil.co.uk> <59E1FAF6-3FDD-11D9-A021-000A95871B9A@produxion.net> <20041126190841.GD26845@vhost.badgers-in-foil.co.uk> <549EEE72-3FE0-11D9-A021-000A95871B9A@produxion.net> <6C1D627E-3FE1-11D9-A021-000A95871B9A@produxion.net> Message-ID: Ahh... GlobalTypeAggregator was spelled 'GlobalTypeAgregator' Darn typos... On 26 Nov 2004, at 7:28 pm, Phil Powell wrote: > Have some oddness going on now with the GlobalTypeAgregator class not > being recognised properly - going to take a fresh look tomorrow.... > > On 26 Nov 2004, at 7:21 pm, Phil Powell wrote: > >> That appears to have dislodged the problem - great! >> >> Have got the new revisions compiling, just got to sort out some >> indiscrepancies in my Controller code and it ought to run fine... >> >> On 26 Nov 2004, at 7:08 pm, David Holroyd wrote: >> >>> On Fri, Nov 26, 2004 at 06:59:51PM +0000, Phil Powell wrote: >>>> Deja-vu: >>>> >>>> subversion/libsvn_fs/bdb/bdb-err.c:61: (apr_err=160029) >>>> svn: Berkeley DB error while opening environment for filesystem >>>> /var/lib/svn/as2api/db: >>>> Permission denied >>> >>> Ah, different error this time -- blomin' crappy 'svnadmin recover' >>> recreates the database files with different permissions. I've made >>> them >>> group-writable again, so maybe now it won't complain at you. >>> >>> >>> dave >>> >>> -- >>> http://david.holroyd.me.uk/ >>> >>> >> >> >> _______________________________________________ >> as2api-dev mailing list >> as2api-dev@lists.badgers-in-foil.co.uk >> http://lists.badgers-in-foil.co.uk/mailman/listinfo/as2api-dev >> >> > -- > Phil Powell > Produxion - http://www.produxion.net > Part of the 334 Group - http://www.334group.com > > > _______________________________________________ > as2api-dev mailing list > as2api-dev@lists.badgers-in-foil.co.uk > http://lists.badgers-in-foil.co.uk/mailman/listinfo/as2api-dev > > -- Phil Powell Produxion - http://www.produxion.net Part of the 334 Group - http://www.334group.com From phil at produxion.net Sat Nov 27 14:12:12 2004 From: phil at produxion.net (Phil Powell) Date: Sat, 27 Nov 2004 14:12:12 +0000 Subject: [as2api-dev] Absolute output paths Message-ID: <5526C1D4-407E-11D9-BB97-000A95871B9A@produxion.net> Would appear that the document_types call does not like an absolute path as it's first argument. If I pass in something like: document_types("/foo/bar", @type_agregator) I get this error: /Users/philp/as2api/build/as2api.app/Contents/Resources/html_output.rb: 213:in `mkdir': No such file or directory - "" (Errno::ENOENT) from /Users/philp/as2api/build/as2api.app/Contents/Resources/html_output.rb: 213:in `in_subdir' from /Users/philp/as2api/build/as2api.app/Contents/Resources/html_output.rb: 205:in `each' from /Users/philp/as2api/build/as2api.app/Contents/Resources/html_output.rb: 205:in `in_subdir' from /Users/philp/as2api/build/as2api.app/Contents/Resources/html_output.rb: 703:in `document_types' from /Users/philp/as2api/build/as2api.app/Contents/Resources/Controller.rb: 50:in `createDocs' from /Users/philp/as2api/build/as2api.app/Contents/Resources/rb_main.rb:21: in `NSApplicationMain' from /Users/philp/as2api/build/as2api.app/Contents/Resources/rb_main.rb:21 from /Users/philp/as2api/build/as2api.app/Contents/Resources/rb_main.rb:15: in `require' from /Users/philp/as2api/build/as2api.app/Contents/Resources/rb_main.rb:15: in `rb_main_init' from /Users/philp/as2api/build/as2api.app/Contents/Resources/rb_main.rb:14: in `each' from /Users/philp/as2api/build/as2api.app/Contents/Resources/rb_main.rb:14: in `rb_main_init' from /Users/philp/as2api/build/as2api.app/Contents/Resources/rb_main.rb:20 However, if I pass a relative path, output files get generated fine, but as a subdirectory within my executable's folder - which isn't very nice ;) Could it be down to html_output:718 in_subdir(type.package_name.gsub(/\./, "/")) do I *really* need to get up to speed with these Ruby methods and syntax! From dave at badgers-in-foil.co.uk Sun Nov 28 13:18:03 2004 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Sun, 28 Nov 2004 13:18:03 +0000 Subject: [as2api-dev] RybtCocoa revision In-Reply-To: References: <20041126175106.GA26845@vhost.badgers-in-foil.co.uk> <20041126175952.GB26845@vhost.badgers-in-foil.co.uk> <02F144B8-3FD7-11D9-A021-000A95871B9A@produxion.net> <20041126181914.GC26845@vhost.badgers-in-foil.co.uk> <59E1FAF6-3FDD-11D9-A021-000A95871B9A@produxion.net> <20041126190841.GD26845@vhost.badgers-in-foil.co.uk> <549EEE72-3FE0-11D9-A021-000A95871B9A@produxion.net> <6C1D627E-3FE1-11D9-A021-000A95871B9A@produxion.net> Message-ID: <20041128131803.GA30851@vhost.badgers-in-foil.co.uk> On Sat, Nov 27, 2004 at 01:40:12PM +0000, Phil Powell wrote: > Ahh... GlobalTypeAggregator was spelled 'GlobalTypeAgregator' I am a solidified mass of spelling mistakes. A sort of 'aggregation' of them. dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Sun Nov 28 13:58:01 2004 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Sun, 28 Nov 2004 13:58:01 +0000 Subject: [as2api-dev] Absolute output paths In-Reply-To: <5526C1D4-407E-11D9-BB97-000A95871B9A@produxion.net> References: <5526C1D4-407E-11D9-BB97-000A95871B9A@produxion.net> Message-ID: <20041128135801.GB30851@vhost.badgers-in-foil.co.uk> On Sat, Nov 27, 2004 at 02:12:12PM +0000, Phil Powell wrote: > Would appear that the document_types call does not like an absolute > path as it's first argument. > > If I pass in something like: > > document_types("/foo/bar", @type_agregator) > > I get this error: > > /Users/philp/as2api/build/as2api.app/Contents/Resources/html_output.rb: > 213:in `mkdir': No such file or directory - "" (Errno::ENOENT) The problem is that the definition of in_subdir() has, on line 204: path = path.split(File::SEPARATOR) Lets try out some possible path values: irb(main):003:0> "apidoc".split("/") => ["apidoc"] irb(main):001:0> "foo/bar".split("/") => ["foo", "bar"] irb(main):002:0> "/foo/bar".split("/") => ["", "foo", "bar"] The problem is that we were looking at each component of that path to see if it existed, and then trying to create it if it didn't. mkdir("") then gives the error you've seen error. The following patch fixes that, Index: html_output.rb =================================================================== --- html_output.rb (revision 47) +++ html_output.rb (working copy) @@ -202,6 +202,10 @@ save_path = $path save_base_path = $base_path.dup path = path.split(File::SEPARATOR) + if path.first == "" + path.shift + $path = "/" + end path.each do |part| if $path == "" $path = part > I *really* need to get up to speed with these Ruby methods and syntax! The string-splitting examples were made using 'irb' -- Interactive Ruby. This should come as standard with your Ruby installation, but I think that getting 'readline' support to work might be tricky on OSX. On my system, I can say: irb1.8 --readline -r irb/completion and this will get me an interactive prompt for entering ruby expressions that's capable of bash-like auto-completion of method names. Want to know the names of Array methods starting with 'c'?... irb(main):001:0> foo = ["bar"] => ["bar"] irb(main):002:0> foo.c foo.class foo.clone foo.collect! foo.compact! foo.clear foo.collect foo.compact foo.concat irb(main):002:0> foo.c Cool, eh? dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Mon Nov 29 01:36:37 2004 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Mon, 29 Nov 2004 01:36:37 +0000 Subject: [as2api-dev] [ANN] as2api 0.2 Message-ID: <20041129013636.GA8050@vhost.badgers-in-foil.co.uk> I just posted the 0.2 release: http://www.badgers-in-foil.co.uk/projects/as2api/ dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Tue Nov 30 02:05:48 2004 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Tue, 30 Nov 2004 02:05:48 +0000 Subject: [as2api-dev] CSS hax Message-ID: <20041130020548.GA28263@vhost.badgers-in-foil.co.uk> I've just committed a CSS-class hook for one of the style changes I was considering. Update to the latest html_output.rb, and change your style.css to have these rules: .method_details, .field_details { padding: .5em; } .alt_row { background-color: #eeeeee; } This removes the ruled lines between methods, and instead changes the background colour of alternate method definitions. I think it much less cluttered -- do you like it? (Also, 'h1, h2, h3 { font-family: sans-serif; }' makes a big difference.) dave -- http://david.holroyd.me.uk/ From phil at produxion.net Tue Nov 30 12:50:42 2004 From: phil at produxion.net (Phil Powell) Date: Tue, 30 Nov 2004 12:50:42 +0000 Subject: [as2api-dev] CSS hax In-Reply-To: <20041130020548.GA28263@vhost.badgers-in-foil.co.uk> References: <20041130020548.GA28263@vhost.badgers-in-foil.co.uk> Message-ID: <71F85CB4-42CE-11D9-B475-000A95871B9A@produxion.net> Great - I will do an update in a short while. I'm about to take a peek at this Ruby framework on Mac - try to delve a little more into whether it gets included in the app... hopefully have a release before the morning. (After I've resolved the problem of my Tomcat server not working properly...) On 30 Nov 2004, at 2:05 am, David Holroyd wrote: > I've just committed a CSS-class hook for one of the style changes I was > considering. Update to the latest html_output.rb, and change your > style.css to have these rules: > > .method_details, .field_details { > padding: .5em; > } > .alt_row { > background-color: #eeeeee; > } > > This removes the ruled lines between methods, and instead changes the > background colour of alternate method definitions. I think it much > less > cluttered -- do you like it? > > (Also, 'h1, h2, h3 { font-family: sans-serif; }' makes a big > difference.) > > > dave > > -- > http://david.holroyd.me.uk/ > > _______________________________________________ > as2api-dev mailing list > as2api-dev@lists.badgers-in-foil.co.uk > http://lists.badgers-in-foil.co.uk/mailman/listinfo/as2api-dev > > From phil at produxion.net Tue Nov 30 14:08:36 2004 From: phil at produxion.net (Phil Powell) Date: Tue, 30 Nov 2004 14:08:36 +0000 Subject: [as2api-dev] RubyCocoa bootstrapping Message-ID: <53C7EFBE-42D9-11D9-B475-000A95871B9A@produxion.net> OK - I've taken a look at the problems with OSX not playing ball with the as2api.app Is definitely the case that the Ruby has to be installed for it to work at the moment. RubyCocoa is a GUI "connector", rather than an all-in framework. I've taken a look at http://rubygarden.com/ruby?BundleRubyExecutableInMacOSX and have found this: 2003-07-25 FUJIMOTO Hisakuni * framework/RubyCocoa.pbproj/project.pbxproj.in: for bundling within an application bundle, set INSTALL_PATH to "@executable_path/../Frameworks". suggested by Rod Schmidt. In the RubyCocoa changelog. I'm playing around with these techniques - but they're a bit vague, and difficult to test (since my machine *does* have Ruby installed). The bootstrapping is proving tricky. Will get there in the end though.