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.
RuboCop Defaults Survey Results
Here’s a summary of the results from the result survey on RuboCop’s defaults. Several defaults were already updated in version 0.84 and the 1.0 release can happen any day now.
Integrate Rubocop gem with Popular Ruby Text Editors
RuboCop is a very popular gem among ruby developers for the static code analysis of the ruby codebase. It does static code analysis as per the ruby style guide. [more inside]
Using Let's Encrypt in Development with NGINX and AWS Route 53
I wrote an article detailing how you can generate certificates using Let’s Encrypt and pointing DNS records to your local machine using AWS Route 53 so that your NGINX can serve https, including wildcard domains. [more inside]
New schema annotation DSL for ActiveRecord
the_schema_is is a gem that allows annotating database schema in AR models in schema.rb-compatible DSL, and checks/fixes annotations with custom Rubocop cop. It allows to keep annotations structured, commented, and readable.
Generating JSON Datasets in sport.db (incl. football.db) Scripts & Tools Guide Series
Hello, I’ve written up a little article on Generating JSON Datasets in the sport.db - that includes the football.db :-) - Scripts & Tools Guide Series. You can use the football.json datasets as (static) web services with no API key or signup required ;-), for example. The article kicks off with the English Premier League. Other available datasets incl. the German Bundesliga, the Spanish Primera División (“La Liga”) and others. Enjoy data wrangling and the beautiful game with ruby.
tapping_device 0.5.0 is out!
tapping_device makes your Ruby objects tell you what they do, with just one line of code. With its help, you can spend less time on digging into code, and have more time on fixing the bug.
Don’t set your website language based on user location
You can delight your visitors by translating the website to their preferred reading language rather than the one picked up by geolocating the IP. [more inside]
How to Create Events in Google Calendar from Ruby On Rails Application?
Wondering how to create events in Google Calendar from a Ruby on Rails application? Here’s a simple guide comprising of the steps to do the same. https://www.botreetechnologies.com/blog/how-to-create-events-in-google-calendar-from-ruby-on-rails-application
Scaling Rails: Docker & AWS Beanstalk
Scaling Rails project still can be quite an interesting task. [more inside]
Speeding up Rails with Memoization
Whoever first said that “the fastest code is no code” must have really liked memoization. After all, memoization speeds up your application by running less code. In this article, Jonathan Miles introduces us to memoization. We’ll learn when to use it, how to implement it in Ruby, and how to avoid common pitfalls. Buckle up! https://www.honeybadger.io/blog/ruby-rails-memoization/
Extracting text from image using Google Cloud vision OCR with Ruby
Here we are going to explain a small app which uses the power of OCR technology to read text from images. We are going to use Google Cloud Vision to achieve this. Read more. [more inside]
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!