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.
A simple guide to integrating Heroku deployment with Travis CI in your ruby on rails
This article is a continuation of my previous article. We’ll learn by doing, to automatically deploy our ruby on rails app to Heroku when all of Travis CI tests pass. Here’s the Article.
Ruby Processes and Threads - Configuring a Web Server
Multiple popular Ruby web servers exist. Each Ruby application is different and the ultimate tl;dr for configuring a web server is: it depends. This post will not prescribe one web server or configuration over another and will instead explain internal components most popular servers contain. [more inside]
New Dependency Injection Library
Extracted from RubiconMD’s source code, we have released an opinionated Dependency Injection library. [more inside]
New release of Truemail, configurable plain Ruby email validator
Added configurable whitelist/blacklist and default validation type. https://github.com/rubygarage/truemail
SanePatch: Tiny gem that makes your monkey patching safer
SanePatch is a tiny gem that allows you to version guard your monkey patches. Read more about it here.
Impersonator: record and replay object interactions
Impersonator is a Ruby library to record and replay object interactions. Familiar with VCR? Impersonator is like VCR but for ruby objects instead of HTTP. [more inside]
A Rails middleware to change log level at runtime
This article presents a simple middleware which offers a basic interface to modify the log level of a Rails Application without restarting the server.
The Ultimate Checklist to Properly Internationalize Devise
https://dev.to/appsignal/the-ultimate-checklist-to-properly-internationalize-devise-59m6 [more inside]
screen-recorder gem - Record videos of your UI based automated tests
I created a ruby gem to video record your computer screen - desktop or specific window - using FFmpeg. Primarily geared towards recording automated UI test executions for debugging and documentation. https://github.com/kapoorlakshya/screen-recorder [more inside]
[Solidus] Boosting sales with browser cache!?!
Your eCommerce sales figures may not be as good as they look! This article shows how browser cache may affect Google and Facebook figures on your Solidus eCommerce, and how to fix it. (Solidus is a free, open source eCommerce platform for Rails)
How indexes on database works!
When it comes to performance of an application, databases play very important role. And one of the key factor in database optimisation is index. Here, I tried to explain how indexes on database works. https://gryffindor.in/blog/2019/06/08/how-index-works-on-database
Stimulus, Rails and RxJS for an SPA like experience
See how we can use Stimulus and RxJS along with server rendered templates to create a single-page-app like experience by just adding some sprinkles of Javascript. https://www.mikewilson.dev/posts/stimulus-and-rxjs-for-a-spa-like-experience/
Normalization, Consistency, and Clowne
This post discusses what could go wrong if you do not care of normal forms in your database design and demonstrates a particular example on how to fix something already broken with the help of the Clowne gem.
New in ruby-2.7.0 filter_map
https://blog.mavenhive.in/ruby-2-7-adds-enumerable-filter-map-d84aad03b6d4
Install ruby-2.7.0-preview using rbenv
https://blog.mavenhive.in/installing-ruby-2-7-0-preview1-using-rbenv-cab6f6a27757 Setting up Ruby-2.7.0-preview using rbenv
Scaling Your Ruby Service Objects with LightService
I wrote a quick guide to using the light service gem, which helps organize Ruby service objects. Check it out!
Ruby singleton_class example
In this post I tried to explain a use case of singleton_class. https://whatraghulearned.today/2019/06/07/ruby-singleton_class/
Feedback wanted on new feature for Sail
Feedback on the following proposal would be very appreciated! https://github.com/vinistock/sail/issues/114
Modulator - tool for publishing Ruby methods as AWS lambdas behind gateway endpoints
Write regular Ruby code without dependencies and deploy it from generated CloudFormation template - https://github.com/damir/modulator
Announcing the release of Filtered gem.
The gem helps to create filters for Rails’ ActiveRecord in an old-fashion way. It makes your controller simpler and forms effortless. Check it out https://github.com/dubadub/filtered