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.
A Q&A with Nick Sutterer, creator of the Trailblazer framework
Nick is a developer, presenter, and lover of pubs who has created numerous tools and frameworks to scratch his itches with Rails. Full interview here.
Blockchain! - The blockchain-lite, ledger-lite, merkletree, centralbank moved...
Hello, I moved the blockchain-lite, ledger-lite, merkletree, centralbank, tulipmania, etc. gems to a new home / monorepo, that is, blockchain @ ruby code commons (coco). Happy blockchaining and growing money on (merkle) trees with ruby. Cheers. Prost.
Inserting from Datasets with Sequel
I wrote about different strategies for moving large amounts of data in your migrations, and how Sequel has your back when you want your database to to the work. https://janko.io/inserting-from-datasets-with-sequel/
First birthday for new ShinyCMS
Last year, I started a Ruby rewrite of ShinyCMS (an open source content management system, originally written in Perl). Recently I posted a short progress report on the project’s first birthday - including the current feature list, and some more general thoughts about the first 12 months.
Test automation based on Ruby stack and Gitlab CI
Hello. I’ve made a simple instruction if you want to start run integration tests, and would like to use some boilerplate. In article I tried to give explanations around all used libraries and bit about GitLab CI. Also in article you can find an example of using site_prism gem which is wrapper for Page Objects in ruby tests.
monofile gem - read monorepo / mono source tree definitions - a list of git projects
Hello, I’ve put together the monofile gem / library that lets you read in / parse monorepo / mono source tree definitions, that is, a list of git (and github) projects, and more. E pluribus unum. Make out of many, one. Cheers. Prost.
The Future of Bridgetown Today in v0.18 “Taylor Street”
We’re excited to announce the the release of Bridgetown 0.18, codenamed “Taylor Street”. This is an action-packed release which sets the tone for the future of Bridgetown and the broader Ruby web developer community. Check out the top highlights!
Split your Webpacker bundles to speed up the web
This is how we managed to reduce our main Webpacker bundle size by ~60% and raise the Lighthouse performance score by ~7 points on most pages, by splitting up the bundle. [more inside]
11 Terminal shortcuts that will make you Rockstar
Are you using mac book and still not feeling productive? Know these 11 terminal shortcuts that will make you the rockstar: https://blog.mayurkumar.info/11-Terminal-shortcuts-that-will-make-you-Rockstar/.
How to Integrate PayUMoney in your Spree Commerce Store with Ruby on Rails?
Want to know how to integrate PayUMoney in your Spree Commerce store using Ruby on Rails? Read this blog for step-by-step instructions. https://www.botreetechnologies.com/blog/integrate-payumoney-spree-commerce-store-with-ruby-on-rails
How to merge SimpleCov results on SemaphoreCI 2.0
SemaphoreCI is an up and coming bare-metal CI, I suggest you guys to try it out. Anyway here’s how to merge SimpleCov parallel test results with their workflow & job artifacts storage. [more inside]
Struct class in Ruby
I have tried to explore and put together all that could be useful about the struct. Follow: https://www.sandipmane.dev/struct-class-in-ruby
football-to-psql - load / read football.txt match datafiles into postgreSQL database
Hello, I have put together the football-to-psql tool that lets you load / read football.txt match datafiles (e.g. English Premier League, German Bundesliga, Spanish La Liga 2020/21, etc.) into a postgreSQL database. Example: football-to-psql england.db 2020-21\1-premierleague.txt Enjoy the beautiful game with ruby. Cheers. Prost. PS: Not a friend of PostgreSQL? Try the little brother / sister serverless SQLite variant, see football-to-sqlite.
ActiveWorkflow 0.9.11 is out, with numerous updates to the UI
This release brings numerous updates to the UI—better styling, improved visual consistency, and a brand new logo. Also, there are multiple other small fixes and improvements. See https://github.com/automaticmode/active_workflow for more. 🎸
Squash N+1 queries early with n_plus_one_control test matchers for Ruby and Rails
Discover the test-oriented alternative to detecting the N+1 query problem in your Rails and pure Ruby applications even before the redundant database calls manifest in your development. The n_plus_one_control gem works differently from well-known tools such as Bullet and makes sure that extra SQL queries never go unnoticed, independent of your ORM tool of choice.
Reloading Rails Partials on Demand with render_async
Refresh parts of your page using the new version of render_async. Read more about it in the blog post here https://pragmaticpineapple.com/reloading-rails-partials-on-demand-with-render-async/
The Arguments Forwarding shorthand in Ruby 2.7 🤩
How to 3-dots operator can be used to automatically forward arguments to another method call rubycademy.com/arguments-forwarding-shorthand
Russian Production Calendar (1997 - 2025)
Working days calendar of Russia, ruby gem by Open Data Portal © Russian Ministry of Economic Development
Annotating Rails models using the Annotate Gem
You can use the annotate gem to get a summary of the Active Record schema at the top of relevant files (models, controllers, fixtures). https://cionescu.github.io/2020/10/24/using-annotate-in-rails/
Gladiator (Text Editor Fully Written in Ruby) Finally Gets Colors!
Gladiator (short for Glimmer Editor) is a text editor fully written in Ruby as an exercise in using Glimmer DSL for SWT. It was declared the Ugliest Text Editor Ever on reddit. Sadly, it might no longer hold that title since it just got colors with Ruby Syntax Highlighting. Check it out at GitHub: https://github.com/AndyObtiva/glimmer-cs-gladiator
flow-lite gem - lite workflow engine; let's you define your workflow in Flowfiles
Hello, I have bundled up in the flow-lite gem - a lite (lightweight) workflow engine that let’s you define your workflow steps in Flowfiles (in ruby) and includes the flow command line tool. The original itch / need / inspiration was / is the use in GitHub Actions (Workflows). Happy automating with ruby. Cheers. Prost.