For issues relating to developing in Ruby, version 1.9.2. If your question applies to Ruby in general, use the tag [tag:ruby].
Questions tagged [ruby-1.9.2]
234 questions
0
votes
1 answer
RVM - can not install gem thrift on Ubuntu 11.10
I use Ubuntu 11.10 and ruby 1.9.2
I can not install thrift gem on my machine
$ gem install thrift --no-ri --no-rdoc
Building native extensions. This could take a while...
ERROR: Error installing thrift:
ERROR: Failed to build gem native…

Sayuj
- 7,464
- 13
- 59
- 76
0
votes
3 answers
issues running jiraSOAP from ruby
I am trying my hands on accessing jira from ruby using the jiraSOAP gem.
I'm running ruby 1.9.2
But the moment I pass in my login credentials, I get the following error:
RuntimeError: The response is not a valid SOAP envelope
from…

rb512
- 6,880
- 3
- 36
- 55
0
votes
1 answer
uninitialized constant YARD::Handlers (NameError) - OSX 10.7.2, XCode 4.2, Ruby 1.9.2 using RVM,
I'm getting the following error whenever trying to start a rails server.
/Users/craigspaeth/.rvm/gems/ruby-1.9.2-p290/gems/yard-dm-0.1.1/lib/yard-dm/property_handler.rb:5:in `': uninitialized constant YARD::Handlers (NameError)
I'm…

Craig
- 540
- 5
- 14
0
votes
3 answers
Installing Gems without rvm, as root, with explicit version of ruby
I've decided to get rid of rvm, and I'm having trouble compiling a gem with my new version of ruby 1.9.2. The gem requires 1.9.2, I have it, yet says it can't install without, so the error messages makes no sense.
How can I explicitly tell the gem…

JZ.
- 21,147
- 32
- 115
- 192
0
votes
2 answers
does every gem have its own rake?
Does every gem have its own rake? Because I was doing android development and I created app using the z$ rhogen app z. and then i did $rake run:android and the android emulator came up. But when I create an app using $rhosync app then…

uday
- 8,544
- 4
- 30
- 54
0
votes
1 answer
Rails 2.3/3.1 TimeZone calculation/parsing performace gap
Why does this code
500.times { Time.now.in_time_zone('Helsinki') }
take several seconds with Rails 3.1 while it takes only a split second in Rails 2.3 (both with Ruby 1.9.2-p290)?
I discovered this by searching for a cause for an extremely slow…

Nico
- 881
- 1
- 6
- 19
0
votes
1 answer
How do I upgrade from Ruby 1.8.7 to Ruby 1.9.2 for Rails 2.3.8 app?
I have searched all over and cannot find anyone with the same problem.
I am testing upgrading a large Rails app running Rails 2.3.8 with Ruby 1.9.2 using rvm and nginx+passenger (currently running on 1.8.7 in production).
I'm using the mysql2…

simianarmy
- 1,485
- 10
- 13
0
votes
1 answer
Rails 3 Ruby 1.9.2: UTF-8 characters show garbled in console and view
My database table has a column with utf8_general_ci collation.
The database.yml has encoding: utf8
The config/application.rb has: config.encoding = "utf-8"
When I use mysql command line and directly query the field it shows:
3√5^2 = 5^(2/3); 5^(2/3)…

Yoni Baciu
- 2,667
- 1
- 22
- 28
0
votes
2 answers
Bundler invalid sequence in US-ASCII
Since upgrading my to using ruby 1.9.2 I've seen these kind of errors a lot using bundler (on Mac):
Using aasm (2.3.1) from git://github.com/rubyist/aasm.git (at master) .../specification.rb:733:
in `gsub': invalid byte sequence in US-ASCII…

DEfusion
- 5,533
- 5
- 44
- 60
0
votes
1 answer
with_index in ruby 1.9.2
I upgraded to
ruby 1.9.2p290 (2011-07-09 revision 32553)
Any idea why I get
ArgumentError in Territories#show
Showing /home/Thomas/territory_management/app/views/territories/show.html.erb where line #24 raised:
wrong number of arguments (1 for…

Thomas
- 693
- 2
- 11
- 23
0
votes
1 answer
Ruby 1.9: Break statement from recursive functions now a syntax error?
I'm updating a bundle (GetBundles) to be compatible with Ruby 1.9 (1.9.2 specifically).
This script uses
break if $close
in a (I'm assuming) recursive function. I'm assuming this is a recursive function since break doesn't make sense otherwise…

Brandon
- 1,956
- 18
- 18
0
votes
1 answer
Rails 3.1 Asset Pipeline: asset_path helper doesn't add fingerprints in css.erb files
My .css.erb file uses the asset_path helper to add image urls like so:
background: url(<%= asset_path('bg_image.gif') %>);
I would expect the asset_path helper to append a md5 fingerprint, like it does in the view files when doing rake…

Nico
- 881
- 1
- 6
- 19
0
votes
1 answer
Ruby Hash statement working in irb and giving error in terminal
My hash statement is working fine in try ruby.org where as its giving error in my terminal. Why so?
Here is the error: http://f.cl.ly/items/25330q3X33112u1v370P/err.tiff
Thanks!

Ava
- 5,783
- 27
- 58
- 86
0
votes
2 answers
Shortening enumeration code
What is a succinct way of accomplishing this in Ruby?
I simply want to wait until all objects are running. This seems too wordy.
# arr contains objects that respond to running?
all_running = false
until all_running
sleep 0.5
all_running =…

Morrowless
- 6,856
- 11
- 51
- 81
0
votes
1 answer
zsh: correct 'puts' to 'tput'
I have rvm and ruby version 1.9.2 installed. I have Mac OS X 10.7. Why is puts not getting recognized?
puts ('Hello Ruby')
zsh: correct 'puts' to 'tput' [nyae]?
Thanks!

Ava
- 5,783
- 27
- 58
- 86