Questions tagged [ruby-1.9.1]

For issues relating to developing in Ruby, version 1.9.1.

Use this specific tag along with the generic one: .

16 questions
69
votes
12 answers

Why is this RMagick call generating a segmentation fault?

I've been banging my head against the wall for the better part of an hour trying to figure out what's going wrong here, and I'm sure (or rather hoping) it's something fairly obvious that I'm overlooking. I'm using Ruby 1.9.1, Sinatra 1.0, and…
Grant Heaslip
  • 977
  • 2
  • 10
  • 16
20
votes
2 answers

Rails initializes extremely slow on ruby 1.9.1

I just got my rails 2.3.8 app running on ruby 1.9.1. To get into the console, start the webserver, anything that initializes rails, takes 3 - 4 times longer in ruby 1.9 than in ruby 1.8.7. I'm using ruby version managers so I can easily switch…
Ben Johnson
  • 201
  • 2
  • 3
19
votes
1 answer

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 that looks like the following: GUI_Tests/Tests/test_spec.rb GUI_Tests/windows_gui.rb GUI_Tests/upload_tool.rb when I run spec for the…
Bobby B
  • 2,232
  • 3
  • 24
  • 31
12
votes
6 answers

rake aborted! stack level too deep

Possible Duplicate: Rails 3.0 & Ruby 1.9.2rc: Rake commands return 'already initialized constant' & stack level too deep errors. Any ideas Am using Ruby version 1.9.1 on windows vista. Am getting the rake aborted error for any rake commands am…
Shankar
  • 661
  • 2
  • 6
  • 14
3
votes
3 answers

How can I run a Rails 1.2.5 application on ruby 1.9?

I have a old app made on rails 1.2.5, this application have alot of access per day. I intend to upgrade my server (a joyent accelerator) to run ruby 1.9.x and work with rails 3 but I can't stop or move this app to another server. Have any way to run…
GodFather
  • 2,574
  • 3
  • 23
  • 34
2
votes
4 answers

Ruby 1.9.1 and Aptana Studio 3 Cant get debug to work (Windows)

So for the last few weeks ive been reading posts on SO and other sites about Ruby IDE's, especially for support with Ruby 1.9. Aptana/RadRails plugin looks amazing as im very used to the eclipse environment, so I thought id give it a try. I…
Aly
  • 14,299
  • 42
  • 109
  • 181
2
votes
4 answers

Ruby 1.9.1 standard library documentation online anywhere?

rubydoc.org has the core documentation for Ruby 1.8.x and Ruby 1.9.1, and for the 1.8.x standard library. But it doesn't document the 1.9.1 standard library, and nor does anywhere else I can find online (though Google shows other people looking for…
Ian Dickinson
  • 12,323
  • 9
  • 34
  • 63
2
votes
1 answer

Error when i start the rails server on windows

when i try to start the rails server this error ever appears C:\Arthur\Ruby\Aplicações em ruby\blog>rails server => Booting WEBrick => Rails 3.2.6 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to…
Arthurmoreno
  • 53
  • 1
  • 3
1
vote
1 answer

module_function example in the ruby documentation

I saw the example in the module_function in the ruby documentation. I do not understand the latter part of the code where Mod.one returns the old "this is one" and the c.one returns the updated "this is the new one". How does this happen This is the…
felix
  • 10,774
  • 12
  • 63
  • 92
1
vote
3 answers

defining my_each in terms of my_times

I'm reading The Well-Grounded Rubyist and have come across an extra credit challenge to which there is no answer. class Array def my_each c = 0 until c == size yield(self[c]) c += 1 end self end end An example is…
Jonathan
  • 8,402
  • 8
  • 49
  • 64
0
votes
0 answers

Ruby 1.9.1 Console - invalid byte sequence in UTF-8

I cannot use Rails console. Anything that I write there I get the following error. Any idea? /Users/macuser/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/irb/ruby-lex.rb:773:in `identify_identifier': invalid byte sequence in UTF-8…
Tony
  • 9,552
  • 18
  • 77
  • 131
0
votes
1 answer

uninitialized constant Syck::DefaultResolver

I'm a fairly new dev to ruby and especially rails, but I do have some perl and php experience. Anyway, I'm trying to get rails version 3 configured on Ubuntu 10.10 using the latest ruby package: v1.9.2-p136. It isn't going too well, though better…
jayands
  • 123
  • 1
  • 12
0
votes
3 answers

Ruby Strange Error

Whenever I require a file in ruby or irb I get this error: LoadError: no such file to load -- (insert any filename).rb from :29:in `require' from :29:in `require' …
Ell
  • 3,840
  • 5
  • 30
  • 58
0
votes
2 answers

Ruby 1.9.1 is not working under rvm, mac os x

I had rvm installed for several months and it has system (1.8.7) and installed (1.9.1) rubies listed. And both versions worked fine. Yesterday I tried to update 1.9.1 but after installation it wasn't working and system ruby gone from rvm list. I…
Nimf
  • 1
  • 1
0
votes
1 answer

What command line options are available for test/unit in ruby 1.9.1?

What command line options are available if you're using the Test::Unit compatibility layer in ruby 1.9.1? Background: ruby test/test_all.rb --help provides information on what command line options are available in ruby 1.8.7, but not in ruby 1.9.1…
Andrew Grimm
  • 70,470
  • 47
  • 186
  • 310
1
2