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.
[screencast] Function in Ruby
Hello all, I have made a screencast about functions in Ruby, one may watch it here
Glimmer DSL for LibUI Wins Fukuoka Ruby 2022 Special Award
I am very happy to announce that Glimmer DSL for LibUI (Ruby Desktop Development GUI Library) has been judged directly by Matz (creator of Ruby) and the 2022 Fukuoka Ruby Award Competition Judges and have won a Fukuoka Ruby 2022 Special Award! Read more
fake_io 0.1.0 released
fake_io 0.1.0 has been released. FakeIO is a module that can be included into any Class in order to create IO-like objects. FakeIO emulates buffered IO, while delegating the raw reads/writes to the io_read/io_write methods. FakeIO can be used to create IO-like wrapper objects around non-IO network data sources (ex: RPC, WebSockets, etc). FakeIO supports all Ruby 2.x and 3.x IO methods.
Automatic RubyGems Multi-Factor Authentication with Gemsmith
Hey all. ๐ Gemsmith 16.0.0 has been released and also completely rewritten on top of Rubysmith which brings a lot of modern convenience to building and maintaining your Ruby gems. Included in this release is the ability to automatically authenticate to RubyGems using Multi-Factor Authentication as long as your YubiKey is plugged into your machine. The linked article will walk you through how all of this works and how you leverage this functionality to speed up your own development workflow. ๐
[screencast] Ranges in Ruby
Published a screencast about Ranges in Ruby, one could watch it here:
First stable version of ๐ค smtp_mock has been released ๐
๐ Ruby SMTP mock. Mimic any ๐ค SMTP server behaviour for your test environment with fake SMTP server:
Dependency Injection in Ruby from Zero to Hero (Part 1)
Dependency Injection is an extremely useful programming technique and can be easily implemented in Ruby! But comes with own cost. Mastering it is an important skill to leverage the power of Hanami applications! dry-container is one way to help you with it! Read more
Sidekiq, Rails : full tutorial
Sidekiq allows Rails to launch any task in the background. Letโs see how, from zero to production. Read more
The Builder Pattern (video)
The Builder pattern allows you to hide the configuration of complex objects in a separate class. It makes sense to use it when you feel like the creation of an object has become too complex, and youโre repeating the process in a few different places. Or, when you need to create an object with different possible configuration options. Read more
Glimmer DSL for GTK Tetris + Cairo Tutorial Inspired by Mohit Sindhwani
Mohit, thank you for writing such a great introductory RCairo tutorial. My tutorial takes it further by showing software engineers how to build those same Cairo graphics into a desktop GUI application (as opposed to just plain images). Read more
Released nokogiri-ext 0.1.0
Released nokogiri-ext 0.1.0. nokogiri-ext is a collection of useful extensions to the nokogiri gem.
Implementing cursor-based pagination
Implementing a simple cursor-based pagination module in less than 100 lines of code.
Rubber Duck Dev Show Episode 27 | Refactoring in the Wild
Hear two rubyists discuss how to get started refactoring your code:
Ruby IDE
The 9 Best IDEs for Ruby on Rails Development
Milliseconds in Ruby
3 cases where you could meet milliseconds in Ruby. Read more
GraphQL APIs in Rails
GraphQL is a flexible, strongly-typed query language. Itโs useful because it gives front-end developers the ability to query the database without many changes to the back-end. In this article, David Sanchez shows us how to design and build our own GraphQL APIs in Rails.
Test and Optimize Your Ruby on Rails Database Performance
In this post, explore three common ways to discover and test database performance problems in Rails, and seven ways to optimize performance.
Spree Commerce 4.4 is here! ๐๐๐
This is the biggest open-source release in a long time filled with new features & integrations! ๐ช Spree is now even more composable and customizable! Read more
Strategic 1.2.0 (DefaultStrategy)
Strategic 1.2.0 (Painless Strategy Pattern in Ruby and Rails) shipped with a minor new feature: having a default strategy on Strategic classes of โdefaultโ, which is activated if a ModelNamespace::DefaultStrategy class is presentโฆ Read more
Upgrade Rails from 6.1 to 7.0
This article will cover the most important aspects that you need to know to get your Ruby on Rails application from version 6.1 to version 7.0.