Category Archive: gem

Jan
14

Reloading models in Rails 3.1 when usign Spork and cache_classes = true

Speeding up you tests with Spork is very common when developping Rails applications. What Spork do is preloading your application in a server and copies a fork of that server whenever you run tests. It avoids reloading all the rails stack !! That is great !!! But the problem I ran into is that I …

Continue reading »

Sep
27

Rubygems mini mirror

Hey all, I just have published a new gem called rubygems-mini_mirror. This is a small stuff that needs improvement on speed speaking but it works. I will explain later on how it works because I have no time for that now. Bookmark on Delicious Digg this post Recommend on Facebook share via Reddit Share with …

Continue reading »

Mar
17

Rspec 2.x and Fixtures

Hello, It’s been a while when I last updated this blog. It seems that Rspec 2 can not use fixtures from Activerecord 2.3.x ! Impossible ? Not really, and thanks to ruby it was possible for me. Let’s describe the background : First of all, I had a gem built on jeweler that uses ActiveSupport::TestCase …

Continue reading »

Jan
12

HTTPClient and SSL verify certificate

If you as us in my company use self signed certificate and ran into an OpenSSL::SSL::SSLError when using httpclient gem. Here is how to bypass ssl certificate verification : The issue : require ‘rubygems’ require ‘httpclient’   client = HTTPClient.new url = "https://www.server1.com" client.get(url) at depth 1 – 19: self signed certificate in certificate chain …

Continue reading »

Jul
07

How to translate your column fields and values with gettext in ruby on rails

I am proud to have published my first useful ruby gem. It is called gettext_column_mapping, you can check out the code in my github repository. I already released it as a gem through gemcutter/rubygems It is based upon Masao Mutoh (gettext and gettext_active_record) and Michael Grosser (fast_gettext and gettext_i18n_rails) works. Thanks to them History In …

Continue reading »

Jun
29

Bundler default Gemfile and custom Gemfile, example of wirble

Hi all, A simple trick I want to share with you if you are using Bundler (or rails 3) It matters if you want to install wirble gem in your workstation but not in your server Sometimes, you want to include some gem that are not mandatory for your application to run but you want …

Continue reading »