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
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Testing Asynchronous Threads in Ruby
🦇 Laundry day at the Batcave. Testing asynchronous threads in Ruby explained. https://blog.appsignal.com/2018/11/06/testing-asyncronous-threads-in-ruby.html
Passenger 5.3.6: fixes smart spawning
Passenger 5.3.6 has been released. Most notably is the smart spawning fix, but it also includes fixes for frustrating warnings on macOS >= High Sierra, and gemset detection on RVM 1.29: https://blog.phusion.nl/2018/11/06/passenger-5-3-6-fixes-smart-spawning/
OS time: working on open source during company time
We get to contribute to open source software at Phusion, like through maintaining the frontapp gem. Initially scratching our own itch, outside contributions make working on it really worth the while: https://blog.phusion.nl/2018/10/31/os-time-working-on-open-source-in-the-boss-time/
Tinkering with developer documentation: creating an ePub
Taking feedback on the new Docs to heart, we tried rendering an ePub from the documentation. A tale of (plenty) HTML errors: https://blog.phusion.nl/2018/10/31/tinkering-with-developer-documentation-creating-an-epub/
How lag isn't always a bad thing
Redesigning the Passenger Docs using React, and then rewriting it in Ruby (Middleman), rendered some interesting challenges and insights: https://blog.phusion.nl/2018/11/05/how-lag-isnt-always-a-bad-thing/
Why You Should use JekyllRB and Netlify CMS for your site
In this post, we will answer a question of why you should use JekyllRB with NetlifyCMS for your website. We pointed out things we enjoy about each technology, why they matter for our (and probably yours too!) website and some alternatives. Why You Should use Jekyll and Netlify CMS for your site
Awesome Ruby Security
A curated list of awesome Ruby Security related resources: https://github.com/pxlpnk/awesome-ruby-security [more inside]
Eventide 1.0: Evented, Autonomous Microservices for Everyone!
The Eventide Project community is excited to announce the 1.0 release of Eventide: the best microservice, autonomous service, event/reactive, and event sourcing toolkit built in Ruby, and one of the best stacks available in any language!
Coverband 3 released, simple fast production code coverage
After lots of benchmarking and refactoring out legacy features and code (+860, -1,606). Coverband 3 is out… Extremely performant Ruby production code coverage. How fast? Around 60X faster! Benchmark details shared.
Ruby Toolbox Community Survey 2018
As we approach the Ruby Toolbox’s 10th anniversary next May, I’ll be working on it as my main project in December and January. I launched a community survey to gather feedback and suggestions - if you have a few minutes, please take the time and check it out, your input is a great help in shaping the future of the Toolbox!
Permission to go faster!
By leveraging native Linux file permissions we are able to deploy quickly, avoid application permission errors, and still maintain file level security! [more inside]
[Screencast] Grab Bag of Ruby and Ruby on Rails Tricks
In this episode, we look at various tips and tricks. https://www.driftingruby.com/episodes/grab-bag-of-ruby-and-ruby-on-rails-tricks
RubyCademy
Some Ruby & Ruby on Rails courses adapted to the developer’s training needs www.rubycademy.com
How to use sklearn machine learning models in your Rails app
Learn how to use machine learning models developed with Python and scikit-learn in your Rails app here.
Efficient Rails DevOps, third edition
I just released the third edition of Efficient Rails DevOps, a complete rewrite sporting more than 40 pages of additional content with lots of improvements, finally supporting both CentOS and Ubuntu operating systems and giving you the choice between MariaDB and PostgreSQL (the discount code “rbflw” still gets you $5 off).
correios-cep bug fix released
correios-cep version 0.6.8 has been released with a parsing bug fix, since Correios API is now omitting "complemento" XML node in its responses. https://rubygems.org/gems/correios-cep/versions/0.6.8 [more inside]
Latest reCAPTCHA v3 + Rails app
https://github.com/igorkasyanchuk/new_google_recaptcha allows integrating the latest reCAPTCHA v3 and your Rails app.
4 Ways to Scale on Heroku
In this 18-minute talk, I explain my approach and mental model for scaling Rails apps on Heroku. Check out the summary here.
2FA google authentication with Active Admin
Have you ever implemented 2FA google authentication on rails app? Well I bet you haven’t with Active Admin. [more inside]
Ruby on Rails Security
Folks still get the basics of Rails security wrong. Here’s a few big ones. I think it comes from too much reliance on assuming a “security engineer” will come in and pay attention. They never come.
Performance of Regular Expressions
Regexps are useful, neat and dangerous. Uncarefully written regular expression may hang both frontend and backend apps severely harming user experience and causing headaches at debugging stage. Read our blogpost on regexp performance to see when it could happen, understand how the regular expression engine work and what to do to optimize regexps. Benchmarks, real-word stories, step-by-step analyses and live examples included!
Building a Ruby C Extension From Scratch
In this edition of Ruby Magic, we’ll show you how to use code written in C from Ruby. This can be used to optimize performance sensitive parts of your code or to create an interface between a C library and Ruby. Read all about it.
Is Rouge the best code highlighting solutions for ruby apps?
We needed to implement the code highlighting solution for our blogs, and after some research we decided to use Rouge. In this article I present the detailed guide how to do that. [more inside]
Working with ActiveRecord Callbacks
This article goes through some helpful tips when working with ActiveRecord callbacks. [more inside]