fnando/i18n-js — Issue #62: rake i18n:js:update failing with redirection forbidden error (open-uri)
Author: gerardc
Created: 2011-10-12 14:43:57+00:00
State: open

Hi Nando,

Thanks for releasing i18n-js, it's really cool!

I stumbled across a small bug today running (padrino) rake i18n:js:update:

RuntimeError: redirection forbidden: http://github.com/fnando/i18n-js/raw/master/lib/i18n.js -> https://github.com/fnando/i18n- js/raw/master/lib/i18n.js

Looks like replacing line 80 on i18n-js.rb with

open('https://raw.github.com/fnando/i18n-js/master/lib/i18n-js.rb').read

should do the trick, looks like the URL for accessing raw source files on github has changed.

Cheers!