Ruby Programming Challenge For Newbies
|
|
Este desafio é uma competição organizada por Fabio Akita e outros.xD RPCFN Difficulty: Ruby beginner. Goals: Basic control over Ruby elements, specially command line scripting. Description: There are several ways to subtitle a movie nowadays, and one of the most well known format is the SubRip format (http://en.wikipedia.org/wiki/SubRip). It has entries like these:" Se quiserem ver o blog da competição aí esta o link… |
|
|
Pow, vou ter q fazer um jaba.. primeira gem q eu fiz na vida, foi de legendas =D |
|
|
AE Hugo, falando nisso qdo tu vai rodar um “jeweler tictactoe” ae ? Instala o jeweler ae.. moh barato =D PS.: xeu deixa ro link aqui, pq eh moh comedia procurar “ruby gem jeweler” hehe… |
|
|
nem precisei baixar isso.xD so mandei um gem install jeweler e instalo a gem.xD |
|
|
Rodae: Entra na pasta tictactoe, edita o Rakefile a seu gosto, rake gemspec, rake build… Vc tem uma gem =D —rspec pra gerar o helperzito de testes com RSpec =D |
|
|
ta dando um errosinho.xD to tentando resolver.xD |
|
|
nao eh pra criar arquivo nao kra.. jeweler nome da gem só faz uma vez… |
|
|
Mano , q trampo screenshot… abre uma tag code e cola… E putis, tomara que o pau seja windows, adoro coisas que nao funcionam no windows =DD |
|
|
putz, deve ser no windows mesmo.xD
nada funfa.xD |
|
|
aew, dps eu resolvo isso, agora tenho q ir pra escola.xDDDDD |
|
|
Nao brod, acho q tu nao entendeu … jeweler eh como um “rails foo” … soh vai gerar um esqueleto pra vc.. |
|
|
acho q entendi, então eu do o jeweler num diretório qualquer q ele gera o esqueleto, aí dps é só ir passando meu projeto pro esqueleto. mas ainda ta dando o mesmo erro.xD
C:\>jeweler GemTemplate
C:/Ruby/lib/ruby/gems/1.8/gems/git-1.2.2/lib/git/lib.rb:700:in `command': git ve
rsion 2>&1:'git' is not recognized as an internal or external command, (Git::G
itExecuteError)
operable program or batch file.
from C:/Ruby/lib/ruby/gems/1.8/gems/git-1.2.2/lib/git/lib.rb:649:in `cur
rent_command_version'
from C:/Ruby/lib/ruby/gems/1.8/gems/git-1.2.2/lib/git/lib.rb:659:in `mee
ts_required_version?'
from C:/Ruby/lib/ruby/gems/1.8/gems/git-1.2.2/lib/git.rb:30
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `ge
m_original_require'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `re
quire'
from C:/Ruby/lib/ruby/gems/1.8/gems/jeweler-1.2.1/bin/../lib/jeweler/gen
erator.rb:1
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `ge
m_original_require'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `re
quire'
from C:/Ruby/lib/ruby/gems/1.8/gems/jeweler-1.2.1/bin/../lib/jeweler.rb:
9
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `ge
m_original_require'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `re
quire'
from C:/Ruby/lib/ruby/gems/1.8/gems/jeweler-1.2.1/bin/jeweler:6
from C:/Ruby/bin/jeweler:19:in `load'
from C:/Ruby/bin/jeweler:19
C:\>
|
|
|
Ah tah.. o jeweler precisa do git… |
|
|
Para usar o git no win instala o msysGit , o pessoal aqui no trampo usa e nao tem muitos problemas. []’s |
|
|
eu ja tinha instalado jah, mas num tinha botado pra rodar com o prompt do window.xD
|

