Did You Miss Me? I’ve Been Camping
Not literally mind you, it was rather an excursion into the Salvador Dali-esque microframework of everyone’s favorite purveyor of chunky bacon and freelance professorship, why the lucky stiff.
Hence, I present to the world ScratchyPad, 390ish lines of tasty Ruby scratching my personal itch for a Pastie-style pastebin. (I’m sure there’s creams for that kind of thing, but I found camping far more pleasant, and hygenic too.)
ScratchyPad supports tags, syntax highlighting and textile markup, as well as RSS feeds.
Sorry, no screenshots yet, stay tuned for a later post with those.
Required gems are camping (duh!), coderay (syntax highlighting), redcloth (textile markup), mime-types. It also uses the date_helper from action view, so rails might help there.
Get the tarball here.
Edit: Caveat Downloader… I just flipped over to Safari, and the CSS is a bit sad in a few places
Needs more cross-browser QA…
November 19th, 2007 at 9:59 pm
Hi,
this is great, thanks!
Though… I had a problem starting it cause s.tag_with(”hello”) sends String and .uniq brakes there… I solved this relocating .split() to tag_with method:
def tag_with(list)
list = list.split(’ ‘)
list.uniq.each do |t|
Tag.find_or_create_by_name(t.downcase).on(self)
end
end
…and is cleaner, also…