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.
ordinals gem - "right-clicker" (off-chain) ordinals (pixel art) machinery & helpers
Hello, in the ongoing crypto winter programming series in ruby I added yet another gem, that is, ordinals that incl. the ordbase command-line tool that lets you download, downsample & compose all-in-one ordinal (pixel art) collections from the bitcon blockchain via ordinals.com. See the ordinals readme for a ordinal punks step-by-step real-world example. New to ordinal punks? See Awesome 100 Ordinal Punks (Anno 2023) Notes. Happy blockchaining with ruby. Is bitcon up for a come back with ordinal digital artefacts? Are 8-bit golden (pixel) punks or birds (in png) the new digital gold nuggets? Cheers. Prost.
Granting at least once delivery
Exactly-once is the message delivery guarantee that most developers want to achieve in their systems. However, the implementation of the set of rules backing it up should include the application layer. [more inside]
[ANN] rodauth-oauth 1.2.0 released
rodauth-oauth 1.2.0 has been released. [more inside]
RubyFlow has moved to fly.io
Due to Heroku turning into a Kafkaesque nightmare, I’ve moved RubyFlow over to fly.io. This comes with some teething issues due to the antiquity of the code, but I think I’ve sorted most of it out now. Let me know if any problems. (The front page is a bit slower to load due to how I’ve got the database temporarily set up in a separate data centre 😬 but this will resolve itself in due course.)
Rubber Duck Dev Show Episode 73 | Hobby Programming With Nick Schwaderer
In this episode, we discuss hobby programming with Nick Schwaderer: https://www.rubberduckdevshow.com/episodes/73-hobby-programming-with-nick-schwaderer/
Attribute level permission control in Rails
In Ruby on Rails, authorization can be implemented at the controller level, action level, or attribute level: https://dev.to/povilasjurcys/method-level-permission-control-in-rails-4fl5
InvoicePrinter 2.3.0 released!
A Ruby library, server, and command line client for generating PDF invoices got a brand new version. Prawn 2.4, Ruby 3.1+, the new description field and more.
Open Source Heroes
http://opensource-heroes.com/ is not fully related to Ruby, but a fun fact, the well-known Rubyist Ankane is #64 in global rating as an individual by a number of stars of his projects.
Ruby Conferences & Camps in 2023 - What’s Upcoming? Another Update
Hello, I have added some more updates to the ruby conferences & camps in 2023 calendar page over at Planet Ruby (as a free public service). Yes, built in ruby via github pages (jekyll) and an open datafile (in yaml) - see conferences2023.yml . What’s Upcoming? Rails Girls Rotterdam (FREE!), Ruby Day Italy, Helvetic Ruby, Ruby Kaigi, Ruby Conf Thailand, Wrocław Ruby, 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? Update: After asking the mod to unflag I am now muted and perma-banned on r/rails.
ActiveRecord: finally understand transactions
Database transactions are an essential tool to master. Because ActiveRecord’s transactions interface is not intuitive (and not well designed IMO), this article explains how to use it and explains what pitfalls you should pay attention to. [more inside]
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