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
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
A new rails tutorial - How to use active storage in Rails 6.2. Covered everything about Active Storage - from definition to installation to functionalities to major updates in recent releases. Check it out https://blog.engineyard.com/tutorial-active-storage-on-rails-6.2?utm_source=RubyFlow&utm_id=QiWorks.in
Strategic 1.1.0 (Painless Strategy Pattern in Ruby and Rails) has been released! [more inside]
Hear two rubyists discuss how to optimize your database’s performance: https://www.rubberduckdevshow.com/episodes/8-database-performance/
Explaining a dual build strategy by exploring a case where we migrated a large Rails application from Sprockets to Webpacker. https://evilmartians.com/chronicles/the-tale-of-sprockets-and-webpacker-duality
We are here to bear witness to the untimely demise of Jekyll, a once proud Ruby open source project and #1 static site generator in the world. (And keep reading to see what lies ahead.)
Hello, I added a new sample collection to /punks.starter - the free pixel art collection quick starter package that lets you generate algorithmically your own curated (or randomized) collections. Yes, in ruby. Let’s welcome Collection №2 - The First One Hundred Pixel Art Punks. Yes, you can. Generate a pixel-perfect copy of the first one hundred punks in the original Larva Labs series in the classic 24x24 format or with a 20x zoom (480x480). Happy pixel pushing and minting with ruby.
I wrote a gem for distributed locking based on Google Cloud Storage. It can be used for ensuring mutual exclusion in workloads that span multiple machines. I use this for ensuring mutual exclusion in Fullstaq Ruby’s Github Actions pipeline. Before writing this library I spent quite some time in designing the algorithm, addressing caveats (particular all the dangers that could happen outside the happy path) and ensuring correctness. I blogged about this some time ago. Compared to Redis-based locks (such as Redlock), this library is safer because it addresses the critiques documented by Martin Kleppmann.
Zen Rails is a base application for Ruby on Rails 6.1 projects. Built to minimize the time spent writing boilerplate code and performing repetitive setup tasks. It was just updated to the latest Ruby and Rails versions.
Hear two rubyists discuss how to write secure code: https://www.rubberduckdevshow.com/episodes/7-writing-secure_code/
Beep. Another rejection. You don’t have experience for an entry-level Ruby job. Worse: chirp, chirp, chirp. No replies at all. Are you tired of all of this? If you want to get real-world experience, apply this strategy to get different results.
Google Cloud Platform provides developers with many tools to build scalable apps in a way friendlier than AWS. In this article, Olasubomi Oluwalana shows us how we can use the Google Cloud Engine, Storage, and PubSub offerings to build an uptime monitoring system in Ruby. https://www.honeybadger.io/blog/gce-cloud-storage-pubsub-uptime-monitoring-ruby/
Taking advantage of capture groups to manipulate Strings in Ruby [more inside]