RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Submit a post

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

factbook gem - Turn World Factbook Public Domain Country Profiles into Open Data (e.g JSON)

Hello, I’ve put together a factbook gem that lets you read in World Factbook country profile pages (in HTML) and returns a structured Ruby hash that you can save, for example, as a pretty printed JSON file e.g. For Brazil use: Factbook::Page.new( 'br' ).to_json Find ready-to-use country profile in JSON in the openmundi/factbook.json repo. Thanks to the CIA for the great service (and public domain data - no rights reserved, no copyright). Cheers.

Cucumber rake runner

cucumber_rake_runner is a simple gem allowing you to run rake tasks inline to the current cucumber process for testing behavior and output. For Jruby users this also eliminates the need to spin up a new JVM per rake task significantly reducing test run time. The gem captures both stdout, stderr along with the time taken to execute a rake task so that assertions can be made easily against them in your cucumber test suite.

Gitlab Backup Made Easy

Gitlab is a self hosted open source repository management tool built on Ruby on Rails. It offers a variety of features like code reviews, merge requests and activity hooks. It’s the perfect tool for companies that do not want to rely on third parties to manage their code. But, with self hosting comes the added risk of server failure and data loss. [more inside]

Eager loading in Rails

Eager loading is a way to find objects of a certain class and a number of named associations. Here I share a post on using it with Rails. Check out: Eager loading in Rails

Excellent learning tool!
Thank You ParadiseHillsDentist!

Silent scream of RubyMotion

As you probably already noticed we have one user that is constantly posting something about RubyMotion. Usually I have nothing against promotion of products on RubyFlow from time to time, but in this case we’re talking about posting 10 posts within just 30 days, which is on average post every second work-day. I would call it SPAM. [more inside]

Final add, I do want to say, though hurtful to me, your intentions were extreme…
Personally speaking, I love the work FluffyJack is doing for Ruby and RubyMotio…
I don’t care much about RubyMotion, but it seems entirely on-topic for this for…
I actually very much appreciate FluffyJack’s posts. RubyMotion is a tremendous…

Integration as Composition

I’m puzzling over the design for a worker and would appreciate your comments on it. I started with the pain of an ugly test, made an interesting refactoring, and decided to drop the test entirely, but I’m not at all sure this is the right decision.

Zero to Smoke Test with Sinatra (and Sequel and Pony and OmniAuth...)

Recently I added the first high-level test to a Sinatra app with no tests. This required a lot of initial setup, involving, among other things, RSpec, Rake::Test, Capybara, EmailSpec and Pony, mocking OmniAuth callbacks, and using DatabaseCleaner with Sequel. For the benefit of my future self and anyone else who needs to set up Sinatra for acceptance-level tests, I documented the whole process.

Tips for finding Rails resources at your level

There’s a lot of good, free Rails information around. But as you improve your development skills, it can be hard to find knowledge that’s useful to you. If it’s too basic, you’ll just read about things you already know. Too advanced, and your eyes glaze over and your brain shuts off. You can’t just type “intermediate-level Rails blogs” into Google and hope some good sites pop out. To get the information you’re looking for, you’re going to have to do some digging.

Loading older posts