February 21st, 2011 § § permalink
Git seems to be the de-facto tool for ruby development. Lots of gems are hosted on github, and bundler may help you to work with cutting-edge release fetched from git repositories.
WOW! That’s amazing! But what if you didn’t like to use git as scm?
I’ve nothing against git, but I prefer mercurial so I spent some time to add mercurial capabilities to bundler, the best way to manage your application’s dependencies.
» Read the rest of this entry «
February 14th, 2010 § § permalink
Some days ago, willing to learn how to extends ruby with C code, I wrote a wrapper for yubico-c library.
You can find the sourcecode of my work on bitbucket and some installation instruction on the gemmcutter page.
» Read the rest of this entry «
June 3rd, 2009 § § permalink
Oggi mi son imbattuto in un problema che ho risolto grazie a sinatra ed heroku.
Nei giorni scorsi avevo deciso di usare il domino bb.alessiocaiazza.info come mia pagina personale su bitbucket, solo che poi ho comprato il dominio l0g.in e avrei preferito usare code.l0g.in.
Fin qui nulla di male, ma come fare con tutti i link che avevo disseminato in giro per il web? Avrebbero puntato ad una pagina di errore? No!
Mi è venuto in mente che con sinatra è possibile catturare le url con delle regexp…quindi…
#
# redirector
#
# (c) 2009 - Alessio Caiazza
require 'rubygems'
require 'sinatra'
REDIRECT_TO='http://l0g.in'
get '/' do
redirect REDIRECT_TO
end
get '/*' do
redirect "#{REDIRECT_TO}/#{params[:splat][0]}"
end
e poi deploy su heroku e custom domain service …..fatto!
Ho colto l’occasione per provare hg-git, quindi ho pubblicato tutto su github