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.
ViewComponent v2.0.0 released
ViewComponent is a view component framework for Rails built by and used at GitHub, compatible with the support for 3rd-party component frameworks coming in Rails 6.1 and backwards compatible with Rails 5+, previously known as ActionView::Component.
Sinatra bootstrap application
For quite some time now, I’ve been developing some Sinatra applications, one of the things I love about Sinatra is it’s modularity, but I also miss a lot of features which I have to add all the time. That’s why I created an opinionated bootstrap application which has configured Activesupport, Activerecord, Sidekiq and some other goodies. [more inside]
RuboCoping with legacy: Bring your Ruby code up to Standard
Learn how to introduce good style into mature codebases that are lacking some Rubocop love.
New release Truemail 🚀 configurable framework agnostic plain Ruby 📨 email validator
Meet new Truemail 1.6.1 release: https://github.com/rubygarage/truemail Also Truemail is available as independent application - Truemail server:
An overview on static websites with Jekyll
Is there any reason to prefer a dynamic platform to develop a certain website? A little overview on static websites with Jekyll
tablesmith 0.6.0 released
Yet another console table tool, focused on minimal config. [more inside]
A CLI app to fetch and compare numbers on coronavirus
With too much time on my hands in quarantine, I quickly wrote a CLI to fetch and compare data on the coronavirus: [more inside]
Solidus Events with ActiveSupport::Notifications
Solidus (the open-source Rails eCommerce) introduced events some months ago. Solidus Events are based on rails’ ActiveSupport::Notifications, so no external library was used. This article explores how they work and how they can be used to customize a store.
Build a location-aware WhatsApp weather bot with Ruby, Sinatra and Twilio
WhatsApp supports sending and receiving location data via their API. In this post we are going to see how to build a WhatsApp bot that can receive and respond to location messages.
Diggin through hashes and arrays in Ruby
A simple but effective trick for parsing nested hashes and arrays using Ruby [more inside]
Facade Pattern in Rails for Performance and Maintainability
Find out how and why you should use a software design pattern named Facade. https://blog.appsignal.com/2020/03/18/facade-pattern-in-rails-for-performance-and-maintainability.html
Automate Unit Tests Coverage Reports and Dependency Updates
Keep your project dependencies always up to date and maintain a certain level of test coverage. https://medium.com/@wshihadeh/automate-unit-tests-coverage-reports-and-dependency-updates-for-your-repositories-41be1b858eb3#e716-5d36fa1f22d1
Custom Elasticsearch Search Parser
Build your own custom search parser for Elasticsearch Part 1, Part 2.
DRY up your structured plain-text files with ERB
I had a huge Markdown file (used to generate a presentation) that had many repeated elements. It was getting hard to keep those repeated elements consistent. So I slapped a method to output the formatting I need in ERB tags directly within the file, threw an .erb extension on the file name, and used the “erb” command-line tool to render it. You can make managing your plain-text files easier, too, with the details in this blog post!