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.
HOWTO scrape websites with Ruby & Ferrum
This tutorial will show you how to scrape websites with Ruby and Ferrum, a Ruby gem for connecting to Chromium and Google Chrome browsers using the Chrome DevTools Protocol: https://readysteadycode.com/howto-scrape-websites-with-ruby-and-ferrum
Exploring Linux File Locking Mechanisms in Ruby
An exploration of File Locking mechanisms and their pitalls on Linux in Ruby. [more inside]
Shrine 3.0 Released
Shrine 3.0 has been released. It features redesigned versions feature, support for immutable structs, more flexible backgrounding and much more. It also has a brand new website.
Ruby 2.4 comprehensive changelog
I’ve updated the “Ruby Changes” site with Ruby 2.4’s full explained changelog. Despite Ruby 2.4 being “old news”, looking through the detailed list of changes, with justifications and examples, could be useful to discover some features you’ve previously missed, and understanding how language evolves.
Track your performance with my newly open-sourced gem
After using it for years myself, today I open source my SchwadPerformanceLogger gem. It’s lightweight, dead easy but packs a serious punch: [more inside]
A techinque for detecting design mistakes early
SAGE is a design quality assurance technique that can keep your work from becoming more difficult and complicated than it should have been. Looking at your software through the lens of SAGE quadrants can keep you safe from the most common setbacks and slow downs in software projects.
[Gem] TAP Report Parser
This gem parses a TAP report per the specifications listed on https://testanything.org/tap-specification.html. Each of the tests has six attributes: number, description, status, directive, diagnostic and passing.
Configure Your App with SSM Parameter Store
If you’ve ever wanted to have a bit of flexibility over static files when configuring your app via environment variables, you might like this post on how to use SSM Parameter store to do that.
Spree Commerce 4.0 for Rails 6.0 released!
Spree Commerce 4.0 introduces Rails 6.0 support, Address Book support, JSON-LD support. Both the Admin Panel and Storefront were upgraded to utilize Bootstrap 4. In the process, we’ve also introduced hundreds of fixes and performance improvements both for the end-user and developer experience. [more inside]
Algorithms behind RuboCop complexity metrics
I published a series on Medium.com, explaining the algorithms behind RuboCop complexity metrics. The third part reveals the mathematical connections between different metrics. The series will help you with configuring cyclomatic complexity, perceived complexity, and, ABC size values for RuboCop analysis, which are not completely random.
ActiveWorkflow v0.9.4 released - agent-based workflow automation platform
We just released ActiveWorkflow v0.9.4, our agent-based workflow and intelligent process automation platform. This release lets you write your own agents in Ruby using a simple API.
tty-box v0.5.0 release
The latest release of tty-box brings: 💎Much improved handling of content that doesn’t require providing any box dimensions. 💎Preconfigured status message boxes - info, warning, success and error. Enjoy!
Why RSpec Test Fail (and How To Fix Them)
Knowing how to troubleshoot tests is an essential software skill. Read full story on Better Programming.
Ruby 2.7 deprecates automatic conversion from a hash to keyword arguments
Ruby 2.7 deprecates automatic conversion from a hash to keyword arguments in preparation for real keyword arguments in Ruby 3.0 [more inside]
[Screencast] Ruby on Rails Tips and Tricks
Ruby and Ruby on Rails tricks from, dot files, operators, bundling, StimulusJS and more. https://www.driftingruby.com/episodes/ruby-on-rails-tips-and-tricks
How to start with system tests, Rails 5.1+ and Minitest
Quick update on the very few things that are needed to get started with Capybara and system tests, using Minitest. [more inside]