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

learn more… | top users | synonyms

0
votes
0answers
7 views

Please explain the content of my snorby database.yml

I'm trying to reconfigure my Snorby (installed for MySQL) to work with already existing Snort database (Postgres). This is Snorby database.yml file: snorby: &snorby adapter: mysql username: ...
0
votes
0answers
8 views

Snorby with PostgreSQL installation issue in Mac OS X 10.10.2 (Yosemite)

Trying to setup Snorby for Snort with PostgreSQL on Mac OS X 10.10.2 (Yosemite) Snort 2.9.7.2 GRE (Build 177) PostgreSQL 9.4.1 ruby 1.9.3p551 (2014-11-13 revision 48407) [x86_64-darwin14.1.0] ...
0
votes
0answers
2 views

Installing TaskJuggler results in timeout

I'm trying to install TaskJuggler. As far as I can tell, I have successfully installed Ruby and Gem. The command I'm trying to execute and the error message is: C:\...>gem install ...
0
votes
0answers
20 views

Fedora 21 - Gem: change EXECUTABLE DIRECTORY

I am using some locally installed gems in my environment and I would like to change the EXECUTABLE DIRECTORY path to ~/.gem/bin How could I achieve this? $gem env - RUBYGEMS VERSION: 2.2.2 - ...
0
votes
0answers
15 views

How to start an external process in a ruby windows service?

I use this as a template to start an external task from a service LOG_FILE = 'C:\\Tmp\\win32_daemon_test.log' begin require 'rubygems' require 'win32/daemon' include Win32 class DemoDaemon ...
2
votes
1answer
33 views

How can I upgrade the Ruby version on Passenger?

How can I uprgade the Ruby version installed on my passenger module for Apache? I on Debian 7 and it's running Ruby 1.9.1 but I want 2.2.0
0
votes
0answers
31 views

Error loading gem hipchat in ruby

I can confirm that the gem is installed vagrant@vagrant-ubuntu-trusty-64:~$ /opt/sensu/embedded/bin/gem list| grep hipchat hipchat (1.4.0) I have verified that EMBEDDED_RUBY is already set $ cat ...
1
vote
1answer
37 views

What to do when “apt-get update” gets stuck in 100%?

I'm setupping a VirtualBox VM to do my development work with Ruby on Rails. My problem is that apt-get update is taking very long, ~30 minutes instead of seconds. I can install things with apt-get ...
1
vote
1answer
19 views

Ruby Compile error Windows 7 x64

Getting this error when using nmake on Windows7 x64 to compile Ruby 2.2.0 I've never done this before, so I have been following this and this advice: generating ripper-x64-mswin64_100.def NMAKE : ...
0
votes
0answers
18 views

How can I install a hipchat gem?

This is the command and the output $ sudo gem install hipchat Password: ERROR: While executing gem ... ...
0
votes
0answers
38 views

`require': cannot load such file — mkmf

I ran the following command and got a ``require': cannot load such file -- mkmf ` error message $ sudo gem install sensu-plugin --no-rdoc --no-ri ...
0
votes
1answer
27 views

Change default Ruby for all users with rbenv

I installed rbenv in vagrant this way: apt-get update apt-get install -y automake bison build-essential git-core libffi-dev libreadline6-dev libgdbm3 libgdbm-dev libncurses5-dev libssl-dev libtool ...
0
votes
1answer
294 views

Can't install Ruby 2.2.0 using rbenv

I installed rbenv from GitHub: git clone git://github.com/sstephenson/rbenv.git ~/.rbenv git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build I’m trying to install Ruby ...
0
votes
0answers
15 views

How to install Insoshi in Windows using Rails 3

I am trying to install Insoshi but don't know how to install it. I've tried the read-me file many times but get stuck in the Install script section. Whenever I use this line $ cp ...
2
votes
1answer
66 views

How can I get Syntastic to recognize newer Ruby syntax?

I'm using Syntastic in Vim, and it highlights newer Ruby syntax as errors. For example, if I use required keyword arguments (introduced in Ruby 2.1), like this: def distance(from:, to:) # whatever ...
1
vote
1answer
22 views

Customize “wrap” characters in Sublime Text

In Sublime Text, highlighting any text and pressing any of the following symbols: ' " ( { [ will cause the entire highlighted section(s) to be surrounded by the key you pressed (or its matching ...
0
votes
0answers
12 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
117 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
87 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
17 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
66 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
167 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
77 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
109 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
96 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
36 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
45 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
315 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
125 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
156 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
22 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
103 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
326 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: ...
1
vote
1answer
428 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
32 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
19 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 ...
13
votes
2answers
6k 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
175 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
44 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
71 views

How to indent multiline ruby method chaining code like this 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
104 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
69 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
110 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
198 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. ...
4
votes
2answers
2k 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
159 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
49 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
59 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
123 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 ...