» tagged pages
» logout
FeedTools
Return to Sporkmonger Blog

GentleCMS Development Log: Part 4

Tags Applied to this Entry

1 person has tagged this page:

I’ve been up to no good again. I keep changing my directory structure around. Nothing feels quite right, but each time I change it, it seems a bit better than the last time. In any case, my svn repository for this project is now something of a mess. :-(

Anyways, I decided my URI implementation still had a weak spot that needed to be taken care of.

I figure I’ll fill out the missing chart on Sam’s list with the results of Ruby’s two URI implementations:

testuri.1.rb produces:

http://example.com/          http://example.com           true
HTTP://example.com/          http://example.com/          false
http://example.com/          http://example.com:/         true
http://example.com/          http://example.com:80/       true
http://example.com/          http://Example.com/          true
http://example.com/~smith/   http://example.com/%7Esmith/ false
http://example.com/~smith/   http://example.com/%7esmith/ false
http://example.com/%7Esmith/ http://example.com/%7esmith/ false
http://example.com/%C3%87    http://example.com/C%CC%A7   false

testuri.2.rb produces:

http://example.com/          http://example.com           true
HTTP://example.com/          http://example.com/          true
http://example.com/          http://example.com:/         true
http://example.com/          http://example.com:80/       true
http://example.com/          http://Example.com/          true
http://example.com/~smith/   http://example.com/%7Esmith/ true
http://example.com/~smith/   http://example.com/%7esmith/ true
http://example.com/%7Esmith/ http://example.com/%7esmith/ true
http://example.com/%C3%87    http://example.com/C%CC%A7   true
Username:
Password:
(or Cancel)