From jason.terk at gmail.com Wed Jul 12 09:42:58 2006 From: jason.terk at gmail.com (Jason Terk) Date: Wed, 12 Jul 2006 09:42:58 -0400 Subject: Adding posts without using `hobix post` Message-ID: <3f6072e0607120642h48291cf3jd6d2ad7dd97f7d4b@mail.gmail.com> _why's website at hobix.com, suggests that adding a new post is as simple as creating a new .yaml file in the entries directory (or a subdirectory thereof) but, when I do this, I get various errors. From adding a new yaml file in entries and then running `hobix upgen`: *** Loading /home/jterk/blog/hobix.out.quick ++ Reloaded foo /usr/lib/ruby/site_ruby/1.8/hobix/storage/filesys.rb:215:in `sort_index': undefined method `<=>' for nil:NilClass (NoMethodError) from /usr/lib/ruby/site_ruby/1.8/hobix/storage/filesys.rb:215:in `sort_index' from /usr/lib/ruby/site_ruby/1.8/hobix/storage/filesys.rb:207:in `load_index' from /usr/lib/ruby/site_ruby/1.8/hobix/storage/filesys.rb:265:in `find' from /usr/lib/ruby/site_ruby/1.8/hobix/weblog.rb:708:in `skel_yearly' from /usr/lib/ruby/site_ruby/1.8/hobix/weblog.rb:431:in `build_pages' from /usr/lib/ruby/site_ruby/1.8/hobix/weblog.rb:427:in `build_pages' from /usr/lib/ruby/site_ruby/1.8/hobix/weblog.rb:510:in `output_map' from /usr/lib/ruby/1.8/find.rb:39:in `find' from /usr/lib/ruby/1.8/find.rb:38:in `find' from /usr/lib/ruby/site_ruby/1.8/hobix/weblog.rb:497:in `output_map' from /usr/lib/ruby/site_ruby/1.8/hobix/weblog.rb:582:in `retouch' from /usr/lib/ruby/site_ruby/1.8/hobix/weblog.rb:577:in `regenerate' from /usr/lib/ruby/site_ruby/1.8/hobix/commandline.rb:249:in `upgen_action' from /usr/bin/hobix:79 What else do I need to do to be able to add posts without using `hobix post`? Thanks, -Jason Terk From jason.terk at gmail.com Wed Jul 12 18:18:43 2006 From: jason.terk at gmail.com (Jason Terk) Date: Wed, 12 Jul 2006 18:18:43 -0400 Subject: Adding posts without using `hobix post` Message-ID: <3f6072e0607121518j75f0606dlb18099e50a9f293e@mail.gmail.com> I have discovered the evil in my ways: I needed to add the 'created' field. Mea culpa. From bowman at mazirian.com Wed Jul 12 18:49:47 2006 From: bowman at mazirian.com (Bradford R. Bowman) Date: Wed, 12 Jul 2006 18:49:47 -0400 Subject: Adding posts without using `hobix post` In-Reply-To: <3f6072e0607121518j75f0606dlb18099e50a9f293e@mail.gmail.com> References: <3f6072e0607121518j75f0606dlb18099e50a9f293e@mail.gmail.com> Message-ID: <1152744587.7141.2.camel@phandaal> On Wed, 2006-07-12 at 18:18 -0400, Jason Terk wrote: > I have discovered the evil in my ways: I needed to add the 'created' > field. Mea culpa Useless post, but I'd thought I'd make you feel better by letting you know that I made exactly the same mistake. The next mistake to avoid is screwing up the date format, which will also cause hobix to get mad at you when you regen/upgen. -- Bradford R. Bowman -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 191 bytes Desc: This is a digitally signed message part Url : http://rubyforge.org/pipermail/hobix-is-the-way/attachments/20060712/aac77959/attachment.bin From jason.terk at gmail.com Wed Jul 12 19:46:48 2006 From: jason.terk at gmail.com (Jason Terk) Date: Wed, 12 Jul 2006 19:46:48 -0400 Subject: Adding posts without using `hobix post` In-Reply-To: <1152744587.7141.2.camel@phandaal> References: <3f6072e0607121518j75f0606dlb18099e50a9f293e@mail.gmail.com> <1152744587.7141.2.camel@phandaal> Message-ID: <3f6072e0607121646q61a9bb5bjb6ca9e143c3834e@mail.gmail.com> > The next mistake to avoid is > screwing up the date format, which will also cause hobix to get mad at > you when you regen/upgen. Hmm.. I hope my function doesn't break then; I'm working on some Hobix related functions, and probably a related major mode, for Emacs. Right now it's rather kludgy ;) From mental at rydia.net Wed Jul 12 23:30:03 2006 From: mental at rydia.net (MenTaLguY) Date: Wed, 12 Jul 2006 23:30:03 -0400 Subject: Adding posts without using `hobix post` In-Reply-To: <1152744587.7141.2.camel@phandaal> References: <3f6072e0607121518j75f0606dlb18099e50a9f293e@mail.gmail.com> <1152744587.7141.2.camel@phandaal> Message-ID: <1152761403.5551.6.camel@localhost.localdomain> On Wed, 2006-07-12 at 18:49 -0400, Bradford R. Bowman wrote: > On Wed, 2006-07-12 at 18:18 -0400, Jason Terk wrote: > > I have discovered the evil in my ways: I needed to add the 'created' > > field. Mea culpa > > Useless post, but I'd thought I'd make you feel better by letting you > know that I made exactly the same mistake. The next mistake to avoid is > screwing up the date format, which will also cause hobix to get mad at > you when you regen/upgen. What might be nice is some sort of YAML schema validation, but that requires someone to write a schema for the entry classes first (you, if you've customized them any). -mental