Bundler with Mercurial support

February 21st, 2011 § 4 comments § 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 «

YubiRuby – Yubikey with Ruby

February 14th, 2010 § 0 comments § 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 «

[redirector] Sinatra + Heroku => Micro-applicazioni di cui non preoccuparsi

June 3rd, 2009 § 0 comments § permalink

redirector logoOggi 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

Where Am I?

You are currently browsing entries tagged with ruby at Abisso Dev..