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.
Let's Rewrite the Solidity (JavaScript-like) CryptoPunksData Contract in Ruby
Hello, I’ve written up an article titled Inside the CryptoPunksData Contract - Decoding the On-Chain Assets (11 Archetypes and 122 Attributes) and Color Palette for Easy (Re)Use “Off-Chain” that rewrites the original “on-chain” CryptoPunksData contract code in Solidity (JavaScript-like) in - surprise, surprise - ruby that you can run - surprise, surprise - offline and offchain in your own home for free and forever (the punkdata scripts are dedicated to the public domain.) Happy pixel art programming with ruby. PS: Want to generate your own punks (in ruby)? See Run Your Own Free Decentralized Autonomous Punk Generator Contract / Service (Offline and Offchain) in Your Own Home to get started.
Rubber Duck Dev Show Episode 7 | Writing Secure Code
Hear two rubyists discuss how to write secure code:
Rubysmith + Zeitwerk Support
Hey everyone. 👋 I’ve recently released Rubysmith with Zeitwerk support. I’ve written up an article explaining the details in case it’s of help/interest when building your own Ruby projects with a lot of the boilerplate automated for you. 🎉
Hotwire Explainer Video
What is Hotwire, and what problems does it solve? The Pragmatic Studio’s 7-minute explainer video will get you up to speed fast.
Ruby Dev With No Experience? Here's one way to get experience today.
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.
Rails 7 and JavaScript
Over the last few weeks, DHH and the Rails core team have announced a number of different JavaScript build tools for use with Rails 7. As I was writing this very post, DHH wrote his own post outlining the strategy for Rails 7 and JavaScript. [more inside]
My book on deploying Rails got released
Deployment from Scratch is an introductory, but comprehensive book on deploying web applications including Puma configuration, Action Cable or Rails credentials.
Rspec and Redis Testing Setup
We’ve started using Redis for caching API calls, especially for external calls, where we don’t need fresh data for at least a week. Is there a way to test this code without having Redis installed in a test environment? [more inside]
Build an Uptime Monitoring System in Ruby with GCE, Cloud Storage, and PubSub
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.
3 ways to use Regexp capture groups with back-references in Ruby
Taking advantage of capture groups to manipulate Strings in Ruby [more inside]
Rubber Duck Dev Show Episode 6 | Handling Exceptions
Hear two Rubyists discuss how to handle exceptions:
Real-time stress: AnyCable, k6, WebSockets, and Yabeda
Introducing a k6 plugin to load test WebSockets and trying to ruin a real-time application under a load and compare the results for different WebSocket servers: Action Cable, AnyCable, and AnyCable Pro.
Web Scraping Made Easy With Ruby
Explore web scraping basics with Nokogiri Gem [more inside]
[Screencast] esbuild for Rails
Use esbuild to bundle your JavaScript, then deliver it via the asset pipeline in Rails. This gem provides an installer to get you going with esbuild in a new Rails application. https://www.driftingruby.com/episodes/esbuild-for-rails
[Screencast] Importmaps in Rails 7
Import maps let you import JavaScript modules using logical names that map to versioned/digested files – directly from the browser. This will be a default in the upcoming Rails 7. https://www.driftingruby.com/episodes/importmaps-in-rails-7
Blockheads - Let's Build 8x8 Pixel Art Avatars from the Historic (2013!) Video Game
Hello, Inspired by Blockheads - The Guide to 70 Boy Skins (Anno 2013) I’ve put together an article titled Blockheads (Anno 2013) - Let’s Build 8x8 Pixel Art Avatars from Scratch. Yes, in Ruby - see the blockheads.rb script. Yes, you can! Now generate your own 8x8 blockheads and use your own designs. Bonus for adding the missing beard building blocks / attributes.
Oktest.rb 1.1.0 released -- JSON Matcher implemented
Oktest.rb 1.1.0 released, a new-style testing library for Ruby. In this release, JSON Matcher (like JSON Schema) implemented which will help you to test JSON data very well. See README for details.
JWT expiry validation with Varnish
How we validate JWT expiry fields before it reaches our Rails backend -
Hotwire::Livereload v0.1
Automatically reload Hotwire Turbo when “view” files are modified.
How to unescape XML/HTML character entities ?
Unescape entities like A or < from a Ruby String :