Top "Ruby-1.8" questions

For issues relating to developing in Ruby, version 1.8. If your question applies to Ruby in general, use the tag [tag:ruby].

Ruby: require vs require_relative - best practice to workaround running in both Ruby <1.9.2 and >=1.9.2

What is the best practice if I want to require a relative file in Ruby and I want it to …

ruby ruby-1.9 ruby-1.8
What is the difference between Ruby 1.8 and Ruby 1.9

I'm not clear on the differences between the "current" version of Ruby (1.8) and the "new" version (1.9). Is there an "easy" …

ruby ruby-1.9 ruby-1.8
Parse Date string in Ruby

I have a String 20120119 which represents a date in the format 'YYYYMMDD'. I want to parse this string into a …

ruby ruby-1.8
Ruby require 'file' and relative location

So I'm writing some rspec tests and I'm embarrassed at my lack of Ruby understanding. I have a file structure …

ruby require ruby-1.8 ruby-1.8.7 ruby-1.9.1
(Ruby) Getting Net::SMTP working with Gmail...?

Does anyone have any quality (and up-to-date) information regarding sending mail via Gmail using Ruby's Net::SMTP? I've seen several …

ruby smtp email ruby-1.8
Getting error "Cannot allocate memory" for Rails

In my project there is one script that returns the list of products which I have to display in a …

ruby-on-rails ruby ruby-1.8
How to dynamically create instance methods at runtime?

[ruby 1.8] Assume I have: dummy "string" do puts "thing" end Now, this is a call to a method which has …

ruby metaprogramming ruby-1.8
Preventing timeout when connecting to a URL

I want to see the time taken to access a url using Benchmark in the code below. I also tried …

ruby ruby-1.8