Ruby one-file launcher that sets up environment? Hello I am trying to run some JRuby script and I have to set the CLASSPATH for my script to work. I use a launcher locally so I can run the script as /scripts/mylauncher script.rb but if I wanted to distribute a sample script this is somewhat troublesome. I tried to embed the ruby code in a shell script... 25 May 2010 17:57
Reporting Bugs about REXML ? On Sat, May 15, 2010 at 07:55:44AM +0900, Michael Jackson wrote: Just FYI, REXML is probably the worst possible XML library available for Ruby so I wouldn't waste my time with it if I were you. There are lots of better alternatives out there, including libxml-ruby and Nokogiri. Well, I feel a little bi... 26 May 2010 11:20
Ruby 1.8.7 and1.9.1 installation problems Hi all I'm running on my machine vindows vista home and ajust can not install ruby 1.8.7 or 1.9.1 on my machine. I used window-installer for this ruby release but after installing i can not install any gems like rails or wxruby . After tipping in cmd : gem install rails,it sais gem is not a internal or external co... 23 May 2010 22:18
fgci -> ruby-fcgi hi, did fcgi gem changed its name to ruby-fcgi? -- Posted via http://www.ruby-forum.com/. ... 22 May 2010 11:38
Dynamically adding methods to a class Adding to the Array class' instance methods: class Array def my_method end end Array.instance_methods.grep /my_meth/ # => [:my_method] Adding to the Array class itself: class Array # More than one idiom in use here.. def self.my_other_method end end Array.methods.grep /my_oth/ # [:... 22 May 2010 10:32
Opening a stream to multiple (possibly zipped) files > Maybe you could reimplement the Perl code trying to decompress always and trapping the exception when the file is not compressed? Something like this: irb1.9 -rfacets/zlib -rzlib -rstringio irb(main):001:0> Zlib.decompress("plain text") Zlib::GzipFile::Error: not in gzip format That is a good id... 22 May 2010 10:32
Handling Events - Help Could you post a sytax for this and I will see if I can help. -- Posted via http://www.ruby-forum.com/. ... 22 May 2010 10:32
wcswidth, ruby 1.9, and string encodings Reformatted excerpts from William Morgan's message of 2010-05-10: I need one other bit of functionality too: the ability to get a substring of a specific display width. I assume that is beyond the scope of your terminfo package, so I am probably going to wrap the two methods up into a gem. I've finally p... 22 May 2010 10:32
watir and shoes problem Hi I was trying to write a scrip useing the watir gem and shoes gui. I know how to install the gem to shoes but i get the error hoe requires RubyGems version >= 1.3.1 This happens as shoes trys to install the gem. I have the most recent ruby gems so cant update, cant find a solution online anywhere Has any... 22 May 2010 10:32
watir and shoes problem Mark Kirby wrote: Hi I was trying to write a scrip useing the watir gem and shoes gui. I know how to install the gem to shoes but i get the error hoe requires RubyGems version >= 1.3.1 This happens as shoes trys to install the gem. I have the most recent ruby gems so cant update, cant fin... 22 May 2010 10:32 |