Mongrel119 (10/1/2009 3:02:54 AM) comp.lang.ruby Is anyone ever going to update Mongrel to run on Ruby 1.9.1? ... Rong
Parsing dates #2225 (9/25/2009 4:31:05 AM) comp.lang.ruby When I do this: dob="05/01/1968" x=Date.parse(dob) x.month I get 1 instead of 5. How do I do this? ... Rong
start_with423 (9/22/2009 2:05:21 AM) comp.lang.ruby Can someone explain why this doesn't work? class Person attr_accessor :firstName P=[] def initialize P << self end def self.find_person(part) P.each {|e| if e.firstName.start_with(part) then ... Rong
Command line #21240 (9/15/2009 3:45:24 AM) comp.lang.ruby Please forgive this stupid newb question but I thought it was possible to send a command to the ruby interpreter without using IRB. ruby puts "hello" This command just returns an error that there is no file or... Rong
Mixins #3424 (9/8/2009 4:40:03 AM) comp.lang.ruby I have the following code separated in 2 files. module UsefulFeatures def class_name self.class.to_s end end ------------------------------------- require UsefulFeatures class Person include Us... Rong
1.9.1030 (3/23/2009 8:33:49 PM) comp.lang.ruby I tried to instal Ruby 1.9.1 based on the instructions at hivelogic.com but after completing the process I discovered that the Ruby.h file was missing (Discovered when I tried to install Rmagick.). I fired up T... Rong
RMagick #2330 (2/26/2009 8:09:20 PM) comp.lang.ruby I installed the ImageMagick binary but when I try to install RMagick (gem) I get the foloowing error- /usr/local/bin/ruby extconf.rb install rmagick checking for Ruby version >= 1.8.2... yes checking for gcc...... Rong
RubyGems #2146 (2/6/2009 9:21:12 PM) comp.lang.ruby I recently upgraded to Ruby 1.9.1 and I have noticed quite a few blog posts regarding gems being made compatable with 1.9.1. But when I run either gem outdated or sudo gem update I get nothing. What's going on ... Rong
Calling a Method422 (9/17/2008 4:28:15 PM) comp.lang.ruby If I have a file that contains a method that takes one parameter. and I want to call the method from the command line, how do you do that? I know how to run a script from the command line but not how to call a ... Rong
1.9720 (9/15/2008 2:24:07 AM) comp.lang.ruby Does anyone have any idea when 1.9 will be ready for production release? ... Rong
ron.green's replies:
Items(9) /1
installing 1.8.7534 (6/1/2008 6:25:29 AM) comp.lang.ruby Would someone please explain to this idiot (me) how to upgrade my leopard installation to ruby 1.8.7. I've seen the instructions at Hivelogic but I don't want to install it under a different path. HELP!! -- Po... ron.green(39)
RI not working238 (6/7/2008 4:43:36 AM) comp.lang.ruby I have Ruby 1.87 installed on OS X 10.5.3.. When I try ri gc (from the Pickaxe book) or ri Array I get the following: ----------------------------------------------------------- Class: Array (no descripti... ron.green(39)
insert into textfile227 (9/14/2008 6:42:03 AM) comp.lang.ruby I have a text file that I want to insert a new line into between the first and second line. Is there a way to do this? ... ron.green(39)
Calling a Method422 (9/17/2008 4:28:15 PM) comp.lang.ruby If I have a file that contains a method that takes one parameter. and I want to call the method from the command line, how do you do that? I know how to run a script from the command line but not how to call a ... ron.green(39)
Ruby 1.9, Rubygems, and .gemspec warnings1329 (9/7/2009 8:02:46 AM) comp.lang.ruby [Note: parts of this message were removed to make it a legal post.] Hi all I'm getting a massive amount of gemspec warnings to STDERR in Ruby 1.9.1 whenever 'rubygems/specification' gets required. The error ... rsanheim(156)
Mixins #3424 (9/8/2009 4:40:03 AM) comp.lang.ruby I have the following code separated in 2 files. module UsefulFeatures def class_name self.class.to_s end end ------------------------------------- require UsefulFeatures class Person include Us... ron.green(39)
Command line #21240 (9/15/2009 3:45:24 AM) comp.lang.ruby Please forgive this stupid newb question but I thought it was possible to send a command to the ruby interpreter without using IRB. ruby puts "hello" This command just returns an error that there is no file or... ron.green(39)
start_with423 (9/22/2009 2:05:21 AM) comp.lang.ruby Can someone explain why this doesn't work? class Person attr_accessor :firstName P=[] def initialize P << self end def self.find_person(part) P.each {|e| if e.firstName.start_with(part) then ... ron.green(39)