shoes / shoes-deprecated

Former repo for Shoes... see README for up to date locations!
http://shoesrb.com/
Other
1.16k stars 168 forks source link

(eval):1: Compile error #245

Open xslackx opened 10 years ago

xslackx commented 10 years ago

Hello guys, could you help me? I'm venturing Shoes by, I made a small application, it worked pretty good in Window $, but when I do the test in Linux, Debian. Shows some errors like: (eval): 1: Compile error I've tried doing research but found nothing. thank you

steveklabnik commented 10 years ago

We need a copy of the code.

xslackx commented 10 years ago

This is it

Shoes.app(title: "Tabula ++", width: 470, height: 670) do 

 alert "SALVE SUAS ATIVIDADES PRIMEIRO !!! " 
 pergunte = ask_save_file
 if pergunte == nil 
 alert "Você não escolheu um lugar para salvar suas tabulações encerrando programa !"
 exit
 else

 background snow..royalblue
 stack margin: 4 do

 stack margin: 5 do 
 image "images/note.png", :left => +100, :top => 5
 tagline "Tabula ++", :size => 25, :align => "center"

    end

 para "Nome:", :size => 19
 @n = edit_line :width => 430
 para "CPF:", :size => 19
 @c = edit_line :width => 430
 para "SN/SNID:", :size => 19
 @s = edit_line :width => 430
 para "Telefone:", :size => 19
 @t = edit_line :width => 430
 para "Email:", :size => 19
 @e = edit_line :width => 430
 para "Troubleshooting:", :size => 19
 @to = edit_box :width => 430, :height => 150, :scroll => true

 end

 flow do
 @sa = image "images/salvar.png" 
 @sa.click do 
 backup = File.open("#{pergunte}", "a+")
 backup.puts("----------------------------------->")
 backup.puts("Data e Hora do atendimento: #{Time.new}")
 backup.puts("Nome: #{@n.text}")
 backup.puts("CPF: #{@c.text}")
 backup.puts("SN/SNID: #{@s.text}")
 backup.puts("Telefone: #{@t.text}")
 backup.puts("Email: #{@e.text}")
 backup.puts("Troubleshooting: #{@to.text}")
 backup.puts("----------------------------------->")
 backup.close
 alert("Salvo com sucesso !")
 end

 @li = image "images/limpar.png" 
 @li.click do 
 @n.text = ""
 @c.text = ""
 @s.text = ""
 @t.text = ""
 @e.text = ""
 @to.text = "" 
    end

 @abrir = image "images/abrir.png" 
 @abrir.click do
 system"start #{pergunte}" 
    end

 @link = image "images/link.png"
 @link.click do
 window :title => "Links" do
 background lavender..snow
 stack margin: 5  do
 tagline "Links úteis"
 para(link("Web Ponto", :click => "http://rhwponto.teleperformance.com.br/webponto"))
 para(link("Tabulador", :click => "http://tabulador.teleperformance.com.br")) 
 para(link("Consulta CPF", :click => "http://www.receita.fazenda.gov.br/aplicacoes/atcta/cpf/consultapublica.asp"))
 para(link("Consulta CNPJ", :click => "http://www.receita.fazenda.gov.br/pessoajuridica/cnpj/cnpjreva/cnpjreva_solicitacao.asp"))
 para(link("Consulta SNID/SN", :click => "http://customercare.acer.com/customercare/CaseBooking.aspx"))
 para(link("Consulta CEP", :click => "http://m.correios.com.br/movel/buscaCep.do"))
 para(link("Solicitação de Reparo", :click => "http://support.acer.com/br/pt/email/default.aspx?agent=1"))
 para(link("Site Acer", :click => "http://acer.com.br"))
 para(link("Site Gateway", :click => "http://gateway.com"))
 para(link("Google", :click => "http://google.com.br"))

 @tlinks = image "images/tinks.png"
 @tlinks.click do
 system("start http://rhwponto.teleperformance.com.br/webponto")
 sleep 0.25
 system("start http://tabulador.teleperformance.com.br")
 sleep 0.25
 system("start http://www.receita.fazenda.gov.br/aplicacoes/atcta/cpf/consultapublica.asp")
 sleep 0.25
 system("start http://www.receita.fazenda.gov.br/pessoajuridica/cnpj/cnpjreva/cnpjreva_solicitacao.asp")
 sleep 0.25 
 system("start http://customercare.acer.com/customercare/CaseBooking.aspx")
 system("start http://m.correios.com.br/movel/buscaCep.do")
 sleep 0.25 
 system("start http://support.acer.com/br/pt/email/default.aspx?agent=1")
    end
para "Todos os links úteis"

            end
                end
                    end

 @sobre = image "images/sobre.png"                  
 @sobre.click  do
 window :title => "Powned the world !" do
 background teal..steelblue
 stack margin: 5 do
 image "images/ruby.png", :left => 100, :top => 10
 title  "Tabula ++", :align => "center"
 subtitle  "Desenvolvido por: x Slack x", :align => "center"
 tagline "If it walks like a duck and quacks like a duck, I would call it a duck.", :align => "center"
 para "Este é um software livre GNU, todo seu código pode ser acessado, com prévia permissão, foi escrito na linguagem Ruby utilizando o complemento GUI Shoes.", :align => "center"
 para "Afim de melhorar o atendimento, sem precisar usar bloco de notas, todas mini tabulações, nas quais salvas serão arquivadas em um arquivo txt.", :align => "center"
 para "Chamado Backup, para se ter um controle e segurança maior.", :align => "center"
 para "Ajude a melhorar, novidades podem se tornar atualizações !", :align => "center"
 para "Explore seus limites, porquê o universo, não é uma barreira.", :align => "center"

        end
    end
end

 @telefones = image "images/telefones.png"
 @telefones.click do 
 window :title => "Telefones, Ramais & Emails", :width => 400, :height => 650 do
 stack margin: 5 do 
 title "Telefones"
 tagline "ACER: 0800-721-2237"
 tagline "MICROSOFT: 0800-888-4081"
 tagline "MCAFEE: 0800-891-0168"
 tagline "CORREIOS: 0800-725-7282"

    end

 stack margin: 5 do 
 title "Ramais"
 tagline "Sheila Real: 53629"
 tagline "Jefferson: 53628"
 tagline "Haroldo: 53651"

    end

 stack margin: 5 do
 title "Emails"
 tagline "Suporte para revenda: suporteretailbrasil@acer.com"
 tagline "Email do nivel II: suportebrasil@acer.com"
 tagline "Email da reparadora: reparos.brasil@acer.com"
 tagline "Email do jurídico: clientebrasil@acer.com"

        end
    end
end

 @ss = image "images/sair.png"
 @ss.click do 
 alert "SAINDO  !"
 exit
        end
    end
end

end
xslackx commented 10 years ago

Still have some folders with images in PNG

steveklabnik commented 10 years ago

It might be the 1.9 style hashes, can you try the older style? Just guessing here.

xslackx commented 10 years ago

Maybe, I'll try to make some changes: This is a short video of how it works. http://www.youtube.com/watch?v=EpJop6UA1eE&feature=youtu.be

PragTob commented 10 years ago

That's odd. Have you confirmed that your shoes installation on Linux works with a little easy sample application?

Or did you package the app? Packaging might be broken.