Questions tagged [ruby]

Ruby is a general-purpose object-oriented open-source scripting language. It sees a high degree of use in the configuration management space, and is popular for web development due to the high adoption of Ruby On Rails

Ruby is an object oriented programming language that has programmer productivity as one of its design goals. Most people are familiar with it these days as part of Ruby On Rails, a web application framework.

498 questions
0
votes
1 answer

github push -> redmine issue duplicate comments

I've successfully connected github to redmine and whenever someone puts an issue reference in a commit message and pushes it to github, a comment is added to the redmine issue referring back to the git commit. This is all fine and well, except that…
Jayen
  • 1,857
  • 4
  • 16
  • 28
0
votes
1 answer

Why do I get "Error 'configure:3485: error: C compiler cannot create executables'" when I install Ruby 1.9.3 on Fedora 12?

When trying to install Ruby 1.9.3 on Fedora 12, following "Complete Guide to install Ruby 1.9.3 on CentOS", I get the following error when running the command ./configure: $ ./configure checking build system type...…
0
votes
1 answer

Options for Executing Scheduled Scripts on a PHP Server

I have a server that I've setup running PHP. This serves JSON files and is running fine. I also have several scripts that reads data from an outside source, connects to my MySQL Database Server, and runs commands to save the data to the MySQL…
Chris
  • 353
  • 1
  • 4
  • 10
0
votes
1 answer

Redmine (RoR rack app) on uWSGI forgets sessions when ran with more than one process

When I log into redmine it forgets that I was logged after first click on any link or immediately after the login redirect. After I refresh the page a few times, I am still logged in in some of this refereshes. NOTE: There is no login error. The…
pinkeen
  • 289
  • 1
  • 9
0
votes
1 answer

Unicorn Shared Socket

Is it possible to have a unix socket across a network? Is it possible to have multiple application servers running unicorn use that same shared socket? The setup I'd like to achieve would look like: nginx ↓ Unicorn …
Ben
  • 1
0
votes
1 answer

Gitorious - ActionController::UnknownHttpMethod when logging in?

I'm going to install Gitorious as a slave server for failover purpose follow this blog post. gitorious.conf NameVirtualHost *:81 ServerName gitorious.domain.com ServerAdmin quanta@domain.com DocumentRoot…
quanta
  • 51,413
  • 19
  • 159
  • 217
0
votes
1 answer

Trouble installing Redmine on CentOS 6.2 - undefined method db for main:object

I am trying to install RedMine on CentOS 6.2 but I am running into difficulties when I try to access the site. Using this guide, I have configured the following in environment.rb: # Load the rails application require…
tacos_tacos_tacos
  • 3,250
  • 18
  • 63
  • 100
0
votes
2 answers

Ruby Script to get some stats from Servers

I've been tasked with writing a script that will run on a server every few hours to log the cpu usage, memory, and disk utilization. This script will be run on windows and linux boxes. I chose ruby for this task. I am new to scripting. I have…
0
votes
3 answers

Running recipe name

In Chef, is possible to get the recipe name when this recipe is running? I want to add recipe name on logging/debugging. Something like: Chef:Log.info "#{recipe_name} xxxx"
Sacx
  • 2,581
  • 16
  • 13
0
votes
2 answers

Install Ruby and Rails on Debian Squeeze

We have a Linux (Debian Squeeze) server in production, currently running apps on a LAMP stack. I now need to bring over an existing RoR app from a different server onto this new server and get it running. I've seen Ror installation scripts on GIT…
Slinky
  • 1,027
  • 3
  • 15
  • 26
0
votes
1 answer

Fixed ruby/mysql connection with new libmysql.dll, and broke Apache in the process

Ok so bit of background - all my development has been on a local Windows 7 machine. I had Apache with PHP/MySQL running with no issues. Been using ruby (1.9.3 and latest rails release 3.2.9) with built in webrick server, but had a devil of a time…
jmtoporek
  • 1
  • 1
0
votes
1 answer

How to stop basic Postfix after-queue script from BCC-ing sender?

I'm building a content filter for Postfix (2.9.3 package installed via apt on an Ubuntu 12.04 test VM) and I'm starting with a very basic Ruby (1.9.3) template and building up functionality. Strangely, when the script is enabled, messages sent are…
mjbraun
  • 139
  • 1
  • 8
0
votes
3 answers

When to use Bash, when Python/Perl/Ruby?

What's your rationale for when to write a Bash script and when to use a more powerful scripting language (Python, Perl, Ruby, ...)? I'm finding that very simple scripts are nicer with Bash, but many of those get quite fancy over time, and it never…
futlib
  • 111
  • 1
0
votes
1 answer

Error installing new rails version. Failed to build gem native extension

I am trying to build my first ruby on rails app using the following guide (http://ruby.railstutorial.org/chapters/a-demo-app#code-demo_gemfile_sqlite_version_redux) and have run into a few obstacles. The first, receiving errors when upgrading to the…
0
votes
1 answer

Error Installing ruby with RVM Single User mode on Arch Linux

I've just installed RVM on ArchLinux x64 in single user mode via the recommended install script curl -L https://get.rvm.io | bash -s stable I've also installed all the requirements listed in rvm requirements However, I'm having trouble actually…