From t.fernagut at h0m3.be Mon Mar 5 12:39:44 2007 From: t.fernagut at h0m3.be (Thibaut Fernagut) Date: Mon, 05 Mar 2007 18:39:44 +0100 Subject: ruby 1.8.6 Message-ID: <45EC55E0.1030903@h0m3.be> Is hobix 0.5 known to work with ruby 1.8.6 ? I tried with 1.8.5 but no luck Thx ! From mental at rydia.net Tue Mar 6 09:14:53 2007 From: mental at rydia.net (MenTaLguY) Date: Tue, 06 Mar 2007 09:14:53 -0500 Subject: ! skeletons take paths Message-ID: <1173190493.20717.5.camel@localhost.localdomain> == the deal Hi kids, I think I've finally nailed down the Page path problems in SVN trunk. Now, the Page constructor takes two arguments (the second optional): - the entry path (maybe relative) - the section path it lives in (which the entry path is relative to) The value of the prev and next attributes are also interpreted relative to the section path. If no section path is given, then all the paths are assumed to be blog-absolute. == the implications Any of your customizations which define skel_* methods need to take an extra argument with the section path. -mental -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20070306/fd320d80/attachment-0001.bin From mental at rydia.net Tue Mar 6 09:15:47 2007 From: mental at rydia.net (MenTaLguY) Date: Tue, 06 Mar 2007 09:15:47 -0500 Subject: ruby 1.8.6 In-Reply-To: <45EC55E0.1030903@h0m3.be> References: <45EC55E0.1030903@h0m3.be> Message-ID: <1173190547.20717.7.camel@localhost.localdomain> On Mon, 2007-03-05 at 18:39 +0100, Thibaut Fernagut wrote: > Is hobix 0.5 known to work with ruby 1.8.6 ? > > I tried with 1.8.5 but no luck It is thought to work with 1.8.5. Could you be more specific about the problem you're having? -mental -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20070306/e427eca0/attachment.bin From t.fernagut at h0m3.be Tue Mar 6 14:02:05 2007 From: t.fernagut at h0m3.be (Thibaut Fernagut) Date: Tue, 06 Mar 2007 20:02:05 +0100 Subject: ruby 1.8.6 In-Reply-To: <1173190547.20717.7.camel@localhost.localdomain> References: <45EC55E0.1030903@h0m3.be> <1173190547.20717.7.camel@localhost.localdomain> Message-ID: <45EDBAAD.1040401@h0m3.be> MenTaLguY wrote: > On Mon, 2007-03-05 at 18:39 +0100, Thibaut Fernagut wrote: >> Is hobix 0.5 known to work with ruby 1.8.6 ? >> >> I tried with 1.8.5 but no luck > > It is thought to work with 1.8.5. Could you be more specific about the > problem you're having? > > -mental > Ok, here we go :-) 1) Followed the install from http://blog.interlinked.org/reviews/hobix.html 2) Hobix and roby installed on : blokkie at h0m3 ~ $ uname -a Linux h0m3 2.6.19-gentoo-r5 #1 SMP Wed Feb 14 18:26:24 CET 2007 i686 Intel(R) Xeon(TM) CPU 3.00GHz GenuineIntel GNU/Linux blokkie at h0m3 ~ $ which hobix /usr/bin/hobix 3) which ruby does hobix use : blokkie at h0m3 ~ $ ruby `which hobix` hobix 0.5 on ruby 1.8.5 (2006-12-04) [i686-linux] Usage: hobix command weblog-name [command-options] 4) The blog creation thingy : blokkie at h0m3 ~ $ hobix create h0m3 /var/www/sites/blokkie/blog.h0m3.be/web/ *** Creation of weblog `h0m3' will add the following directory" structure to directory /var/www/sites/blokkie/blog.h0m3.be/web" /var/www/sites/blokkie/blog.h0m3.be/web hobix.yaml <- configuration entries/ <- edit and organize your news items, articles and so on. skel/ <- contains your templates htdocs/ <- html is created here, store all your images here, this is your viewable websyht lib/ <- extra hobix libraries (plugins) go here Create this structure? [y/N]: y The default blog is available in the following modes: apache1-ssi, apache2-ssi Modes: [Comma between each mode or Enter for none] apache1-ssi, apache2-ssi /usr/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 34, col 0: `+ <+ sidebar_list +>' (ArgumentError) from /usr/lib/ruby/1.8/yaml.rb:133:in `load' from /usr/lib/ruby/1.8/yaml.rb:144:in `load_file' from /usr/lib/ruby/1.8/yaml.rb:143:in `open' from /usr/lib/ruby/1.8/yaml.rb:143:in `load_file' from /usr/lib/ruby/site_ruby/1.8/hobix/util/patcher.rb:40:in `initialize' from /usr/lib/ruby/site_ruby/1.8/hobix/util/patcher.rb:39:in `each' from /usr/lib/ruby/site_ruby/1.8/hobix/util/patcher.rb:39:in `initialize' from /usr/lib/ruby/site_ruby/1.8/hobix/util/patcher.rb:52:in `new' from /usr/lib/ruby/site_ruby/1.8/hobix/util/patcher.rb:52:in `[]' from /usr/lib/ruby/site_ruby/1.8/hobix/commandline.rb:207:in `create_weblog' from /usr/bin/hobix:83:in `call' from /usr/bin/hobix:83 blokkie at h0m3 ~ $ 5) install RedCloth blokkie at h0m3 ~ $ sudo gem install RedCloth Attempting local installation of 'RedCloth' Local gem file not found: RedCloth*.gem Attempting remote installation of 'RedCloth' Updating Gem source index for: http://gems.rubyforge.org Successfully installed RedCloth-3.0.4 blokkie at h0m3 ~ $ 6) irb ???? blokkie at h0m3 ~ $ irb -rredcloth irb(main):001:0> irb(main):002:0* irb(main):003:0* irb(main):004:0* irb(main):005:0* ^C irb(main):005:0> quit blokkie at h0m3 ~ $ What is supposed to happen here ? I hope this is enough info. From mental at rydia.net Tue Mar 6 23:46:18 2007 From: mental at rydia.net (MenTaLguY) Date: Tue, 06 Mar 2007 23:46:18 -0500 Subject: ruby 1.8.6 In-Reply-To: <45EDBAAD.1040401@h0m3.be> References: <45EC55E0.1030903@h0m3.be> <1173190547.20717.7.camel@localhost.localdomain> <45EDBAAD.1040401@h0m3.be> Message-ID: <1173242778.7972.1.camel@localhost.localdomain> On Tue, 2007-03-06 at 20:02 +0100, Thibaut Fernagut wrote: > Create this structure? [y/N]: y > The default blog is available in the following modes: > apache1-ssi, apache2-ssi > > Modes: [Comma between each mode or Enter for none] apache1-ssi, apache2-ssi Well, it sounds like there's an issue with the patcher, partly, but also I wouldn't recommend trying to apply both the apache1-ssi and apache2-ssi patches at the same time. Can you try with just one or the other? -mental -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20070306/4c7e36b7/attachment.bin From t.fernagut at h0m3.be Wed Mar 7 05:12:42 2007 From: t.fernagut at h0m3.be (Thibaut Fernagut) Date: Wed, 7 Mar 2007 11:12:42 +0100 (CET) Subject: ruby 1.8.6 In-Reply-To: <1173242778.7972.1.camel@localhost.localdomain> References: <45EC55E0.1030903@h0m3.be> <1173190547.20717.7.camel@localhost.localdomain> <45EDBAAD.1040401@h0m3.be> <1173242778.7972.1.camel@localhost.localdomain> Message-ID: <37115.193.244.32.140.1173262362.squirrel@webmail.h0m3.be> > On Tue, 2007-03-06 at 20:02 +0100, Thibaut Fernagut wrote: >> Create this structure? [y/N]: y >> The default blog is available in the following modes: >> apache1-ssi, apache2-ssi >> >> Modes: [Comma between each mode or Enter for none] apache1-ssi, >> apache2-ssi > > Well, it sounds like there's an issue with the patcher, partly, but also > I wouldn't recommend trying to apply both the apache1-ssi and > apache2-ssi patches at the same time. Can you try with just one or the > other? > > -mental > Ok , I'll do that this evening , but on the other hand , why does te installer then give this as an example and explains to use ',' as a field seperator ... ? Thibaut From mental at rydia.net Wed Mar 7 10:52:34 2007 From: mental at rydia.net (MenTaLguY) Date: Wed, 7 Mar 2007 7:52:34 -0800 Subject: ruby 1.8.6 In-Reply-To: <37115.193.244.32.140.1173262362.squirrel@webmail.h0m3.be> References: <37115.193.244.32.140.1173262362.squirrel@webmail.h0m3.be> Message-ID: <8048982fa25435ff89186d282d6bdbaa@localhost> On Wed, 7 Mar 2007 11:12:42 +0100 (CET), "Thibaut Fernagut" wrote: > Ok , I'll do that this evening , but on the other hand , why does te > installer then give this as an example and explains to use ',' as a field > seperator ... ? It isn't an example, but an enumeration of all the available patches. You can apply multiple patches, generally, but I believe the apache1-ssi and apache2-ssi patches specifically are mutually exclusive. It's a bit unfortunate that those are the only two patches at the moment, since it would probably be clearer if there were more shown. -mental From t.fernagut at h0m3.be Wed Mar 7 13:05:31 2007 From: t.fernagut at h0m3.be (Thibaut Fernagut) Date: Wed, 07 Mar 2007 19:05:31 +0100 Subject: ruby 1.8.6 In-Reply-To: <1173242778.7972.1.camel@localhost.localdomain> References: <45EC55E0.1030903@h0m3.be> <1173190547.20717.7.camel@localhost.localdomain> <45EDBAAD.1040401@h0m3.be> <1173242778.7972.1.camel@localhost.localdomain> Message-ID: <45EEFEEB.8020902@h0m3.be> MenTaLguY wrote: > On Tue, 2007-03-06 at 20:02 +0100, Thibaut Fernagut wrote: >> Create this structure? [y/N]: y >> The default blog is available in the following modes: >> apache1-ssi, apache2-ssi >> >> Modes: [Comma between each mode or Enter for none] apache1-ssi, apache2-ssi > > Well, it sounds like there's an issue with the patcher, partly, but also > I wouldn't recommend trying to apply both the apache1-ssi and > apache2-ssi patches at the same time. Can you try with just one or the > other? > > -mental Update : blokkie at h0m3 ~ $ hobix create h0m3 /var/www/sites/blokkie/blog.h0m3.be/web/ *** Creation of weblog `h0m3' will add the following directory" structure to directory /var/www/sites/blokkie/blog.h0m3.be/web" /var/www/sites/blokkie/blog.h0m3.be/web hobix.yaml <- configuration entries/ <- edit and organize your news items, articles and so on. skel/ <- contains your templates htdocs/ <- html is created here, store all your images here, this is your viewable websyht lib/ <- extra hobix libraries (plugins) go here Create this structure? [y/N]: y The default blog is available in the following modes: apache1-ssi, apache2-ssi Modes: [Comma between each mode or Enter for none] apache2-ssi /usr/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 34, col 0: `+ <+ sidebar_list +>' (ArgumentError) from /usr/lib/ruby/1.8/yaml.rb:133:in `load' from /usr/lib/ruby/1.8/yaml.rb:144:in `load_file' from /usr/lib/ruby/1.8/yaml.rb:143:in `open' from /usr/lib/ruby/1.8/yaml.rb:143:in `load_file' from /usr/lib/ruby/site_ruby/1.8/hobix/util/patcher.rb:40:in `initialize' from /usr/lib/ruby/site_ruby/1.8/hobix/util/patcher.rb:39:in `each' from /usr/lib/ruby/site_ruby/1.8/hobix/util/patcher.rb:39:in `initialize' from /usr/lib/ruby/site_ruby/1.8/hobix/util/patcher.rb:52:in `new' from /usr/lib/ruby/site_ruby/1.8/hobix/util/patcher.rb:52:in `[]' from /usr/lib/ruby/site_ruby/1.8/hobix/commandline.rb:207:in `create_weblog' from /usr/bin/hobix:83:in `call' from /usr/bin/hobix:83 blokkie at h0m3 ~ $ So still thesame :'( From t.fernagut at h0m3.be Wed Mar 7 13:23:32 2007 From: t.fernagut at h0m3.be (Thibaut Fernagut) Date: Wed, 07 Mar 2007 19:23:32 +0100 Subject: ruby 1.8.6 In-Reply-To: <8048982fa25435ff89186d282d6bdbaa@localhost> References: <37115.193.244.32.140.1173262362.squirrel@webmail.h0m3.be> <8048982fa25435ff89186d282d6bdbaa@localhost> Message-ID: <45EF0324.7050306@h0m3.be> MenTaLguY wrote: > On Wed, 7 Mar 2007 11:12:42 +0100 (CET), "Thibaut Fernagut" wrote: >> Ok , I'll do that this evening , but on the other hand , why does te >> installer then give this as an example and explains to use ',' as a field >> seperator ... ? > > It isn't an example, but an enumeration of all the available patches. > > You can apply multiple patches, generally, but I believe the apache1-ssi and apache2-ssi patches specifically are mutually exclusive. > > It's a bit unfortunate that those are the only two patches at the moment, since it would probably be clearer if there were more shown. > > -mental > metal , Just on a side note . I'm a comitter to gentoo-sunrise. So if we sort this out my intention is to make an ebuild and commit it in sunrise. If it's proven to be working and easely updateable , then it go's in the main gentoo-portage. So I think it would be cool because then morepeople would know it's existance . My 0,2 cent Thibaut From mental at rydia.net Thu Mar 8 14:48:14 2007 From: mental at rydia.net (MenTaLguY) Date: Thu, 08 Mar 2007 14:48:14 -0500 Subject: ruby 1.8.6 In-Reply-To: <45EEFEEB.8020902@h0m3.be> References: <45EC55E0.1030903@h0m3.be> <1173190547.20717.7.camel@localhost.localdomain> <45EDBAAD.1040401@h0m3.be> <1173242778.7972.1.camel@localhost.localdomain> <45EEFEEB.8020902@h0m3.be> Message-ID: <1173383294.26859.1.camel@localhost.localdomain> On Wed, 2007-03-07 at 19:05 +0100, Thibaut Fernagut wrote: > So still thesame :'( I can't reproduce this. Are you sure you're using Hobix from SVN trunk? -mental -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20070308/4d2d8ea2/attachment.bin From t.fernagut at h0m3.be Sat Mar 10 03:54:35 2007 From: t.fernagut at h0m3.be (Thibaut Fernagut) Date: Sat, 10 Mar 2007 09:54:35 +0100 Subject: ruby 1.8.6 In-Reply-To: <1173383294.26859.1.camel@localhost.localdomain> References: <45EC55E0.1030903@h0m3.be> <1173190547.20717.7.camel@localhost.localdomain> <45EDBAAD.1040401@h0m3.be> <1173242778.7972.1.camel@localhost.localdomain> <45EEFEEB.8020902@h0m3.be> <1173383294.26859.1.camel@localhost.localdomain> Message-ID: <45F2724B.9030609@h0m3.be> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 MenTaLguY wrote: > On Wed, 2007-03-07 at 19:05 +0100, Thibaut Fernagut wrote: >> So still thesame :'( > > I can't reproduce this. Are you sure you're using Hobix from SVN trunk? > > -mental > > Yes I am . doin this part : # Download Hobix via SVN svn co http://code.whytheluckystiff.net/svn/hobix # Install it cd hobix/trunk && sudo ruby setup.rb # Remove the old RedCloth version from the lib-directory Hobix got installed to (if it?s there). If you?ve installed Hobix in /opt/local use sudo rm /opt/local/lib/ruby/site_ruby/1.8/redcloth.rb # Create a Weblog hobix create WEBLOGNAME /path/for/the/files then i get the error : blokkie at h0m3 ~/hobix/trunk $ hobix create h0m3 /var/www/sites/blokkie/blog.h0m3.be/web *** Creation of weblog `h0m3' will add the following directory" structure to directory /var/www/sites/blokkie/blog.h0m3.be/web" /var/www/sites/blokkie/blog.h0m3.be/web hobix.yaml <- configuration entries/ <- edit and organize your news items, articles and so on. skel/ <- contains your templates htdocs/ <- html is created here, store all your images here, this is your viewable websyht lib/ <- extra hobix libraries (plugins) go here Create this structure? [y/N]: y The default blog is available in the following modes: apache1-ssi, apache2-ssi Modes: [Comma between each mode or Enter for none] apache2-ssi /usr/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 34, col 0: `+ <+ sidebar_list +>' (ArgumentError) from /usr/lib/ruby/1.8/yaml.rb:133:in `load' from /usr/lib/ruby/1.8/yaml.rb:144:in `load_file' from /usr/lib/ruby/1.8/yaml.rb:143:in `open' from /usr/lib/ruby/1.8/yaml.rb:143:in `load_file' from /usr/lib/ruby/site_ruby/1.8/hobix/util/patcher.rb:40:in `initialize' from /usr/lib/ruby/site_ruby/1.8/hobix/util/patcher.rb:39:in `each' from /usr/lib/ruby/site_ruby/1.8/hobix/util/patcher.rb:39:in `initialize' from /usr/lib/ruby/site_ruby/1.8/hobix/util/patcher.rb:52:in `new' from /usr/lib/ruby/site_ruby/1.8/hobix/util/patcher.rb:52:in `[]' from /usr/lib/ruby/site_ruby/1.8/hobix/commandline.rb:207:in `create_weblog' from /usr/bin/hobix:83:in `call' from /usr/bin/hobix:83 blokkie at h0m3 ~/hobix/trunk $ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF8nJLR6N46HXxiJERAoCQAKCQ4k0f5OUoFrWpm9umVuT2/HgRyACg1Cie xbQd85S+Ebv3HduBuvfZL7Y= =n+ct -----END PGP SIGNATURE----- From mental at rydia.net Sat Mar 10 14:37:41 2007 From: mental at rydia.net (MenTaLguY) Date: Sat, 10 Mar 2007 14:37:41 -0500 Subject: ruby 1.8.6 In-Reply-To: <45F2724B.9030609@h0m3.be> References: <45EC55E0.1030903@h0m3.be> <1173190547.20717.7.camel@localhost.localdomain> <45EDBAAD.1040401@h0m3.be> <1173242778.7972.1.camel@localhost.localdomain> <45EEFEEB.8020902@h0m3.be> <1173383294.26859.1.camel@localhost.localdomain> <45F2724B.9030609@h0m3.be> Message-ID: <1173555461.21562.2.camel@localhost.localdomain> Something's different with the copy of Hobix you're running, though. I checked, and I get a lot more patches listed than just those two. Have you ever installed Hobix before? I'm wondering whether there might still be an old version installed somewhere that's interfering... -mental -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20070310/bc543634/attachment.bin From arakoczy at gmail.com Sat Mar 10 15:41:00 2007 From: arakoczy at gmail.com (Alexander Rakoczy) Date: Sat, 10 Mar 2007 14:41:00 -0600 Subject: ruby 1.8.6 In-Reply-To: <1173555461.21562.2.camel@localhost.localdomain> References: <45EC55E0.1030903@h0m3.be> <1173190547.20717.7.camel@localhost.localdomain> <45EDBAAD.1040401@h0m3.be> <1173242778.7972.1.camel@localhost.localdomain> <45EEFEEB.8020902@h0m3.be> <1173383294.26859.1.camel@localhost.localdomain> <45F2724B.9030609@h0m3.be> <1173555461.21562.2.camel@localhost.localdomain> Message-ID: <58c518d10703101241r5b5b4dc9m5310bbd58739a566@mail.gmail.com> I'm experiencing the exact same problem on Gentoo with ruby 1.8.5-rc2 and hobix/redcloth from svn. I have previously installed hobix, but I had removed it. On 3/10/07, MenTaLguY wrote: > Something's different with the copy of Hobix you're running, though. I > checked, and I get a lot more patches listed than just those two. Have > you ever installed Hobix before? I'm wondering whether there might > still be an old version installed somewhere that's interfering... > > -mental > > > > _______________________________________________ > Hobix-is-the-way mailing list > Hobix-is-the-way at rubyforge.org > http://rubyforge.org/mailman/listinfo/hobix-is-the-way > > -- Alexander Rakoczy http://www.arakoczy.com From t.fernagut at h0m3.be Sun Mar 11 06:33:26 2007 From: t.fernagut at h0m3.be (Thibaut Fernagut) Date: Sun, 11 Mar 2007 11:33:26 +0100 Subject: ruby 1.8.6 In-Reply-To: <58c518d10703101241r5b5b4dc9m5310bbd58739a566@mail.gmail.com> References: <45EC55E0.1030903@h0m3.be> <1173190547.20717.7.camel@localhost.localdomain> <45EDBAAD.1040401@h0m3.be> <1173242778.7972.1.camel@localhost.localdomain> <45EEFEEB.8020902@h0m3.be> <1173383294.26859.1.camel@localhost.localdomain> <45F2724B.9030609@h0m3.be> <1173555461.21562.2.camel@localhost.localdomain> <58c518d10703101241r5b5b4dc9m5310bbd58739a566@mail.gmail.com> Message-ID: <45F3DAF6.1000805@h0m3.be> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Alexander Rakoczy wrote: > I'm experiencing the exact same problem on Gentoo with ruby 1.8.5-rc2 > and hobix/redcloth from svn. I have previously installed hobix, but I > had removed it. > > On 3/10/07, MenTaLguY wrote: >> Something's different with the copy of Hobix you're running, though. I >> checked, and I get a lot more patches listed than just those two. Have >> you ever installed Hobix before? I'm wondering whether there might >> still be an old version installed somewhere that's interfering... >> >> -mental Alexander , could you please reply at the end of mails coz otherwise it's hard to follow the treath. On a side note .. maybe it's gentoo specific and it might be not wurth the testing when ruby 1.8.6 is almost out. Unless Metal can trace/ reproduce the problem. I don't see it wurth the effort to keep trying to get it to work with 1.8.5 Your toughts ? Thibaut -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF89r2R6N46HXxiJERAmAbAKCOlKkvWwjprOII2YQiSSpMhNheywCglz0V leXw5cU167Yk7dJ2wzfh4w8= =GeCl -----END PGP SIGNATURE----- From mental at rydia.net Tue Mar 13 11:42:24 2007 From: mental at rydia.net (MenTaLguY) Date: Tue, 13 Mar 2007 11:42:24 -0400 Subject: ruby 1.8.6 In-Reply-To: <58c518d10703101241r5b5b4dc9m5310bbd58739a566@mail.gmail.com> References: <45EC55E0.1030903@h0m3.be> <1173190547.20717.7.camel@localhost.localdomain> <45EDBAAD.1040401@h0m3.be> <1173242778.7972.1.camel@localhost.localdomain> <45EEFEEB.8020902@h0m3.be> <1173383294.26859.1.camel@localhost.localdomain> <45F2724B.9030609@h0m3.be> <1173555461.21562.2.camel@localhost.localdomain> <58c518d10703101241r5b5b4dc9m5310bbd58739a566@mail.gmail.com> Message-ID: <1173800544.15622.4.camel@localhost.localdomain> On Sat, 2007-03-10 at 14:41 -0600, Alexander Rakoczy wrote: > I'm experiencing the exact same problem on Gentoo with ruby 1.8.5-rc2 > and hobix/redcloth from svn. I have previously installed hobix, but I > had removed it. There must still be some leftovers somewhere, though -- if you've got the new version, it should show more than just two patches to choose from. -mental -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20070313/33d818fc/attachment.bin From wmorgan-hobix-is-the-way at masanjin.net Tue Mar 13 16:15:25 2007 From: wmorgan-hobix-is-the-way at masanjin.net (William Morgan) Date: Tue, 13 Mar 2007 13:15:25 -0700 Subject: Rebooting Hobix (with Ferret and Camping) In-Reply-To: <20061009184439.GG13218@lstsv-3264.layeredtech.com> References: <20061009184439.GG13218@lstsv-3264.layeredtech.com> Message-ID: <1173816185-sup-7902@south> Excerpts from why's message of Mon Oct 09 11:44:39 -0700 2006: > * The indexing is now done with Ferret, which is much, much faster > and better. (Yeah: Ferret+YAML is awesome and what Hobix should have > always been!) > > * All dynamic web stuff will be done with Camping rather than > WebApp. As I slowly descend from the ivory towers of academia and find myself with time to think about all the stuff I want to blog about, I keep remembering how right this post was. Ferret is SO the right way to go here. I've been developing on top of it with Sup and it's very fast and very stable. And the same idiom I use there works here: everything you want to see is the result of search across arbitrarily-labeled text blobs. Other good ideas include anything that makes Hobix lighter, tighter, and less erb-upon-yamlsy. -- William From paul at luon.net Fri Mar 16 07:52:01 2007 From: paul at luon.net (Paul van Tilburg) Date: Fri, 16 Mar 2007 12:52:01 +0100 Subject: Hobix and Ruby1.8.6/REXML Message-ID: <20070316115200.GC18831@power.luon.net> Hello all, Something odd happened with Hobix after upgrading to Ruby 1.8.6. Something has changed in the REXML API or a bug has been introduced breaking the Atom feed generator. The traceback: /usr/lib/ruby/1.8/hobix/out/atom.rb:59:in `load': undefined method `attributes' for nil:NilClass (NoMethodError) from /usr/lib/ruby/1.8/hobix/weblog.rb:617:in `retouch' from /usr/lib/ruby/1.8/hobix/weblog.rb:584:in `each' ... from /usr/bin/hobix:79 Line 59 of atom.rb is: 59: rssdoc.elements['/feed/link[@rel="alternate"]'].attributes['href'] Somehow this XPath query doesn't seem to find the appropriate XML element anymore in the following (abbreviated) XML document: ... However, when the xmlns attribute of the element is removed, everyting works fine. What would be a possible fix or workaround for this problem not breaking the spec nor the fact that it should work with Ruby 1.8.5 and 1.8.6? Thanks in advance, Paul P.S. People on the REXML list, please Cc me, for I am not on the list. -- Student @ Eindhoven | email: paul at luon.net University of Technology, The Netherlands | JID: paul at luon.net >>> Using the Power of Debian GNU/Linux <<< | GnuPG key ID: 0x50064181 From mental at rydia.net Fri Mar 16 13:28:21 2007 From: mental at rydia.net (MenTaLguY) Date: Fri, 16 Mar 2007 10:28:21 -0700 Subject: Hobix and Ruby1.8.6/REXML In-Reply-To: <20070316115200.GC18831@power.luon.net> References: <20070316115200.GC18831@power.luon.net> Message-ID: On Fri, 16 Mar 2007 12:52:01 +0100, Paul van Tilburg wrote: > Line 59 of atom.rb is: > 59: rssdoc.elements['/feed/link[@rel="alternate"]'].attributes['href'] > > Somehow this XPath query doesn't seem to find the appropriate XML > element anymore in the following (abbreviated) XML document: > > xmlns="http://www.w3.org/2005/Atom" > xmlns:dc="http://purl.org/dc/elements/1.1/" > xml:lang="en"> > > > > ... > > > However, when the xmlns attribute of the element is removed, > everyting works fine. What would be a possible fix or workaround for > this problem not breaking the spec nor the fact that it should work with > Ruby 1.8.5 and 1.8.6? Hmm. I forget how REXML does namespaces, but I would imagine the query probably needs to be something more or less like: rssdoc.elements['/atom:feed/atom:link[@rel="alternate"]', { 'atom' => "http://www.w3.org/2005/Atom" }].attributes['href'] I'm guessing the old REXML behavior which the existing atom.rb code relies upon was a bug. (I'm also not subscribed to the rexml list, so please CC me) -mental From mental at rydia.net Sat Mar 17 00:43:16 2007 From: mental at rydia.net (MenTaLguY) Date: Sat, 17 Mar 2007 00:43:16 -0400 Subject: Hobix and Ruby1.8.6/REXML In-Reply-To: References: <20070316115200.GC18831@power.luon.net> Message-ID: <1174106596.15622.10.camel@localhost.localdomain> On Fri, 2007-03-16 at 10:28 -0700, MenTaLguY wrote: > rssdoc.elements['/atom:feed/atom:link[@rel="alternate"]', { 'atom' > => "http://www.w3.org/2005/Atom" }].attributes['href'] It looks like we must use XPath.first here. Paul, would you be interested in generating a patch? I've got my hands pretty full lately. -mental -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20070317/847a7e6d/attachment.bin From paul at luon.net Sat Mar 17 20:00:21 2007 From: paul at luon.net (Paul van Tilburg) Date: Sun, 18 Mar 2007 01:00:21 +0100 Subject: Hobix and Ruby1.8.6/REXML In-Reply-To: <1174106596.15622.10.camel@localhost.localdomain> References: <20070316115200.GC18831@power.luon.net> <1174106596.15622.10.camel@localhost.localdomain> Message-ID: <20070318000021.GC27265@power.luon.net> On Sat, Mar 17, 2007 at 12:43:16AM -0400, MenTaLguY wrote: > On Fri, 2007-03-16 at 10:28 -0700, MenTaLguY wrote: > > rssdoc.elements['/atom:feed/atom:link[@rel="alternate"]', { 'atom' > > => "http://www.w3.org/2005/Atom" }].attributes['href'] > > It looks like we must use XPath.first here. What doe you mean, exactly? Note that we should check that this approach works for 1.8.6 too. > Paul, would you be interested in generating a patch? I've got my hands > pretty full lately. Yes, I'll try to hack up something tomorrow... I made a quick fix for me yesterday already, but that one is quite dirty: it does all the operations as normally, only the initial document has the xmlns statement/attribute removed and I add this at the very end. Not nice, but it works, sue me ;-) Regards, Paul -- Student @ Eindhoven | email: paul at luon.net University of Technology, The Netherlands | JID: paul at luon.net >>> Using the Power of Debian GNU/Linux <<< | GnuPG key ID: 0x50064181 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20070318/2ec174fc/attachment.bin From mental at rydia.net Sun Mar 18 13:18:33 2007 From: mental at rydia.net (MenTaLguY) Date: Sun, 18 Mar 2007 13:18:33 -0400 Subject: Hobix and Ruby1.8.6/REXML In-Reply-To: <20070318000021.GC27265@power.luon.net> References: <20070316115200.GC18831@power.luon.net> <1174106596.15622.10.camel@localhost.localdomain> <20070318000021.GC27265@power.luon.net> Message-ID: <1174238313.15622.28.camel@localhost.localdomain> On Sun, 2007-03-18 at 01:00 +0100, Paul van Tilburg wrote: > On Sat, Mar 17, 2007 at 12:43:16AM -0400, MenTaLguY wrote: > > On Fri, 2007-03-16 at 10:28 -0700, MenTaLguY wrote: > > > rssdoc.elements['/atom:feed/atom:link[@rel="alternate"]', { 'atom' > > > => "http://www.w3.org/2005/Atom" }].attributes['href'] > > > > It looks like we must use XPath.first here. > > What doe you mean, exactly? require 'rexml/xpath' ... REXML::XPath.first( rssdoc.elements, '/atom:feed/atom:link[@rel="alternate"]', { 'atom' => "http://www.w3.org/2005/Atom" } ) The 1.8.6 behavior is more compliant -- XPath is not supposed to match namespaced elements without using a prefix bound to the right namespace. Sadly, it turns out there's no way to specify namespaces when using REXML::Elements#[], so REXML::XPath is the only way to go if you want namespace support. -mental -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20070318/923529cb/attachment-0001.bin From paul at luon.net Sun Mar 18 16:35:17 2007 From: paul at luon.net (Paul van Tilburg) Date: Sun, 18 Mar 2007 21:35:17 +0100 Subject: Hobix and Ruby1.8.6/REXML In-Reply-To: <1174238313.15622.28.camel@localhost.localdomain> References: <20070316115200.GC18831@power.luon.net> <1174106596.15622.10.camel@localhost.localdomain> <20070318000021.GC27265@power.luon.net> <1174238313.15622.28.camel@localhost.localdomain> Message-ID: <20070318203517.GA3771@power.luon.net> On Sun, Mar 18, 2007 at 01:18:33PM -0400, MenTaLguY wrote: > On Sun, 2007-03-18 at 01:00 +0100, Paul van Tilburg wrote: > > On Sat, Mar 17, 2007 at 12:43:16AM -0400, MenTaLguY wrote: > > > On Fri, 2007-03-16 at 10:28 -0700, MenTaLguY wrote: > > > > rssdoc.elements['/atom:feed/atom:link[@rel="alternate"]', { 'atom' > > > > => "http://www.w3.org/2005/Atom" }].attributes['href'] > > > > > > It looks like we must use XPath.first here. > > > > What doe you mean, exactly? > > require 'rexml/xpath' > > ... > > REXML::XPath.first( rssdoc.elements, '/atom:feed/atom:link[@rel="alternate"]', { 'atom' => "http://www.w3.org/2005/Atom" } ) > > The 1.8.6 behavior is more compliant -- XPath is not supposed to match > namespaced elements without using a prefix bound to the right namespace. > Sadly, it turns out there's no way to specify namespaces when using > REXML::Elements#[], so REXML::XPath is the only way to go if you want > namespace support. The question for me is... why do we use all this searching after just creating a template based on variables. Can't we just put these in the string directly? I don't see the point IMO. Well, maybe this seems (or seemed at the time) more elegant, but with the NS code you write above, it becomes QUITE a hassle to put some link in an attribute. Opinions? Regards, Paul -- Student @ Eindhoven | email: paul at luon.net University of Technology, The Netherlands | JID: paul at luon.net >>> Using the Power of Debian GNU/Linux <<< | GnuPG key ID: 0x50064181 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20070318/7e06e26b/attachment.bin From mental at rydia.net Sun Mar 18 19:25:30 2007 From: mental at rydia.net (MenTaLguY) Date: Sun, 18 Mar 2007 19:25:30 -0400 Subject: Hobix and Ruby1.8.6/REXML In-Reply-To: <20070318203517.GA3771@power.luon.net> References: <20070316115200.GC18831@power.luon.net> <1174106596.15622.10.camel@localhost.localdomain> <20070318000021.GC27265@power.luon.net> <1174238313.15622.28.camel@localhost.localdomain> <20070318203517.GA3771@power.luon.net> Message-ID: <1174260330.15622.29.camel@localhost.localdomain> On Sun, 2007-03-18 at 21:35 +0100, Paul van Tilburg wrote: > The question for me is... why do we use all this searching after just > creating a template based on variables. Can't we just put these in the > string directly? As long as they're properly escaped, sure. I'm not too keen on the current approach that the atom code uses really, but I've got no time right now to rewrite it all. -mental -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20070318/af2351c2/attachment.bin