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

learn more… | top users | synonyms

0
votes
0answers
16 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
17 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
17 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
25 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
30 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
921 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 ...
0
votes
0answers
75 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. ...
0
votes
1answer
122 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
27 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
23 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
29 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
17 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
16 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
33 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 ...
0
votes
0answers
11 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 ...
1
vote
1answer
799 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
346 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
313 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
15 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
20 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
102 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
95 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
47 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
52 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
31 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
456 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
30 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
326 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 ...
0
votes
0answers
91 views

gitlab-ci Ruby problems

I'm using Ubuntu 14.04 server x64, and I'm trying to set up gitlab-ci via these instructions https://gitlab.com/gitlab-org/gitlab-ci/blob/master/doc/install/installation.md After these steps I get an ...
0
votes
0answers
72 views

Installing dashing using gem causes make errors ubuntu

ive been trying to install dashing made by shopify. But when ever i install using gem make will allways through up errors Heres the error im geting from the gem install errors
0
votes
1answer
108 views

How to stop ruby on Mac OS X

When I run a faulty ruby loop programme, my CPU start running fast as you can see in the following image. I stop abort it by ctrl C but it keep running. Only I can stop it to restart the computer. Is ...
-4
votes
2answers
78 views

Remove last word from whole string [closed]

I have following string 2014-04-29T06-19-20_17368f93ce02e18f278ae22d248e7d0692db3f54d2409_1088x288.mp4.uploaded I want to remove the last .uploaded word from this whole string . How can I do ...
-1
votes
2answers
26 views

Find particular file in particular directory

I want to find the particular file name in particular directory in ruby. I tried the following Dir.glob() file = Dir.glob("/home/prakash/Desktop/*.uploaded") output: ...
0
votes
1answer
42 views

zsh and Ruby print issue

Has anyone come across an issue where Ruby's print method leaves behind a % at the end of the line using zsh? I'm using oh-my-zsh (https://github.com/robbyrussell/oh-my-zsh) with iTerm2. Here is an ...
0
votes
1answer
40 views

How to run a launchd task every weekend once?

I am trying to run a ruby program as a cron. I have figured out how to run the ruby program from a launchd The problem is that I don't know how to say "Run the job once every Sunday". Below is my ...
0
votes
1answer
448 views

Bootstrap - Jekyll: Forbidden - no access permission to `/'

I'm doing a tutorial on Twitter Bootstrap and apparently I need to install Jekyll for this. I've followed the installation procedure, but now I'm stuck getting Jekyll to work. In the terminal (Ubuntu ...
0
votes
0answers
148 views

Can't install ruby gems

For some reasons I can't install ruby gems anymore. I run into SSL problems recently and think that could be the problem. After asking google I've changed the gem sources from https:// to http://, but ...
0
votes
0answers
295 views

How to fix this “Errno::EACCES: Permission denied” error while executing a compiler script?

On trying to execute a compiler script from command prompt, like this "C:\sass.bat" "--cache-location" "C:\Users\admin-win8\sass-compiler" "--debug-info" "C:\webapp" "C:\webapp\css\all2.scss" ...
1
vote
0answers
100 views

How can I get Homebrew and MAMP (Pro) to play nicely together?

I am using MAMP Pro for most of my local application development and am trying to install ruby , etc via homebrew however homebrew will give me the following warning: Warning: "config" scripts exist ...
1
vote
1answer
435 views

Issues compiling passenger for apache2 on CentOS

I am trying to install openproject on a CentOS 6.5 (Release 3 from OVH) following this tutorial but with mysql in place of postgresql. I'm nearly done but I can't seem to compile passenger for apache ...
0
votes
1answer
170 views

What should I make out of this message?

I am trying to set up the Ruby on Rails on my Mac OS X Maverick just to check whether I have Rails installed I typed rails --version and I got this as response ...
0
votes
0answers
43 views

Vagrantfile - is rvm in ~/.rvm/scripts/rvm or ~/.rvm/bin/rvm?

I'm still learning my way around some of the more hidden files in terminal and I was trying to setup a Vagrant box with rails via shell script provisioning, with some help from these links: ...
0
votes
0answers
164 views

How to install ruby tesseract on linux mint(after following instructions I keep getting a compilation error)

Hi I'm trying to install ruby tesseract on linux mint OS. I've installed tesseract and ruby teseract-ocr but every time I try I require the gem I get this compilation error: CompilationError: compile ...
0
votes
1answer
25 views

how to jump to table in rubymine 6/intellji rails model dependency diagram

I remember there was a keyboard shortcut we used back in the day.. any ideas? or at least what's the name of the action so that i can assign a custom keyboard shortcut in the rubymine key map ...
1
vote
0answers
205 views

All rails application logs being written to apache error log

I've deployed a ruby on rails 4.0.3 application to a server that I've configured with the following likely relevant software: Ubuntu 12.04.4 x64 server Phusion Passenger 4.0.37 Apache 2.2.22 Ruby ...
0
votes
1answer
53 views

ruby1.9.3 links to ruby1.9.1 in Debian Wheezy after install with aptitude

I have just attempted to install ruby1.9.3 with aptitude but for some odd reason it keeps symlinking /usr/bin/ruby1.9.3 to /usr/bin/ruby1.9.1. Here are the ruby version in /usr/bin: lrwxrwxrwx 1 ...
1
vote
1answer
152 views

OS X Automator Shell Script for custom search with special character not encoded with utf-8

I find a script here Mac OS X (Lion) Chrome: shortcut for "Search With Google" which shows how to do google search using shell script in OS X Automator. The original script is: open ...
4
votes
2answers
173 views

Ruby commands are turning off tty echo

After running Ruby scripts, almost 100% of the time, the bash command line will appear to be inactive, while in fact it's silently accepting my keystrokes without showing them to me. This has ...
0
votes
0answers
95 views

Correct way of setting Ruby2.1 as the go-to application when it referenced to/called via shell?

I have installed Ruby 2.1 on my headless Debian server (7.4) by downloading the source from https://www.ruby-lang.org/en/downloads/ and then running the routine of ./configure make make install ...
1
vote
1answer
54 views

how to run ruby app on startup

I'm trying to run a sinatra app on startup in linux mint. I'm using the startup applications preferences to add the path to the ruby file that I'm trying to execute: shotgun /path/to/file/file.rb ...