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.
Alphabets Benchmarks - How many ways to unaccent a text string? And the winner is...
Hello, let’s try out half a dozen ways to unaccent a text string?
What’s the fastest way to turn AÄÁaäá EÉeé IÍiíï NÑnñ OÖÓoöó Ssß UÜÚuüú into AAAaaa EEee IIiii NNnn OOOooo Ssss UUUuuu? Let’s benchmark and the winner is… Spoiler: gsub . Can you find a faster way? Show us. Happy data (and text) wrangling with ruby. Cheers. Prost.
Magic Comments in Ruby
In this article, we’re going to explore the following topics:
fifa gem - the world's football countries and codes (incl irregulars and non-members)
Hello, I’ve put together a new fifa gem / library that includes all the world’s football countries and codes (incl. non-member countries and irregular codes). Use Fifa.countries to get a list of all countries or Fifa['ENG'] to lookup the record for England, for example.
Happy data wrangling with ruby. Enjoy the beautiful game. Cheers. Prost.
A Complete Guide to the Ruby Programming World
This article helped me decide to start learning Ruby, as it had some great insights of why Ruby is worth learning. [more inside]
Improve up your Rails controllers using a pub/sub pattern
This article will introduce you to the pub/sub pattern, and show you how to improve your Rails controllers by implementing it using the whisper gem [more inside]
The Road to $10,000 Profit from my Rails Side Project Slack Bot
My side project Slack app Abot has recently reached a milestone of $10,000 total profit. In this blog post, I describe how the project has changed during the last year and what I am doing to grow and promote it. I also share some details about the usage stats and profit. [more inside]
How old are dependencies in your (ruby) project?
A short article about a basic way to visualize the age of dependencies in a ruby project and assess the outcome of upgrading them.
Kittyverse Gem Update Incl All CryptoKitties Traits & Genes, Fancy Cat Recipes & More
Hello, I’ve updated the kittyverse gem / library that includes all CryptoKitties traits (e.g. fur, eye shape, pattern, …) and all fancy / exclusive / special editions cats (with time windows, limits, recipes and much more. Happy data wrangling with ruby. Cheers. Prost. PS: For a list of all fancy cats see the auto-generated Fancy / Exclusive / Special Edition Cats - Timeline page, for example.
tty-link - hyperlinks in your terminal
The tty-link allows you to check and display hyperlinks in terminal emulators that support them such as iTerm and any VTE compatible emulators. Enjoy!
How to Correct 32,000 Incorrect CSV Files in Fewer Than 32,000 Steps
Figuring out where an extra comma is in a CSV is an interesting problem involving some real math that I wish I remembered easier. The story behind writing the comma_splice gem.
Interview with DHH on Remote Ruby
Jason and Chris talk with David Heinemeier Hansson. David shares how we got started in programming, how he found Ruby and subsequently created Ruby on Rails, his love for Ruby, how he approaches the topic of “Rails is dead,” and much more.
Ciao – HTTP checks and tests monitoring
ciao checks HTTP/S URL endpoints for a HTTP status code (or errors on the lower TCP stack) and sends a notification on status change via E-Mail or Webhooks. [more inside]
Fullstaq Ruby: first impressions
Hey, old-timers, remember REE? It is back! [more inside]
How to Use The Ruby Uniq Method To Remove Duplicates
You have an array with duplicates, but you want only unique elements. What can you do? Use the “Array#uniq” method. Did you know that this method takes a block? Learn more here: https://www.rubyguides.com/2019/08/ruby-uniq-method/
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 https://github.com/MarioRuiz/open_api_import
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).