RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
September 17, 2014
What’s different (the good and the not-so-good) in SPA’s and why as a web developer, you should care about it. How Developing SPA Influenced Me & My Code.
September 16, 2014
How many font variants is your site using? Do you need all of them, and could you rely on the browser to generate some on your behalf? A look under the hood of how font selection and synthesis works in the browser.
Neo4j and Rails
I just launched Neo4j and Rails to help guys who are getting trouble with them.
I write two parts:
* Setup and Deploy to Heroku
* Declare Relationship and Write some Queries on Graph Database.
I'm excited to announce Security Watch—a security leaderboard of open source Ruby projects on GitHub.

Security Watch lets you quickly look at the most popular open source projects on GitHub to see if any of them have potential CVE or code vulnerabilities. The goal of the project is to raise security awareness in the Ruby world.
Say you have an Article model, and it could be either a draft or a published article. The published article needs more validation than the draft. What’s the best way to write this? Rails has a lightly documented, little-known feature that makes these problems really easy to handle.
From Rails 3.2 to 4.2
Lessons learned from upgrading a small service application from Rails 3.2 to 4.2.
With much excitement, we are happy to announce the new Ninefold dashboard. We’re certain you’ll be delighted.

It’s as simple as it gets. From the point of signing up to deploying your first app we’ve made it painless. Making things simple is not usually easy for engineers, so here’s how it came together. Continue reading.
September 15, 2014
One of the most common and most cumbersome errors you can make: using length instead of count. You can repeat this multiple times, but you will always find someone who’ll use it the way it shouldn’t be used. Here as a reminder: ActiveRecord count vs length vs size and what will happen if you use it the way you shouldn’t
I’ve added the Upmin admin framework to Rails Composer as an option. The upmin-admin engine provides an admin dashboard similar to Active Admin or RailsAdmin, so you can search, view, or update records without writing any code.
Thanks to Eckhard Licher for assembling an open and modular easy-to-(re)use Open World Factbook offering many alternative formats to the one-and-only official CIA World Factbook version in semi-structured HTML pages.

You can get all 267 "raw" country 'n' territories profiles in JSON (/geos.json) - generated with the factbook RubyGem - or all flags (/flags.png) or all overview (/maps.png) or locator (/locator.png) maps. Or browse the Markdown (thanks to GitHub rendered to HTML) country profiles (/ - see Austria or Australia as examples - or (re)use the plain text (/geos.txt) or TeX (/geos.tex) versions. All data is public domain (no copyright, no rights reserved). Cheers.
Jiragit 0.5.0 smooths the integration of JIRA and Git.

Jiragit automates the insertion of JIRA numbers and hyperlinks into Git commits, and provides a tool useful for accessing JIRA and Github while working on the command line.
September 14, 2014
Green Ruby News #84
One more collection of weekly fresh links in Green Ruby News 84.
I've updated equatable gem with fixed type and subtype reference equality as well as improved project documentation with more guidelines and examples. Please give it a go and let me know your thoughts!
September 13, 2014
I just launched a new Feature Flipping gem called Helioth!
This is not the first gem on this topic but I took a new approach and would love your feedbacks..
My instructions on how to configure Macbook Pro on Mavericks to work with ruby and rails with the help of automated scripts (ruby, bash).
I just updated ov gem, now possible use earliest defined methods with types
September 12, 2014
I recently released the latest major version of queue_classic which includes work from different people. Highlights on what's new are in a blog post I wrote.
Teatro is now more friendly for open source maintainers since it does not asks for repo access anymore for public repos. More info here

Some large open source projects already use Teatro including GitLab, Spree, Errbit, OpenProject and other.
September 11, 2014
Heard of Chef but never tried it? We wrote a step by step tutorial on how to the steps to set up a deployment process with Chef for your Rails project. Check it out!

Chef Basics for Rails Developers
September 10, 2014
If you don’t have multiple cores and/or you have a small VPN, you may end up with a huge slow down of your web app, when rake tasks are executed. This can be a big issue especially when you use something like whenever to perform periodic tasks. Luckily there’s a nice. You can read more about how to use it here: Ruby & Rails: Making sure rake task won’t slow the site down
Integration tests involving Ruby and JavaScript are fraught with danger. Developers frequently complain of tests which fail erratically. It is possible to write reliable, asynchronous integration tests with Capybara by understanding how Capybara, Ruby, background processes, threads, processes and Capybara drivers such as Selenium, Capybara Webkit, and Poltergeist work, and by following some easy-to-remember guidelines.
The fantastic Devise authentication gem asks registering users for just two items: an e-mail address and password. Chances are you'll want to subsequently gather additional details, such as the user's name or location, typically done through an account profile management form. In this post I show you how this is accomplished.
Floating Point and currency
Why using floating point may be a bad idea when it comes to currency handling and what are the alternatives.
Are you planning to finally bump your app to the Rails 4.1? Then check out my blog post about that. Now with tips about rails 4.1.5!
If you want to master Ruby, you should know strings very well. Follow @RubyStrings to learn about all the details!
September 09, 2014
Introducing RackRabbit - a server that allows you to write your RabbitMQ consumer processes using any Rack compliant framework and load balance multiple instances using a Unicorn-style forking server.
How to set up Continuous Deployment of DNS Records with the help of DNSimple and tools you already use and are familiar with.

This workflow makes changes to your DNS zone transparent and comprehensible for everybody in your team.

DNSdeploy - Continuous Deployment of DNS Records
I've put up a post with the process of applying HTML styles to mailers in Ruby on Rails using HTML Email Boilerplate and Roadie. Check it out at CookiesHQ blog.
After being asked about how to use Fixtures in CarrierWave (the Rails file uploader), I wrote an article about how I'd do it.
The Rails 4.2 announcement had some interesting news about the upcoming Rails 5: It’s probably going to require Ruby 2.2. Which will make it the first Rails version to take advantage of all the good stuff from Ruby 2. The post mentioned garbage collected symbols and keyword arguments. But to me, one of the most interesting Ruby 2 features is Module#prepend.
Kamil Bielawski, one of our Ruby developers, decided to write a follow-up to his previous post, this time about bad parts of Ruby. Do you agree with his picks?
Seems like everyone knows that code review is a valuable tool but a lot of teams struggle with implementing it because of the overhead they feel they just can’t afford right now. Here's why you should do it!.
I just launched Apphera Core, which is the main API for our open source social media monitoring and engagement. Have fun checking it out.
September 08, 2014
Sinatra Cookbook nearly here
As some of you may remember I had a Kickstarter campaign last year to fund the writing of Sintara Cookbook, however I got delayed and not made as much progress as planned, but this week will be lauching the first 8 chapters to buy and sending these to kickstarter backers too.

More information
September 07, 2014
Green Ruby News #83
Bunch of links collected for the first week of september:
September 06, 2014
Hello, The plain text football fixtures for leagues, teams, match schedules, and more that you can read with the sportdb gem into your SQL database of choice (e.g. rake build DATA=es) now includes more 2014/15 seasons e.g. the European Champions League, the Spanish Primera División, the Italian Serie A, and more. Or try the HTTP JSON API e.g. event/cl.2014_15/teams or event/cl.2014_15/round/1 and so on or better build your own HTTP JSON API using the starter kit. All data, code and samples public domain. Enjoy. Cheers.
September 05, 2014
order_query finds next or previous records relative to the current one efficiently, using techniques popularized by Markus Winand. Version 0.1.3 just came out with several performance improvements. Read more on Github.
I published a series of articles about Service Oriented Architecture - discussing the choice between SOA using HTTP vs using a message broker like RabbitMQ. Hopefully useful to those of you thinking about ways to break up your monolithic Rails application.
September 04, 2014
New Features in Rails 4.2
I have highlighted few features of Rails 4.2 in a blog post. Have a look.
I just published a blog post on dealing with my inferiority complex

Would love to get some feedback!
In case you didn't know, you can use your MongoDB document _id field for date range queries instead of having to use a separate created_at field and create a separate index for it. Here's how simple it is to do it.
After we wrote the tutorial series to set up Bootstrap and Rails, we got a few requests to write a series for setting up Zurb Foundation on a Rails app. And... here they are!

Integrating Rails and Foundation - part 1, the installation
Integrating Rails and Foundation - part 2, the CSS and Components
Integrating Rails and Foundation - part 3, Javascript Based Components
I've been trying to incorporate refactoring into our code reviews. The idea is to use refactoring as a way to understand code while reviewing it. I picked up this idea from the book "Refactoring" by Martin Fowler. Here's a blog post of my experience with this technique.
When we first start with Rails we learn to create one controller for each resource, but separating your contexts into multiple controllers can help a lot with making your application easier to understand, maintain and grow.
September 03, 2014
Like the X-Men nightcrawler this rubygem teleports your assets to a OpenStack Swift bucket/container. It was designed to sync your assets with OpenStack Swift and allow some operations with your buckets/containers.
This article discusses a new feature in RSpec 3 called verifying doubles. Verifying doubles ensure that doubles stay in sync with actual code. The article explains how to start using this feature and includes some general thoughts about how this feature will impact testing practice.
We just posted new article on our blog - it is really usefull when you translate languages with many plural forms.
My First Ruby Gem
I came across this excellent walkthrough about creating a rubygem and thought that it would be helpful to others.
I just posted an article Seamlessly Navigate Rails Projects With Tmux. I hope you find it useful!