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.
open_api_import - Convert a Swagger into a powerful DSL in seconds
Import a Swagger or Open API file and create a Ruby Request Hash file including all requests and responses with all the examples. The file can be in JSON or YAML
Help us to provide more translations!
For gems timeliness-i18n, rails-countries and validates-correios-cep. Thanks! [more inside]
We're getting closer to releasing Jekyll 4! A new beta dropped just now.
Hello, did you know? The world’s #1 (static) website compiler runs on ruby and is getting even better (and faster). To quote the latest official Jekyll tweet “We’re getting closer to releasing Jekyll 4!! A new beta dropped just now. Please give it a try and let us know how it goes!”. Happy website hacking (building) with ruby (and liquid, html & css).
[Screencast] How to Get started with React and Rails using the react-rails gem
A little video guidance to compliment the react-rails gem.
Artichoke Ruby made with rust - Try ruby in your browser running a WebAssembly build
Hello, I’ve added Artichoke Ruby to the Awesome Rubies (collection) page. What’s Artichoke Ruby? It’s a new upcoming ruby made in rust by Ryan Lopopolo et al. You can try Artichoke in your browser. Yes, the Artichoke playground runs a WebAssembly build of Artichoke. Congrats to Ryan Lopopolo for the inspiring code. What’s your take? Cheers. Prost.
What if I called FLUSHALL on your Redis instance? 😱
A story about safeguarding Redis clients and servers.
[Screencast] Working with Large Data
When database tables get large, things can slow down significantly. In this episode, we look at a few things which helps keep databases performant and the client side responsive. https://www.driftingruby.com/episodes/working-with-large-data
Don’t change the signature of Sidekiq jobs running in production
You should not change the signature of a Sidekiq job which is running in production. By signature I mean: the arguments and the class name of the job. [more inside]
[Video] Using Ruby's Reduce method to create a Hash of "Banana Bunch" Arrays
Watch how to sort banana bunches into fruit Baskets (Boxes) and take advantage of Ruby’s reduce method to create a hash of sorted data.
Football Data Wrangling w/ Ruby - Match 1500+ Football Club Names from 100+ Leagues
Hello, I’ve put together a short football data wrangling w/ ruby sample that lets you match 1500+ football club names from around the world using the sportdb gem / library and open football.db (public domain) datasets. Enjoy the beautiful game. Cheers. Prost.
Context Binding in Ruby (2mn)
In this article we’re going to explore the following topics:
7 Ways to Selectively Run RSpec Tests
By explicitly picking out tests at will to run, we can develop faster!
New validation added: aspect ratio for your ActiveStorage files + support for Rails 6
If you need to add aspect ratio validation like validates :photo, aspect_ratio: :landspace (or :is_16_9, :square, etc) for your ActiveStorage files: [more inside]
Slack Smart Bot. Run Ruby on Slack, create bots on demand and much more
Create a Slack bot that is smart and so easy to expand, create new bots on demand, run ruby code on chat, create shortcuts… The main scope of this gem is to be used internally in the company so teams can create team channels with their own bot to help them on their daily work, almost everything is suitable to be automated!! slack-smart-bot can create bots on demand, create shortcuts, run ruby code… just on a chat channel. You can access it just from your mobile phone if you want and run those tests you forgot to run, get the results, restart a server… no limits.
easy change user in your RoR App
just got support for Rails 6 apps. Thanks for @saiqulhaq
Keep It Simple: How to deal with Code Complexity
How to deal with code complexity and the KISS principle, with a real world Ruby example
Removing conditionals with Array() and Array.wrap
Ruby and ActiveSupport have two handy options for casting objects into arrays which helps guarantee your code is working with arrays and helps remove conditionals and simplify code. Learn how to use the Array() and Array.wrap methods in Ruby and ActiveSupport
How to build a Null Object library like Mimic
I saw the recent release of Mimic and decided to dive into the code to see how it was built. Learn how to build a tool to help with your projects
Lefthook: Fast, flexible, polyglot Git hooks manager
Read more about Lefthook, just out of Evil Martians’ foundries. The tool to manage all the Git hooks for your team in an environment-agnostic manner allows you to half your local and CI times linting/testing times, also comes as a Ruby gem, and works naturally with Bundler.
Sidekiq Batches: Tips & Tricks
In this Article Thaynã presents some tips and tricks when working with Sidekiq Batches: [more inside]