RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 

gravis — 17 posts

http://www.tech-angels.fr

If you wonder if you should upgrade or not, here's a sum-up of the last security issues fixed in rails 3.2.13 : http://blog.tech-angels.com/post/46249485212/should-you-upgrade-rails-from-3-2-12-to-3-2-13
Tech-Angels just launched an open-source gem to upload just the needed files from your projects: gemnasium-1.0.0.
More info on the blog post or the project readme.
Active Record Identity Map  blog.tech-angels.com
AR Identity Map makes it easier to stub Model dependencies, learn how it helps to test your controllers with ease here
The French government legalized online betting in 2011 and created an Authority (named "ARJEL") in charge of this new market. This authority enforces betting operators to follow a lot of technical rules; one of them being the tracking of all events in secure vaults. This article explains how Ruby was used to save us a lot of time.
Rails STI will be just fine for most cases. Anyway, for large databases, or when attributes vary a lot between models, using table inheritance could be very helpful. Using it with rails is really easy, learn how here.
This post isn't related to ruby, but as hard ruby devs, we couldn't resist to share our experience with this tiny tool.
It's 100% free and life-changing.
In continuation of the capistrano subject, we would like to introduce Webistrano, edited by Peritor. Webistrano is a web interface to the Capistrano tool. It pulls projects from a Git repository (in our case it’s github) and place the files on the web server. Webistrano allows to roll back to an earlier version in case of problem, it also keeps a log of every deployment. Most important, it allows users (our customers) to deploy without any direct access to servers. Read more
We just learned from http://habrahabr.ru/post/144139/ that a nice vulnerability was found in Ruby (Versions TBD soon). Read more
Capistrano-helpers  tech-angels.com
If you're using capistrano, you might find capistrano-helpers useful. See how we're using it here!
Annotate them all!  tech-angels.com
Annotator is gem to document your model attribute.
You might heard of AnnotateModels, which gives you basic column description (title, type etc.) in your model file. With Annotator, in addition to such basic info, you can add comments to the columns.
We've added Maxmind support to geocoder! You can see the pull-request and more details here.
If you're using github repos in you Gemfile, check out this tip :

http://www.tech-angels.com/post/22772521112/gemfile-trick-for-github-repositories
Tech-Angels has just launched TcpSyslog 1.0.0 gem. TcpSyslog is _rails_ logger using syslog with TCP instead of UPD.
TcpSyslog for Rails  tech-angels.fr
Just drop the file in /lib, add a config.logger line in your environment files, and you're ready to go.
Read more
A few tips / reminders to improve IRB : http://www.tech-angels.fr/post/963080350/improve-irb-and-fix-it-on-mac-os-x.
There's also an issue with reverse-search on Mac OS X fixed in this post.
Learn how to use git as a file history manager, and why you should use it in your migrations : Diff joy for your migrations with git.
If you're using Ack (the fancy grep), you won't be able to find anything in your haml views unless you use this tip.