Ruby is a dynamic, open source programming language with a focus on simplicity and productivity.

learn more… | top users | synonyms

0
votes
0answers
9 views

Ruby RuntimeError on launching terminal (Mac)

Whenever I open the terminal on Mac I get this error: /System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby: invalid option --1 (-h will show valid options) (RuntimeError) ...
0
votes
1answer
27 views

Ruby using 100% CPU on OSX

I'm doing web development and have Ruby running a bunch of tasks.. Grunt serve, Sublime plugins, Brew etc... Nothing fancy. Just some npm installs and a grunt serve command inherited from ...
0
votes
0answers
22 views

How to avoid gem update error in windows?

Showing below error C:\Ruby21>gem update Updating installed gems ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: ...
0
votes
0answers
16 views

Can vim/gvim show “self” when editing a Ruby file?

When editing Ruby files in gvim, I'd like to be able to see which Ruby context the cursor is in. For example, if I have a file with several nested modules and classes, I want to be able to see what ...
1
vote
1answer
39 views

Windows 7 CLI not recognizing commands without specifying extension

I've apparently gone and mucked up my system in a strange way. Windows 7's cmd prompt is no longer recognizing any executable or batch files unless I explicitly type their extension. ...
1
vote
1answer
53 views

Homebrew error in OS X. Bad interpreter: Too Many levels of symbolic links. Undefined error: 0

I've been searching for an answer to this problem for a few weeks now, and while I've seen similar problems, none that I have found have been exactly like the error I'm experiencing. I've tried ...
0
votes
1answer
21 views

Force SublimeREPL to use specific version of Ruby

I installed SublimeREPL for use with Ruby. It attempts to run code on Ruby 1.8.7 and I would like it to run on 1.9.3, and later on other versions of Ruby. I'm not sure where it's inheriting the ...
0
votes
1answer
49 views

Reinstall Ruby framework on OS X Yosemite

I installed home brew on Yosemite and it messed up the System built-in framework. I couldn't use the Ruby gems already installed or the new ones installed after Homebrew. Instead of fixing all the ...
1
vote
0answers
21 views

502 Bad, Gateway Ruby on Rails [closed]

Our website is currently down(hosted on Digital Ocean) with error code "502 Bad Gateway" and our web developer is currently out on Vacation. I am just an IT person on our network and I don't have web ...
1
vote
1answer
27 views

NoMethodError with Ruby when installing SoundCloud 2000 client for CLI

I’m trying to install SoundCloud2000 on my MacBook running Mac OS X 10.8.5. I have Ruby 2.2.0, mpg123, and portaudio installed. Installing SoundCloud 2000 as a GEM seems to work fine: gem install ...
0
votes
1answer
31 views

Losing line breaks when pasting code into Nitrous

When pasting a bloc of Ruby code from Atom or the Nitrous text editor into the Nitrous console, all line breaks are lost. Multiple lines of code are concatenated into one long string, separated by a ...
0
votes
0answers
92 views

Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (cannot load such file — mysql2) (LoadError)

I am trying to install Redmine on Ubuntu and currently having an error if open Redmine page: Please install the mysql2 adapter: gem install activerecord-mysql2-adapter (cannot load such file -- ...
0
votes
0answers
67 views

RVM wants me to edit PATH in .bash_profile - I fear it is a mess

I am trying to get an Omega sub-theme running on my local machine (OSX 10.10) with Acquia Desktop Dev. Trying to run isolated ruby in sub-theme directory. When I use rvm list I get: Warning! PATH is ...
0
votes
0answers
50 views

Gems installed with the --user-install option into the OS X home folder aren't working properly afterwards.

On previous OS X revisions i had installed my gems with sudo. With Yosemite i wanted to change that and install without sudo. To leave the default gems in /Library/Ruby/Gems/2.0.0 ...
0
votes
0answers
10 views

ActiveSupport requires ruby version >= 1.9.3., but Ruby 2.1.5 installed

I am getting this error when trying to install middleman: root@ThinkPad-T410:~# sudo gem install -V middleman root@ThinkPad-T410:~# ERROR: Error installing middleman: root@ThinkPad-T410:~# ...
0
votes
2answers
38 views

Why does systemd process stop as soon as it starts for foreman server process?

I am trying to export a simple Ruby app using foreman. Based on its usage for systemd, I appear to be doing things correctly. However, when I start the target/service, I get status messages along the ...
0
votes
1answer
141 views

Brew & Ruby no longer functioning properly due to a recursive trap

After updating to OS X 10.10 (Though this might have been irrelevant), I was not able to run any brew commands. Any command gave me this error: /usr/local/bin/brew: /usr/local/Library/brew.rb: ...
0
votes
1answer
244 views

Why can't nginx access puma socket on CentOS 7?

So I have a Ruby on Rails app in /var/www/ owned by nginx with 755 permissions. Said app is intended to be deployed via puma. Like so: rvmsudo -u nginx bundle exec puma -e production -d -b ...
0
votes
0answers
23 views

Unable to Uninstall JRuby on Windows

I'm unable to uninstall JRuby on Windows. When I run the uninstallation program the first time it finishes its work with an error: java.io.IOException: access denied, also it deletes the files.log ...
0
votes
1answer
14 views

How can I disable rvm's interactive help (pager?) i.e. more / less a la `man`?

I recently upgraded from rbenv to the newest version of rvm. If I type a command such as: rvm help Then it gives me the same sort of paging interface I would get with man rvm - but I just want it ...
11
votes
2answers
5k views

Ruby installation issues with RVM

I've been following the directions at http://installrails.com to get my Macbook Air setup for some ruby work but I am running in any issue with RVM. When I try to install Ruby I get the following ...
0
votes
1answer
120 views

CentOS Ruby Install - Open SSL Issue

Attempting to install ruby 2.1.2 on a centos 7 box, but running into a dependency issue with openssl ~ % ruby-install ruby ...blah blah blah... ---> Package openssl-devel.x86_64 1:1.0.1e-34.el7 ...
0
votes
0answers
36 views

Why does my app run much faster on my laptop than my VPS?

I have a web application with a Ruby backend that does some stuff that is a bit computationally intensive. I develop and test the app on my rMBP with a 2.7GHz i7. I have the app deployed to a Linode ...
0
votes
0answers
49 views

How to correctly indent multiline ruby method chaining code in emacs?

I wish to have such indentation: some_object.method_1(args) .method_2(args) .method_3(args) While by default ruby-mode will indent the code like: some_object.method_1(args) ...
0
votes
0answers
92 views

OSX: reinstall ONLY Ruby

Problem: Today I brought to life my next excellent idea - remove /System/Library/Frameworks/Ruby.framework folder on my Mac. So now brew is totally broken down: brew doctor /usr/local/bin/brew: ...
0
votes
2answers
43 views

Why is this cronjob not working?

I have a ruby script in ~/custom_scripts/get_all_products.rb. I want it to run every night at 04:00. Here's what the cronjob in crontab -e looks like: MAILTO="<email>" 0 4 * * * ruby ...
1
vote
1answer
75 views

Default Mac Ruby Gems?

A Mac always comes with some default ruby gems installed in the local RVM. Is there anyway I can check or view a list of the default ruby gems installed in a Mac OSX Mavericks?
0
votes
0answers
1k views

rvm use responding with Unknown ruby interpreter version (do not know how to handle):

I have a number of Rails apps that I've inherited that use different Ruby versions. To make life easier I'm trying to use rvm. Whenever I fire off the rvm use command inside any of the directories I'm ...
1
vote
0answers
194 views

Ruby error on my Mac

I'm having issues with my Ruby on my iMac (early 2010). I have the preview of Mac OS X Yosemite installed, but I've had these issues like forever, so I can't imagine OS X being the error here. ...
2
votes
2answers
1k views

Can't vagrant install a plugin: gem dependency fails despite being installed

I am attempting to install the vagrant-vbguest plugin in Windows 7 from within cygwin 64. $ vagrant plugin install vagrant-vbguest Installing the 'vagrant-vbguest' plugin. This can take a few ...
0
votes
0answers
104 views

OpenProject fails to send mails

I installed OpenProject following this guideline. After a day of work it runs. My current problem is, that sending of mails failed silently. I have only the following entry in my log: Started GET ...
2
votes
1answer
47 views

Where did my command (Heroku) go?

I expect to be schooled on this but have exhausted my Google searches and scant knowledge of how OS X finds a command. I've been using heroku for years and for some reason today I get the result: ...
0
votes
1answer
45 views

Downloading Images through Wget With Proxy

I've written a ruby tool to download multiple images. However, this time I'm having to configure wget with a proxy. Prefix is the specified directory of where I want the images to go and md5_sum is a ...
0
votes
0answers
92 views

Ruby CGI scripts and Apache

I have two legacy legacy Ruby CGI scripts that was developed by someone in 1990. It used to be on a HP-UX server, and years ago, they removed the server. What is left are two Ruby CGI scripts that is ...
0
votes
0answers
33 views

Redmine reports intermittent Internal Error

I've been using Redmine/Apache for a few months now. Occasionally a page will not load, and instead I will get Internal Error 500. Refreshing generally fixes this. When I look in the log file on the ...
0
votes
0answers
76 views

RubyRep Setup Causes an Error “ Exception caught: Mysql::Error: query: not connected: SHOW TABLES”

I've spent the entire day trying to get RubyRep going on a CentOS machine, and now I'm stuck on the error "Exception caught: Mysql::Error: query: not connected: SHOW TABLES" for which I couldn't find ...
1
vote
0answers
43 views

Ruby ri output not coloured in iTerm 2

When I run Ruby ri in an iTerm 2 terminal window, the output is not coloured and I don't know why. Other programs such as Vim work with colour properly. Running ri -f ansi Array.sort results in ...
3
votes
2answers
3k views

Installing Ruby with RVM in Ubuntu 14.04

I installed RVM using the following command \curl -L https://get.rvm.io | bash -s stable Then I restarted the terminal and executed this commands source ~/.rvm/scripts/rvm rvm requirements rvm ...
3
votes
2answers
1k views

How to install development tools when Ruby compiled from source

I have Windows 8, and I need to install Ruby 2.1.2 for a project. I followed these instructions. I unzipped the source into C:\Ruby2.1.2\src\, ran nmake in C:\Ruby2.1.2\build\, and ran nmake install ...
0
votes
0answers
830 views

Removing or Uninstalling Ruby, Rails, and/or Gems from Mac OS X 10.9.4

I had some health issues and was away from my iMac for about 6-8 months. I’m not exactly sure which version of OS X was running when I stopped using it, but I had just installed Rails and was about ...
0
votes
0answers
35 views

ruby/rails with powder not showing website

I've run powder default inside my project directory. Which leads to this page when surfing to http://localhost The application's environment settings are in this gist The project has been ...
0
votes
0answers
89 views

Online service to execute Ruby scripts

I am investigating the possibility to start a backup up server remotely in case the main server fails. The idea is: Amazon Route 53 monitors the main server The server fails, which triggers an alarm ...
0
votes
0answers
323 views

Gem: Could not find a valid gem in any repository

my problem is that I installed ruby and gem successfully with no errors, but when I go any further, trying to install any gem, it threw an error: ERROR: Could not find a valid gem '<name>' ...
0
votes
1answer
241 views

How can I set the terminal encoding when running a crontab job?

I have a crontab job which executes a Ruby script on Arch Linux. It works basically, but when I call "googlecl" to post to my blog, it always shows a "safeDecodeError" exception (eg.: ...
0
votes
0answers
80 views

Compass watch exits randomly without output or error

I am using the ruby gem compassto preprocess sass/scss to css. Using compass watch path/to/scss I keep precompiling every time the scss-files are updated. But every now and then, the process simply is ...
0
votes
1answer
79 views

Which version of rails should I install with ruby 2.0.0 installed?

Hi I am building a ROR development environment on a new computer with windows 7, now I have Ruby version 2.0.0 and Gems version 2.2.2 installed. Which version of Rails should I install? I saw ...
-2
votes
1answer
34 views

Typical cases where I might use exceptions in programming [closed]

Can someone please help me with something that seems simple but I've never really got my head round. Exceptions! I know how to write an exception but countless code samples with variables foo and bar ...
1
vote
1answer
3k views

Upgraded to Mavericks, C compiler cannot create executables

Upgrading to Mavericks, I appear to have broken my Ruby on Rails development environment, which requires ruby 1.9.3 because of various gem dependencies. Within that app directory, I'm trying to ...
0
votes
0answers
60 views

How to define new scopes using arbitrary delimiters in Sublime Text 2

TL;DR: How do I bring Ruby-like comment scope to plaintext files for sublime text? I want to customize my plaintext file look in ST2 by allowing comments. So far I have managed to extend the ...
0
votes
1answer
704 views

OS X `gollum` install not working

I've tried many things to fix this, but i can't get get gollum as a cli utility. gem install gollum completes with ... Building native extensions. This could take a while... ERROR: Error ...