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.
Tonic đž- New release with filtering by query string
A new version v0.10.0
of Tonic has been released! It essentially includes a new cool and useful feature: allow to filter by URL parameteres (query string), so you can easily share your custom filtering, by just passing the URL: [more inside]
Evaluating More Coverage in Ruby 3.2
Rubyâs Coverage
module can now measure coverage of eval
. Letâs explore how it works and why itâs important. [more inside]
ethers gem - Rails-Like All-In-One Umbrella For Ethereum & Co.
Hello, to make it easier to get started with blockchain (contract) programming in ruby - and inspired by the rails gem - I put together the ethers gem - a âhigh-levelâ all-in-one umbrella quick starter gem for easy installation & usage for ethereum & co. (blockchain) contract services that for now bundles crypto-lite, etherlite, etherlite-contracts, ethname, etherscan-lite, abidoc, abigen, & some more gems. The ethers name is inspired by ethers.js (or ethers.rs) and letâs you use ârequire âethersâ in rubyland or âgem install ethersâ to get started. Anyways, itâs the early days in crypto winter 2022/23. Happy blockchain (contract) programming with ruby. Questions and comments welcome. Cheers. Prost.
abigen gem - Application Binary Interface (ABI) Contract Generator for Ruby
Hello, in the ongoing crypto winter ethereum & co. programming series I put together some more gems. The new abigen gem lets you generate ready-to-use (blockchain) contract services / function calls for ethereum & co. via application binary inferfaces (abis). Bonus: Via the new natspec gem you can even âauto-includeâ nat(ural) spec(ification) comments / documentation in the generated ruby code. See the pre-packaged auto-generated ruby classes in the ethlite-contracts gem, for some first real-world samples.
Summary of Advent of Code 2022
I wrote a tiny summary of last Advent of Code, lessons learned, which puzzles turned out to be challenging and so on. I also posted all my solutions in Ruby with explanations. You can check them out, either to see how to solve them or to compare with yours and share feedback.
Rails 7.1 - Raises on assignment to readonly attributes
I have published a micro-blog on the Rails 7.1 - Raises on assignment to readonly attributes. [more inside]
How to create a Rails gem from your existing code
https://codewithrails.com/create-rails-gem - A step-by-step tutorial on how to create and publish a Rails gem from your pre-existing code.
Glimmer DSL for LibUI Table Lazy Loading
Glimmer DSL for LibUI 0.6.1 has been released with support for table lazy loading via Enumerator
(or Enumerator::Lazy
). As a result, the table control can now handle millions of rows and renders instantly without waiting for all data to be loaded given that it is loaded lazily as the user scrolls through the table. That enables applications with a lot of data to start instantly. A new example, Lazy Table, has been included to demonstrate table lazy loading. https://andymaleh.blogspot.com/2023/01/glimmer-dsl-for-libui-table-lazy-loading.html
Create a Business Language for a Rails Application
Build and parse a programming language to extend your Rails applicationâs functionality: https://blog.appsignal.com/2023/01/11/create-a-business-language-for-a-rails-application.html
What's new in Ruby 3.2
Ruby 3.2 was released on Christmas day, and Iâve been playing around with its new features. The highlights this year are the performance gains from YJIT, WebAssembly support, faster regular expressions, and a new way to define immutable value objects, [more inside]
Advanced CLI tools with Ruby and dry-cli! | Hanami Mastery #37
Utility scripts in Ruby can be very powerful, but also very messy. In this episode I showcase dry-cli, to help you maintain advanced ruby CLI progarms. [more inside]
Punch Code Generator. Frame for designing business logic with The Clean Architecture
If you find a solution for how to pack your business logic you can have a look at Punch. Its basic idea is to provide a clean robust frame for domain business logic and bring efficiency to the design process. [more inside]
hexutils gem - Hex Encode / Decode Helpers; From Hex String to Bin(ary) String & Back
Hello, a new addition in the ongoing If I Were ~~King~~ Matz (aka Yukihiro Matsumoto) - Ideas For Ruby 4.0 - Whatâs Broken & Missing in Ruby 3.x and How To Fix It series I published a first version of the hexutils gem that adds the missing hex(adecimal) encode / decode helpers to String, NilClass, Kernel & Co. that get you from hex(adecimal) string to bin(ary) string and back. Happy wrangling with bits & bytes in ruby. Cheers. Prost. As always questions and comments welcome.
Simon Wardley on Improving Business With Maps
Learn how to use maps to change a business position or strategy, represent possible scenarios or options, and improve decision-making. [more inside]
Advanced Applicative Programming in Ruby
This time we discuss applicative lists, parsers and traversables. Read more here
Adding tests to an existing project
I wrote a blog post about how Iâve added tests to a gem I recently built without writing any tests initially: [more inside]
Awesome Ruby blogs
Hello everyone! đ Iâm happy to share with you an updated list of ruby and rails blogs. [more inside]
Rails 7 on Docker. (PgSQL + Redis + Sidekiq + Sphinx)
Ready to go Rails Playground with some popular preinstalled and set up tools and services.
Clone and run bin/setup
. Rails App will be ready to develop in minutes. Rails 7 on Docker
Using Nebula TextAssist from Glimmer DSL for SWT
Recently, I received a support request concerning Glimmer DSL for SWT (JRuby Desktop Development GUI Framework) and the use of Nebula Custom Widgets, specifically the text_assist widget (auto-complete text field). For a quick background about Nebula, it is a collection of 55+ enterprise-grade high-quality SWT (Standard Widget Toolkit) custom widgets, including a progress circle, a password revealer, and an oscilloscope. Thanks to Glimmer DSL for SWT, they are usable from Ruby. https://andymaleh.blogspot.com/2023/01/using-nebula-textassist-from-glimmer.html
Monkey Patch Responsibly
Learn how to deploy Monkey Patches in Rails Applications, or as Rubygems, that donât blow up your production environment because you forgot to take them out when a final patch was released. [more inside]