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.
Validate keys of hash using assert_valid_keys đźš§
Have you heard of the assert_valid_keys method for the Hash class in Rails? [more inside]
Ruby is Dead Trivia - Did You Know - Ordinal Punks On Bitcon Are Generated w/ Ruby
Hello, The Norwegian writes: Unless you’ve been living under a rock the last week, you’ve probably heard about Ordinals (and the top collection, that is, Ordinal Punks). The top selling alien ape with a $200 000+ all-time-high sale. Is it a classic fake wash trade or a love the (pixel) art real historic trade? Anyways, did you know that all 100 ordinal punks are generated in ruby with the punk command-line that incl. the punk spritesheet and ships as a ruby gem package. Read full background story. PS: Do you know any other “hidden champion” ruby story? Please, tell.
ActionMailer Balancer: Keeping the Email Sending Equilibrium
ActionMailer extension works as a balancer that allows safely migrating to a new email provider, proportionally distributing the email sending load between two different sending services and keeping the sending equilibrium. For example, you set up 70% with SendGrid, and 30% with Mailtrap (or any other provider). [more inside]
Autoscaling GoodJob Queues
GoodJob is a modern ActiveJob backend that’s been gaining traction lately. We just published the judoscale-good_job gem to integrate GoodJob with the Judoscale autoscaler. Here’s how to autoscale your GoodJob queues with Judoscale.
External Garbage Collection
How to clean up your app’s trash with examples In Ruby: https://census.dev/blog/external-garbage-collection
abi2ruby gem - generate ready-to-use contract services for Ethereum & Co.
Hello, in the ongoing crypto winter programming series in ruby I added yet another gem, that is, abi2ruby that lets you generate ready-to-use (blockchain) contract services / function calls for ethereum & co. via application binary inferfaces (abis). See the abi2ruby readme for some first real-world examples. Happy blockchaining with ruby. Cheers. Prost.
Fake Time.now in production
Learn how to mimic the current time in production on a Rails server and debug your application. Discover techniques to set the time and date in production, as well as tips on how to simulate travel time. Get the most out of your Rails application in production with these helpful tips. [more inside]
Participating in programming language's evolution during interesting times
A long and personal article: about how my 2022 went in Ukraine, why I still found some time to work on Ruby programming language, and why it matters to me.
🍸 Tonic - Digital Collections framework new release!
During the last weeks new versions of Tonic have been released 🚀 (last is v0.14.3) with some new useful features for your collection! [more inside]
RubyConf 2022 Talk Video for Building Native GUI Apps in Ruby
My RubyConf 2022 talk video on “Building Native GUI Apps in Ruby” using the Fukuoka Award Winning Glimmer DSL for LibUI has just been released! [more inside]
A Ruby Set using memory and disk (SQLite) for large sized tasks
Have a large task you need a Ruby Set for but it’s too big to fit in memory? We open sourced our hybrid Ruby Set that spills to disk using SQLite when the Set goes over a threshold: https://census.dev/blog/anansi
4 Strategies To Remove Dead Code from your Ruby App
How much does it cost you to carry dead code? How do you find and remove zombie Ruby code? [more inside]
Rubber Duck Dev Show Episode 72 | Game Development in DragonRuby With Amir Rajan
In this episode, we discuss game development using the DragonRuby 2D engine with Amir Rajan: https://www.rubberduckdevshow.com/episodes/72-dragonruby-game-development-with-amir-rajan/
abidump gem - command-line tool to dump / pretty print or (re)format abis
Hello, in the ongoing crypto winter programming series in ruby I added yet another gem, that is, abidump that ships with a command-line tool that lets you dump / pretty print or (re)format application binary interfaces (abi) for Ethereum & Co.. See the abidump readme for some first real-world examples. Happy blockchaining with ruby. Cheers. Prost.
Getting Started with Hanami and GraphQL
Ten simple steps to get started: https://lucaguidi.com/2023/02/06/getting-started-with-hanami-and-graphql/
Demystifying the Asset Pipeline
The asset pipeline can be confusing. So, in this episode, we explore Sprockets and the movement towards Propshaft, a new Rails library for managing assets. We’ll also have a look at some nuances with jsbundling and how to overcome them. https://www.driftingruby.com/episodes/demystifying-the-asset-pipeline
Rails 7. Start Kit. Release 1.5 has been published
Hello! New release of Rails 7. Start Kit is here! Release 1.5. This release introduces RSpec as a part of the project. Full list of recent changes you can find in the release list. Have an easy and happy coding!
Ruby 3.2 comprehensive changelog
The Ruby Changes (open, structured, explained, and cross-linked changelogs for Ruby) is updated to include all Ruby 3.2 changes with all the “why”s, “how”s, and links to docs and discussions!
Ruby Conferences & Camps in 2023 - What’s Upcoming? Update
Hello, I have updated the ruby conferences & camps in 2023 calendar page over at Planet Ruby. Built in ruby via github pages (jekyll) and an open datafile (in yaml) - see conferences2023.yml . What’s Upcoming? Rails Girls Rotterdam (FREE!), and more. PS:Did you know - the calendar web feed gets (automagically) syndicated on Rubyland News. Anything missing? Yes, you can. Add an upcoming ruby conference or camp. PPS: For the record I posted to r/rails too and - surprise, surprise - got censored - for what?
Credentials for Bridgetown
Bridgetown gets better with every release and along with rock solid static site features, the optional dynamic capabilities go well beyond a simple SSG. That said, your growing Bridgetown site might rely on external services and APIs at some point and managing their credentials with environment variables is tedious at best. Enter the Bridgetown Credentials plugin which implements the best parts of credentials from Rails: Commit encrypted credentials to the repo and decrypt them on the fly.
We should adopt and use new Ruby features
In the same way, words or the language (we speak) shape our thinking and our reality, programming language constructs or features shape how we define a problem and the solution that we code for that problem: [more inside]