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.
Setup ActiveRecord model tests in RSpec which don't depend on Rails
Sometimes when we build a gem that depends on ActiveRecord, we want to set up RSpec to load ActiveRecord and some database migration to be ready for our integration tests. [more inside]
CursorPaginator: A cursor pagination library to integrate into your API
More and more web APIs are moving away from offset pagination and implement cursor pagination instead. We release a gem to support integrating into your APIs. https://github.com/bongloy/cursor_paginator
A better ruby format tool
We forked prettier ruby plugin to provide a better ruby format tool, plus rubocop-config-prettier and rubocop, it’s a total solution to format and lint ruby code. See more here.
What’s New in Bridgetown 0.14 “Hazelwood”
Looking at building static sites with modern Jamstack tools? Love Ruby? So do we! Introducing the biggest public release of Bridgetown since its inception, featuring the brand-new Unified Plugins API, Active Support, and a whole lot more.
tty-option: a feature-rich command-line parser
The tty-option is a command-line parser that handles arguments, keywords, flags, options and environment variables, focuses on an intuitive way to define parameters and takes care of displaying nicely formatted and accessible help and error information. Enjoy!
sport.db Tools & Scripts Guide / Getting Started Booklet
Hello, the sport.db command line tools and scripts now have a little getting started booklet / website. The content so far includes: [more inside]
Spread Sheet Basic Operations with Google API and Ruby
So now you know how to achieve authorization for using several Google APIs. Today we will see how to use Google Drive API for basic operations on Google spreadsheet. [more inside]
Game of Life in one Ruby statement... inspired by APL
Conway’s game of life implemented in one Ruby statement, using Enumerable-alike methods and idioms for working with mathematical arrays.
Never query the same thing more than once
Hint: you probably are, like I was. https://johnnunemaker.com/never-query-the-same-thing-more-than-once/
Announcing Rubidium - Reusable Ruby on Rails Application Templates
Starting in Ruby on Rails 5.0, we got the app:template
feature. Rubidium is an online service which allows you to search, consume, clone, share and reuse Ruby on Rails application templates to add functionality to your existing projects. https://www.rubidium.io/
Introducing RailsBytes - Shareable Rails app templates
Rails app templates have been around for a long time, but they haven’t been well organized and easily shareable. We’ve put together a site to create, fork, and organize Rails app templates at RailsBytes.com
sportdb-importers Gem v1.0 - sport.db (incl. football) csv match datset readers
Hello, I’ve put together the sportdb-importers gem / library v1.0 that lets you read in (import) match datafiles in comma-separated values (csv) format into any SQL database (using the sport.db schema / tables) using SportDb.read_csv
. Try it with the English Premier League e.g. (2019-20/eng.1.csv
) or the Deutsche Bundesliga e.g. (2019-20/de.1.csv
), for example. Enjoy the beautiful game with ruby. Cheers. Prost.
Why Fullstaq Ruby?
Fullstaq Ruby is a Ruby distribution that’s optimized for server use cases: 50% less memory, faster, easier to install and security-patch because of RPM and DEB packages. [more inside]
The Ruby Blend: The State of the Rails Community with Julian Rubisch
Welcome to The Ruby Blend! Today, we have special guest, Julian Rubisch, a Freelance Ruby Developer form Vienna, Austria. He’s also an electrical composer of music. Julian tells us about his background and what he does. He also talks about the relationship between music and programming. Some other topics the guys talk about are Ruby on Rails, Jumpstart Pro, changing things in the Rails community to make it more approachable to newcomers, Julian’s website he created called Better StimulusJS, and Znibbl.es. Download this episode now to find out more!!!
Avoid coupling between Bounded Contexts using Weak Schema
See how to avoid accidental coupling on many levels while developing modular monolith application using event driven approach. [more inside]
Compare Text Differences Between Two Contents (%) Using Ruby on Rails
Compare two contents (HTML, JavaScript code or any other text) and find text difference in percentage(%) between them. [more inside]
Churn vs. Complexity vs. Code Coverage
This article explains how you can calculate Churn vs. Complexity in your legacy Ruby project and how Code Coverage metrics can guide your technical debt’s collection efforts. https://www.fastruby.io/blog/code-quality/churn-vs-complexity-vs-coverage.html
Google API Authorization with Ruby using long lasting Refresh Token
Authorization is the most important thing when it comes to API integration. There are multiple ways for authorization. Here we use Ruby for Refresh Token for Authorization. [more inside]
Chaskiq 0.2.0 released 🔥 with VideoCall support 📹
Hey! Chaskiq - The open source platform for support & marketing - has released a big update. [more inside]
This is how I write a gemspec
A little line by line guide on writing a tidy gemspec for your gems. It’s the first article I’ve published so… I guess I’ll get better with time. I’d love to hear any comments. https://dev.to/vaporyhumo/how-i-write-a-gemspec-p42
Why does Rails 6 include both Webpacker and Sprockets?
A new Rails 6 application will install both Webpacker and Sprockets by default. Don’t they solve the same problem? This article dives into why Sprockets lives on even though webpack has surpassed most of its features and why you might want to choose one over the other. https://rossta.net/blog/why-does-rails-install-both-webpacker-and-sprockets.html
Neural Networks in Ruby: A Not-So-Scary Introduction
Building a neural network isn’t exactly like building a human brain, but it’s the closest any of us are going to get. In this article Julie Kent introduces us to neural nets as a concept and shows us how to implement a simple one in Ruby. https://www.honeybadger.io/blog/ruby-neural-networks/