MenTaLguY wrote:
> With the latest checkins for RSS and Atom feeds, I've committed
> everything I personally wanted for the 0.5 release.
>
> Does anyone else have any wishes for 0.5?
>
> If not, I'll look at doing the 0.5 release next week.
>
Hi mental et. al.--
I'm getting back to trying to get Hobix working with Ruby 1.8.5 on
Windows. I now have the latest from SVN. I feel like it will take
awhile, so I don't want to hold up the 0.5 release if you want to go
ahead. I would like other eyes to look at an issue, however.
The first problem I need to fix in order to get anywhere at all on
Windows is in the initial bin/hobix script:
--- hobix (revision 151)
+++ hobix (working copy)
@@ -58,13 +58,9 @@
puts "*** type `hobix help' and check your spelling."
exit
end
- hobix_weblog = URI::parse( cmdline.config['weblogs'][ weblog ] )
- if hobix_weblog.scheme
+ hobix_weblog = URI::parse(URI::escape(cmdline.config['weblogs'][
weblog ]))
+ if hobix_weblog.scheme and cmdline.respond_to? "#{ hobix_weblog.scheme
}_#{ cmd }_remote"
mname = "#{ hobix_weblog.scheme }_#{ cmd }_remote"
- unless cmdline.respond_to? mname
- opts.unshift cmd
- mname = hobix_weblog.scheme
- end
else
hobix_weblog = Hobix::Weblog.load( cmdline.config['weblogs'][ weblog ] )
mname = "#{ cmd }_action"
The problem is that parsing a Windows filepath with URI.parse (line 61)
will return the drive letter in the scheme field (grrr!). The script as
it is now assumes it's got something reasonable, like 'http', so it
continues on its merry way 'til later on, when it realizes that
'#{drive_letter}' is a worthless value for mname. The changes above will
solve my problem, but I don't want to commit without asking:
1) will deleting lines 64-67 create problems? I can't figure out how
these lines would ever have yielded a useful value in mname, but I could
easily be overlooking something.
2) my changes are not particularly DRY; does anyone have a more elegant
solution?
BTW, all this business with the _remote methods seems to have been added
by _why in v0.4 to support remote posting and editing, etc. Pretty cool;
has anyone (else) actually used these? If so, what is the server-side
agent that receives these requests?
Thanks.
------------------------------------------------------------------------
Brian C. Young
“...the depth of human sinfulness is expressed in the way in which human
beings deceive themselves into believing that the defense of, or
commitment to, their own people requires the harm of other people.”
--Duane K. Friesen
_______________________________________________
Hobix-is-the-way mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/hobix-is-the-way