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.
When not to use instance variables in RSpec
Let’s explore how RSpec helps developers use instance variables between specs, by restoring them before every spec, and in what kind of scenarios you should and should not use them.
Ruby on Rails Admin Panel - Forest Admin
Forest Admin, a SaaS solution that helps developers build admin panels in a flash, just rolled out official in-app Ruby on Rails support. No code, no hassle — check out the details here: https://www.forestadmin.com/rails/
Glimmer DSL for SWT code_text Widget Adds Support for 205 Programming Languages
Gladiator (Glimmer Editor) has been upgraded with Multi-Programming-Language support by taking advantage of the latest release of Glimmer DSL for SWT, which added multiple language support to the code_text custom widget, now supporting over 205 programming languages in addition to Ruby.
http://andymaleh.blogspot.com/2021/02/gladiator-glimmer-dsl-for-swt-multi.html
Gistory: Know when a gem was updated in your project
Sometimes we need to know when a specific gem was updated in our Ruby project. Gistory makes this easy, just run gistory gem-name and you’ll get something like: [more inside]
🌍 Honua - A library for static geo map images.
A Ruby library to stitch geographic map images based on map tiles provided by a rastered tile server like OSM. Highly inspired by ModestMaps. [more inside]
Admin panel MissionKontrol repo on Github
Hey there, after over 2,000 commits, we’ve just made our open source rails admin panel MissionKontrol public on Github. The self-hosted app allows you to connect to multiple databases (good for microservices envs), has full RBAC user permissions, CRUD tables and drag and drop views. Would love any feedback you might have.
Data Science w/ CryptoKitties - Calculate Cattributes Rarity & Popularity
Hello, I’ve updated the CryptoKitties Cattributes rarity / popularity statitics page using the latest “official” totals, see https://api.cryptokitties.co/cattributes. Cheers. Prosit 2021! PS: Find the cattributes script that builds the page in the kittyverse repo. Or as an alternative see chapter 3 in the “Programming CryptoCollectibles” book(let) for how to create your own up-to-date page or stats from scratch.
CircleCI build with multiple databases and Rubies
https://thibautbarrere.com/2021/01/20/circle-ci-with-multiple-databases-and-rubies I’m sharing my findings setting up a CircleCI build with MySQL, Postgres, and multiple Ruby versions for Kiba Pro. Happy reading!
LQIP in Rails using Thumbor and base64
Use Thumbor and base64 to create tiny image thumbnails for your Ruby on Rails applications. [more inside]
Glimmer Tetris Icon via Image Shape DSL + Instant Down
Glimmer Tetris just got an app icon that shows up in the app switcher and at the bottom dock. The most fantastic thing about this image icon is that it was generated dynamically with the Glimmer Canvas Shape DSL embedded in an image object (Yes! Glimmer now supports painting images). In fact, it is randomized, so as a fun factor, the game will get a different icon every time it runs.
http://andymaleh.blogspot.com/2021/01/glimmer-tetris-icon-via-image-shape-dsl.html
The No-Framework Framework: JavaScript Without React Part I
How to structure JavaScript modularly without resorting to a framework. Video with code examples plus vim action: https://www.youtube.com/watch?v=BpFtR8U_sjw
New Ethereum Examples Using the crypto-lite Gem (Derive the Public Key from Private)
Hello, I added some new ethereum examples on how-to use the crypto-lite gem. New examples include: Derive the (elliptic curve) public key from the private key, Generate the Ethereum Address from the (Elliptic Curve) Public Key, and so on. Happy secure programming with ruby. Cheers. Prosit 2021!
Day 4 - glimmer-dsl-opal Gem - Script Web Widgets w Two-Way Data-Binding - Ruby ♥︎ JS
Hello, lets thank Andy Maleh for the fourth and last write-up in the Ruby Glimmer Days 2021 - Best of Ruby Gems series. Lets welcome “Day 4 - glimmer-dsl-opal Gem - Script Web Widgets with Two-Way Data-Binding - Ruby <3 JavaScript - Thanks to Opal, the Ruby to JavaScript Source-to-Source Compiler”. Cheers. Prosit 2021!
Slugs in Rails using Friendly ID Gem
Do you want to know how to implement slug in Ruby on Rails using FriendlyID RubyGem? Read this guide to know the steps that will help you in using slug in Rails with the help of FriendlyID. https://www.botreetechnologies.com/blog/slugs-in-rails-using-friendly-id-gem/
Experiments with revenue sharing in a Rails Consultancy
We recently announced our first yearly profit share for our employees. This post tries to list out our experience in our process behind it. Hope it helps someone trying out similar models. [more inside]
HOTWiring An Existing Rails Monolith
How do you add Turbo to your existing Rails app? What do you need to watch out for as you transition to a full HOTWire approach? I found it to be very straight forward, and mostly a search and replace operation. https://onrails.blog/2021/01/28/hotwiring-an-existing-rails-monolith/
What's Upcoming in 2021? - A collection of awesome (online) ruby conferences & camps
Hello, I’ve put together a new ruby conferences & camps page for 2021. See What’s Upcoming in 2021? - A collection of awesome (online) ruby conferences & camps from around the world. Updates welcome. Cheers. Prosit 2021!
Day 3 - glimmer-dsl-tk Gem - Script Widgets Declaratively - Tk - The Best-Kept Secret
Hello, lets thank Andy Maleh for the third write-up in the Ruby Glimmer Days 2021 - Best of Ruby Gems series. Lets welcome “Day 3 - glimmer-dsl-tk Gem - Script Widgets the Declarative Way (Say What, Not How) - Tk - The Best-Kept Secret and Evergreen Classic Now in v8.5 with Native Look ‘n’ Feel on Mac, Windows, and Linux”. Cheers. Prosit 2021!
Glimmer Tetris High Scores & More Menus
Glimmer Tetris just got a High Score dialog (replacing the Game Over dialog) and got enhanced to save/load high scores to/from disk (tab delimited format). It uses the user directory (dumping a .glimmer-tetris/high_scores.txt file) to use the same security permissions as the current user. If writing fails for any reason, it fails gracefully, defaulting to memory storage of high scores. [more inside]
Ractors: Multi-Core Parallel Processing Comes to Ruby 3
Historically, the only way you could truly achieve async parallelism in Ruby would be to fork multiple processes or schedule background jobs. Until now. Welcome to Ractor, a brand-new method of running async code in Ruby 3.
RBS: A New Ruby 3 Typing Language in Action
Let’s discover the differences and similarities between Sorbet and the recently released RBS through some practical examples. [more inside]
Logidze 1.0: Active Record, Postgres, Rails, and time travel
Ever had to audit and track Active Record models in a Rails app? Take a look at Logidze 1.0: a more performant alternative to well-known Paperclip with PostgreSQL triggers under the hood. [more inside]