Questions tagged [ruby-1.8]

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

Ruby is an open-source dynamic object-oriented interpreted language created by Yukihiro Matsumoto (Matz) in the 1990s.

Related tags:

140 questions
0
votes
2 answers

Ruby 1.8.7 -> upgrade to 1.9.2

I have my app built on Rails 3.0.9 and Ruby 1.8.7. My app works fine, but with one important negative: it's really slow. I have been looking for possible solution for this problem and the best solution seems to be upgrade of my current Ruby version…
user984621
  • 46,344
  • 73
  • 224
  • 412
0
votes
1 answer

getting load error while trying to use jira4r-jh gem in irb

I downloaded the jira4r-jh gem and tried to test it from irb, but as soon as I type require 'jira4r-jh' I get a load error complaining about a missing gem. I am using ruby 1.8.7
rb512
  • 6,880
  • 3
  • 36
  • 55
0
votes
2 answers

Position of the method in source file

When I try to extract the position of a method in the source code, I can do: class Object def source_position puts caller.first end end so that when I use it in a chain that is located on the n-th line of a source code, it…
sawa
  • 165,429
  • 45
  • 277
  • 381
0
votes
1 answer

Accessing FB Graph API using Ruby 1.8 and Rails

I'm adding Facebook functionality on to a site running Ruby 1.8.6 and rails 1.2.3. Are there any gems that will let me use facebook's graph api with these versions?
pkinsky
  • 1,718
  • 2
  • 23
  • 28
0
votes
1 answer

Parsing time in Ruby 1.9.2 is not same as Ruby 1.8.7?

Parsing this in ruby 1.8.7 time_str = "Sun Feb 01 0111 00:00:00 GMT+0530 (IST)"
Time.parse(time_str)
output Tue Feb 01 00:00:00 +0530 2011 ruby 1.9.2 time_str = "Sun Feb 01 0111 00:00:00 GMT+0530 (IST)"
Time.parse(time_str)
suren
  • 969
  • 4
  • 22
0
votes
0 answers

Convert Datetime with arbitrary time zone to a corresonding Time object, keeping the zone, in ruby 1.8.6

I'm using ruby 1.8.6 on an old server. I have a DateTime object which is created like this: dt = DateTime.new(2021, 8, 25, 3, 30, 0).change(:offset => "+0200") => Wed, 25 Aug 2021 03:30:00 +0200 That's fine as is. However, I want it to be a Time…
Max Williams
  • 32,435
  • 31
  • 130
  • 197
0
votes
2 answers

Ruby Permutation (Builtin) - Result does not contain adjacent identical letters

Thank you for your help yesterday and for teaching me something new as well. :) I have another question based on permutation... the algorithm I have works however I have the issue that identical adjacent characters are missing from the list…
0
votes
2 answers

Permutation gem

I am trying to get a list of strings that are permutations of letters, numbers and the dash that vary in length from 1 to 63. I am using the permutation gem, and trying to get strings with join(''). length = 1 alphabet = [('a'..'z').to_a,…
0
votes
1 answer

Implementing auto complete for more than one field in Rails

I have an app, which implements a group feature. Each group has n members. Also, each group has a group specific profile pic to it. I have been able to implement auto complete for the group feature keeping in mind the group name alone. I have…
boddhisattva
  • 6,908
  • 11
  • 48
  • 72
0
votes
1 answer

Passenger on Ruby 1.8.5

I have a situation here where one of my clients runs his production code from 2008 till date on Ruby 1.8.5 with mongrel and he denies to update the ruby/rails versions. For the webserver, mongrel is hell out of consuming all the memory out…
0
votes
2 answers

Why does this named_scope create a NoMethodError?

I don't see where this code is creating this NoMethodFound error, and would really like any helpful suggestions. Here's the error message: NoMethodError in UploadsController#create The relevant parts of my model looks like this: named_scope…
rixter
  • 1,237
  • 3
  • 19
  • 32
0
votes
2 answers

Login with Facebook via Rails

As a relative newbie to Rails, I'm not sure how to approach this. I am looking to add a basic "Login with Facebook" feature to a practice site I am developing. I am stuck on two fronts: Most Rails plugins dealing with Facebook seem out of date or…
Dave W.
  • 1,576
  • 2
  • 18
  • 29
0
votes
3 answers

How to run code with enumerator in Ruby 1.8?

I have code like this my_enum = [1,2].to_enum puts my_emum.next and it doesn't work I understand that the enumerator is available in Ruby 1.8 as an extension. How to install it?(I'm new to ruby)
IAdapter
  • 62,595
  • 73
  • 179
  • 242
0
votes
1 answer

How do I re-pass multiple method arguments in Ruby 1.8.5?

I'm using ruby 1.8.5 and I'd like to use a helper method to help filter a user's preferences like this: def send_email(user, notification_method_name, *args) # determine if the user wants this email return if…
ddux
  • 1
0
votes
0 answers

GCM response results is not having "Not Registered IDS" list

I am using curl to send push notifications using GCM. Here it is as follows: curl --header 'Authorization: key=myAPiKey' --header 'Content-Type: application/json' https://android.googleapis.com/gcm/send -d '{"registration_ids":["registration_ids"],…
Ranzit
  • 1,327
  • 2
  • 13
  • 32