tag:blogger.com,1999:blog-284600789737488130.post1201501479819524668..comments2024-02-07T02:22:20.642-05:00Comments on Ruby on Windows: OCRA: One-Click Ruby Application BuilderDavid Mullethttp://www.blogger.com/profile/05597492688893461137noreply@blogger.comBlogger17125tag:blogger.com,1999:blog-284600789737488130.post-7994702670183414072013-10-23T08:12:18.808-05:002013-10-23T08:12:18.808-05:00Hi Team
Ocra rocks.
How to add dependencies w.r....Hi Team<br /><br />Ocra rocks.<br /><br />How to add dependencies w.r.t ruby script and need to know does this output.exe can be De-compile to check source code of ruby script.<br />if yes how please send link.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-284600789737488130.post-89861382501693371292012-07-12T03:36:01.913-05:002012-07-12T03:36:01.913-05:00Hi,
I converted a .rb file using ocra. The result...Hi,<br /><br />I converted a .rb file using ocra. The resultant exe runs fine on my windows PC (which has ruby) but gives an error on other windows PCs...<br /><br />"Windows can't find 'rubyw'. Make sure you typed the name correctly, and then try again. To search for a file, click the Start button, and then click Search."...<br /><br />Any tips????OCRA_newbiehttps://www.blogger.com/profile/11543647109495218800noreply@blogger.comtag:blogger.com,1999:blog-284600789737488130.post-4738550528688601192012-05-08T03:06:39.145-05:002012-05-08T03:06:39.145-05:00is ruby language helpfull in facebook applications...is ruby language helpfull in facebook applications ??Facebook Application Developershttp://www.carrotmedia.com/services/facebook-app-developmentnoreply@blogger.comtag:blogger.com,1999:blog-284600789737488130.post-54112192556313413292011-04-26T02:36:29.679-05:002011-04-26T02:36:29.679-05:00And now for the good news! It works with SHOES as ...And now for the good news! It works with SHOES as well !!!! (at least on win xp).<br /><br />I used Green Shoes (a shoes variant installed as a gem).<br /><br />I followed this procedure to install Green Shoes:<br /><br />http://vgoff.posterous.com/greenshoes-gem-is-now-on-rubygemsorg<br /><br />and then: gem install ocra<br /><br />But always check for up-to-date informations on Green Shoes at http://vgoff.posterous.com/ on how to install Green Shoes.<br /><br />Hope this helped. Bye.<br />Oh, and thanks for Ocra, it's great.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-284600789737488130.post-71890751857915784822011-01-09T08:23:32.812-05:002011-01-09T08:23:32.812-05:00https://github.com/larsch/ocra/issues#issue/6
Abs...https://github.com/larsch/ocra/issues#issue/6<br /><br />Absolutely fantastic. Thanks. The issue is simple to work around - just include a string constant with whatever DATA & load it into a StringIO object. From there on out it works the same way.<br />-SHAWN-Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-284600789737488130.post-7951929865318229162011-01-09T07:46:31.070-05:002011-01-09T07:46:31.070-05:00@ Anonymous:
The problem using the DATA idiom is ...@ Anonymous:<br /><br />The problem using the DATA idiom is a documented issue:<br /><br />https://github.com/larsch/ocra/issues#issue/6<br /><br />So there's probably a good chance it will be addressed in near-future releases.<br /><br />-DavidDavid Mullethttps://www.blogger.com/profile/05597492688893461137noreply@blogger.comtag:blogger.com,1999:blog-284600789737488130.post-5724084224984916782011-01-09T00:38:55.682-05:002011-01-09T00:38:55.682-05:00Tried using the DATA idiom & got the following...Tried using the DATA idiom & got the following:<br /><br />./boc.rb:33: uninitialized constant DATA (NameError)<br /> from C:/Ruby187/lib/ruby/gems/1.8/gems/ocra-1.2.0/bin/ocra:647:in `load'<br /> from C:/Ruby187/lib/ruby/gems/1.8/gems/ocra-1.2.0/bin/ocra:647<br /> from C:/Ruby187/bin/ocra:19:in `load'<br /> from C:/Ruby187/bin/ocra:19<br /><br />That's really the only twizzle I found tho. Great job!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-284600789737488130.post-73111917062468533852010-08-30T21:13:51.971-05:002010-08-30T21:13:51.971-05:00To all the people responsible for making this prog...To all the people responsible for making this program work, I salute you. Thank you! Thank you! Thank you!<br />Works beautifully! Keep it up!Unknownhttps://www.blogger.com/profile/07129462316988977945noreply@blogger.comtag:blogger.com,1999:blog-284600789737488130.post-54981335567051183992010-03-24T14:13:03.261-05:002010-03-24T14:13:03.261-05:00I've got a script that uses the pdf-reader gem...I've got a script that uses the pdf-reader gem. Pdf-reader stores some info in text files inside the gem directories. OCRA doesn't automatically include these text files. How can I get them included automatically, or manually add them to the right place?Unknownhttps://www.blogger.com/profile/15166773191281109666noreply@blogger.comtag:blogger.com,1999:blog-284600789737488130.post-48300825438088040282010-02-09T16:37:50.150-05:002010-02-09T16:37:50.150-05:00I still have a console window popping up, even tho...I still have a console window popping up, even though I'm 'compiling' a .rbw file. Any ideas?<br /><br />If you're so inclined you can see my code at http://github.com/jphastings/WinWeblocJPhttps://www.blogger.com/profile/14915412236408512152noreply@blogger.comtag:blogger.com,1999:blog-284600789737488130.post-19476490389580575042009-06-09T14:40:23.013-05:002009-06-09T14:40:23.013-05:00Install the latest rubygems version to avoid Threa...Install the latest rubygems version to avoid Thread errorAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-284600789737488130.post-71533881264637868152009-06-09T14:20:44.913-05:002009-06-09T14:20:44.913-05:00I have used David's code:
http://pastie.org/48...I have used David's code:<br />http://pastie.org/487330<br />and the latest version of wxruby. <br />Having thread error:<br /><br />C:/DOCUME~1/compile/LOCALS~1/Temp/seb1F.tmp/lib/ruby/site_ruby/1.8/rubygems.rb:2<br />11:in `synchronize': stopping only thread (ThreadError)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-284600789737488130.post-21155533254903018702009-05-26T17:06:52.963-05:002009-05-26T17:06:52.963-05:00Thanks to David's help I discovered that my progra...Thanks to David's help I discovered that my program works okay with the latest version of ocra (ocrasa.rb) after I installed the latest version of wxRuby (2.0.0), which also brought in Ruby 1.9.1.<br /><br />Ross Goodell<br />rossgoodell@hotmail.comAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-284600789737488130.post-87914051140117635092009-05-24T17:12:26.403-05:002009-05-24T17:12:26.403-05:00Thanks, BackOrder!
Your suggestion worked like a ...Thanks, BackOrder!<br /><br />Your suggestion worked like a charm for me, and I mentioned it in my latest post here.<br /><br />DavidDavid Mullethttps://www.blogger.com/profile/05597492688893461137noreply@blogger.comtag:blogger.com,1999:blog-284600789737488130.post-9306872792477448612009-05-23T10:09:40.590-05:002009-05-23T10:09:40.590-05:00@Ross:
I saved the following code...
http://past...@Ross:<br /><br />I saved the following code...<br /><br />http://pastie.org/487330<br /><br />...as "wxtest.rbw".<br /><br />I then opened a console window, navigated to the directory containing the above script, and executed the command:<br /><br />ocra.rb wxtest.rbw<br /><br />OCRA compiled the code into "wxtest.exe", which runs as it should, either from the command line or by double-clicking the file icon.<br /><br />This is on Vista.<br /><br />Hope that helps. Feel free to send me your code.<br /><br />DavidDavid Mullethttps://www.blogger.com/profile/05597492688893461137noreply@blogger.comtag:blogger.com,1999:blog-284600789737488130.post-41539217490435149752009-05-22T13:32:40.848-05:002009-05-22T13:32:40.848-05:00Thanks. With OCRA and your clear directions it pr...Thanks. With OCRA and your clear directions it produced an executable. However, when I tried to run the executable, nothing happened, even when I right clicked the .exe file and selected "Run as ..." and deselected the option to protect my computer and data before clicking OK. I am using wxRuby for the windowing interface and am wondering if that is not working within an OCRA created executable. Any thoughts would be appreciated.<br /><br />Ross<br />rossgoodell@hotmail.comAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-284600789737488130.post-13377240537147288392009-05-20T15:02:51.481-05:002009-05-20T15:02:51.481-05:00"An option to avoid fully running the script would..."An option to avoid fully running the script would be nice, similar to RubyScript2Exe's exit if RUBYSCRIPT2EXE.is_compiling? idiom."<br /><br />exit if Object.const_defined?(:Ocra)<br /><br />Enjoy.BackOrderhttps://www.blogger.com/profile/18350414721849931623noreply@blogger.com