Tag Archives: ruby
Using Sinatra inside the Ruby Class and keep configuration data separately
Sinatra, http://www.sinatrarb.com is the very useful framework in Ruby if you need to build a web-service processing various requests – I suggest to use it to every team as a Mock QA environment where you can SIMPLY generate any type … Continue reading
Filed under technology
Sample of using log4r with Ruby classes, local and global loggers.
That is a very popular family of the loggers, people use when they develop a code in various languages like log4j for Java,. Today we will be talking about log4r, logger for Ruby, and I will show you of how … Continue reading
Filed under technology
Simple connection pool for MySQL implemented in Ruby
I needed a simple mysql connection pool in Ruby supporting get/release connection from/to pool and delete a connection pool on the end. That is the code, together with unit tests – samples of the usage, and test runner #!/usr/bin/env ruby … Continue reading
Filed under technology
Installing Ruby, RVM, JRuby on CentOS 5
Ruby RVM, or Ruby Version Manager is a very convenient way of running multiple versions of ruby/jruby on the same machine without install/uninstall it every time. It also applies with using different ruby gem verionsets. You should be aware, that … Continue reading
Filed under technology
Native Data class in Ruby 1.8 is much slower than Date::Performance – class Data, partially re-written to C
http://blog.pluron.com/2009/04/ruby-date-class.html https://github.com/rtomayko/date-performance Unfortunately, it is for 1.8 only. It will not compile on 1.9 rtomayko commented January 15, 2010 Oh, now that I think about it, it’s going to take a lot of work to get date-performance running under 1.9. … Continue reading
Filed under technology