Est. Budget: $150.00
I need a Ruby utility that abbreviates long URLs for display readability. Example:
UrlParser.shorten_url("http://www.foo.com/this/is/a/b/c/d/e/f/string.html") => "www.foo.com/this/is/a/.../e/f/string.html"
I have an RSpec file written with all the tests. You just need to write the minimum amount of elegant Ruby code to make those tests pass.
I already have working code that does this, but it is awful. It looks ...