Questions tagged [ruby]

Ruby is a dynamic, reflective, general-purpose object-oriented programming language that combines syntax inspired by Perl with Smalltalk-like features.

Ruby

Ruby is an open-source dynamic object-oriented interpreted language that combines the good bits from Perl, Smalltalk and Lisp. It supports multiple programming paradigms. Ruby's primary purpose is to "help every programmer in the world to be productive, and to enjoy programming, and to be happy." Ruby is a dynamic, open source programming language with a focus on simplicity and productivity.

Ruby mindshare spiked around 2005 due to Ruby on Rails, a popular web application framework built on Ruby.

You can download the Ruby source code from http://www.ruby-lang.org/en/downloads/ or from GitHub.

Alternative Ruby implementations

Knowledge Base

Where to start

Tools

Free Ruby Programming Books

161 questions
9
votes
1 answer

How to use specify version of ruby for shell script with rbenv?

I'm going to write some short script in ruby. And I want to specify ruby version by shebang or in another way. I'll use the script in many environments. I'm using rbenv in the evironments, but it's not sure which version of ruby is installed. The…
ironsand
  • 5,205
1
vote
1 answer

"Failed to build gem native extension" when installing xively-rb for raspberry Pi

I'm trying to install the xively Ruby gem on the Raspberry Pi - http://rubygems.org/gems/xively-rb However, during install the following occurs: gem install xively-rb Building native extensions. This could take a while... ERROR: Error…
barry
  • 205
0
votes
1 answer

Ruby won't update

Help! Trying to install Cocoapods on my mac, kept getting an error, thought it might be something to do with having a really old version of Ruby. Then this happened: % ruby -v ruby 2.6.10p210 (2022-04-12 revision 67958)…
0
votes
1 answer

Why is Ruby using 100% CPU in startup?

I installed GitLab on an EC2 instance a while ago, compiling Ruby from scratch: $ ruby -v ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] $ which ruby /usr/local/bin/ruby What's really strange is that whenever I start anything with this…
Naftuli Kay
  • 39,676