Iteration through File.file? misses entries for which File.file?(entry) == true -- FIXED Thanks for all the responses! I feel so thoroughly helped :) On Aug 2, 7:01 am, Marvin Gülker <sutn...(a)gmx.net> wrote: By calling Dir.foreach("dir") you'll get "my_file" and "my_second_file". Your File.file? statement then checks for the presence of the filenames in the current working directory -- where th... 2 Aug 2010 16:57
1.9.2 RC2 Uses 1.9.1 for various directories Using 1.9.2 RC2 and building from source, I am seeing the install use 1.9.1 as the directory that various sub dirs are using, like vendorlib, gems, etc. In previous releases, this was usually 1.9. Is the change to a 3-level version for these dirs intended, and if so, why is 1.9.1 used for a 1.9.2 release? -- Pos... 2 Aug 2010 16:57
Pingecho, causing SocketError. I have a strange problem. The script posted at the end off this post is not working properly on one of my computers. If I run it alone, it works just fine, but not inside one of my scripts. The script works fine on all other computers that I have tested. Do anyone now what could be causing this. //Walle It ra... 2 Aug 2010 14:44
ANN: Sequel 3.14.0 Released Sequel is a lightweight database access toolkit for Ruby. * Sequel provides thread safety, connection pooling and a concise DSL for constructing SQL queries and table schemas. * Sequel includes a comprehensive ORM layer for mapping records to Ruby objects and handling associated records. * Sequel supports ad... 2 Aug 2010 12:32
SVG generation gem? Cairo? Rick DeNatale wrote: On Fri, Jul 30, 2010 at 2:11 PM, William Rutiser <wruyahoo05(a)comcast.net> wrote: Rick DeNatale wrote: I've recently started playing with an Epilog laser cutter, and I find myself wanting to programmatically generate SVG files. I googled for ruby and svg thi... 2 Aug 2010 12:32
File.new ("write.txt", "w+") results in error Hello everyone, I am new to Ruby. If there are spaces between new and (, then ruby 1.9.1p376 considers it a syntactical error. For example: File.new ("write.txt", "w+") => syntax error, unexpected ',', expecting ')' File.new ("write.txt", "w+") ^ ....: syntax error, unexpected ')'... 4 Aug 2010 05:59
IO.popen I assume the doc's are "just wrong" when they say you can access an IO.popen with any mode you'd like? http://ruby-doc.org/core/classes/IO.html#M002242 IO.popen("gocr", "rw") ArgumentError: invalid access mode rw Is this expected? -r -- Posted via http://www.ruby-forum.com/. ... 2 Aug 2010 11:25
Iteration through File.file? misses entries for which File.file?(entry) == true Kyle Barbour wrote: Hello everyone, I'm new to Ruby, so I'm most likely making an elementary mistake. However, searching Google didn't help me find my answer, and after mucking around with irb I still haven't figured it out. I wrote a method that was intended to take all of the files in a given ... 2 Aug 2010 11:25
Installing Ruby 1.9.2 on Win7 Hi, I'm a total noob to Ruby and am following the pick axe book and installing Ruby for the first time using the OneClick installer. I want to us RoR 3.0 and it gives me errors with Ruby 1.9.1 and compatibility. I was reading that you can use rvm to install Ruby versions but that appears to only be for unix? What'... 2 Aug 2010 12:32
Iteration through File.file? misses entries for which File.file?(entry) == true Hello everyone, I'm new to Ruby, so I'm most likely making an elementary mistake. However, searching Google didn't help me find my answer, and after mucking around with irb I still haven't figured it out. I wrote a method that was intended to take all of the files in a given directory and put them into an arra... 2 Aug 2010 09:13 |