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.
RailsBump
Hello folks, I’m happy to present RailsBump, which I have been working on for a while! RailsBump is useful to anyone looking to upgrade the Rails version of their app. It shows you whether your favorite gem (or all gems in your Gemfile) is compatible with the next Rails release. Check it out and let me know what you think: https://railsbump.org/ If you have ideas for more features or run into problems, please open a Github issue: https://github.com/manuelmeurer/railsbump
Generating PDFs In Rails Application Using DocRaptor
I wrote about how to generate PDFs using DocRaptor.com in Rails 6 at https://bilalbudhani.com/generating-pdfs-in-rails-application-using-docraptor/
My Beef With RuboCop
My aim here is to disabuse readers of the notion that RuboCop can only make code better. It’s a tool, and whether it helps or hurts depends on how it’s used. Don’t be afraid to disable cops if you can’t see how they benefit the team. https://www.rubypigeon.com/posts/my-beef-with-rubocop/
Ruby Refinements Have a Second Good Use Case
After conversion wrappers a second good use case has been discovered in the development of a configurable logger for StimulusReflex: Refinement of String in our Gem to provide a nicer API to color your output without polluting the class for the whole application:
https://dev.to/rolandstuder/ruby-refinements-have-a-second-good-use-case-42jk
Exploring Merge Sort With Ruby
You’ll probably never implement sorting from scratch. But sorting algorithms are foundational in computer science and have become a standard feature of the ritual hazing…er…interview process for developers at all levels. In this article, Julie Kent introduces us to the merge sort algorithm. She’ll show us how it works, implement it in ruby, and discuss its performance characteristics. [more inside]
Overriding private methods of superclass in Ruby
What happens when a private method of superclass is overridden in Ruby? https://medium.com/rubycademy/overriding-private-superclass-methods-in-ruby-82ee4789c8f2
acts_as_tenant v0.5.0 released by excid3
Multi-tenancy is Rails is very common but we didn’t have an actively maintained gem. Chris Oliver just become the maintainer of Acts_As_Tenant and published a release https://github.com/ErwinM/acts_as_tenant/releases/tag/v0.5.0
Rails Model Patterns and Anti-patterns
If you’re struggling with models, this blog post is for you. We will quickly go through the process of putting your models on a diet and finish strongly with some things to avoid when writing migrations. [more inside]
"Patches Welcome!"
I gave a talk at LRUG last week, called “Patches Welcome!”, about why I do open source software development. I’ve posted a video and a transcript of the talk on the ShinyCMS blog.
benchmarking JSON Parsers (OJ vs SimdJSON)
Either library is around 2x faster than StdLib, and OJ is mostly a drop-in replacement, depending on your needs SimdJSON can over another 20-30% improvement. See the JSON parsing benchmark results and details.
How To Create Custom Shopify App With Rails?
Creating an application for shopify using Ruby on Rails is very easy. Learn More about How To Create Custom Shopify App With Rails. Contact Us Now! https://www.botreetechnologies.com/blog/how-to-create-custom-shopify-app-with-rails
mruby3.0 introductory Webinar
Hello, Have you heard about Matz’s new language, mruby? mruby was released to the public in 2012 and will be updated to version 3.0 this winter. mruby can be used for a variety of applications from enterprise embedded development, game development, and web server add-on function development to fun personal projects using microcontrollers. In this webinar, Matz himself will talk about the new mruby and answer your questions, so we encourage you to join us. We look forward to having you in the webinar! https://www.eventbrite.com/e/lightweight-implementation-of-ruby-mruby-30-introductory-webinar-tickets-117604948567
Hacktoberfest Recap: Open source Ruby/Rails work in 2020
There are a bunch of ways to contribute to open source in the Rails ecosystem that don’t involve the main rails/rails repo. Here’s how I got my Hacktoberfest shirt this year by contributing to Ruby and Rails projects: https://boringrails.com/articles/hacktoberfest-2020-recap/
Data pipelines in Ruby on Rails
If you need to bring a lot of data into your app, a data pipeline can help. This article describes how to build a simple data pipeline with Ruby on Rails, Sidekiq, Redis, and Postgres. [more inside]
New components in Stimulus-components with first class support for Rails
Since the last time I’ve talked about stimulus-components, I added lot of new controllers! [more inside]
football-cat gem - concatenate football.csv datafiles - make out of many, one
Hello, I have put together the new little football-cat gem / tool that lets you concatenate match files (for football clubs or national teams) in the one-line, one-match & one-file, one-season Football.CSV format into one PLUS (auto-)adding the missing league and season headers / columns inferred from the file’s basename (e.g. es.1.csv => ES1) and the file’s directory (e.g. /2020-21/ => 2020/21), for example. Happy data wrangling with ruby. Enjoy the beautiful game. Cheers. Prost.
ArrayIncludeMethods v1.0.4 and Glimmer v1.0.3
ArrayIncludeMethods v1.0.4 (missing methods from Ruby Array API) and Glimmer v1.0.3 (DSL Framework used in Glimmer DSL for SWT JRuby Desktop Development GUI Library) have been released! https://andymaleh.blogspot.com/2020/11/arrayincludemethods-v104-and-glimmer.html
ActiveRecord SetOps
https://github.com/delonnewman/activerecord-setops - Union, Intersect, and Difference set operations for ActiveRecord (also, SQL’s UnionAll).
ShinyCMS 20.11 - the 'tricky second album' release ;)
Not quite the first of the month, but I tagged and released v20.11 of ShinyCMS a few days ago. There was a surprising amount of stuff in the release notes - apparently I’ve been busy - but the highlights are mentioned on the main release page (the first link here). In particular, all the models now have ‘soft delete’ via acts_as_paranoid, atom feeds are generated for the blog and news sections, and I added a set of partials and helpers for adding consistent pagination and search to pretty much every ‘list of data’ (index) page in the admin area. In the process of getting the pagination working, I Iearned that Kaminari has a very long-standing issue with routing into Rails Engines [1] [2] [3], which is a bit of a problem for a CMS built almost entirely out of them. Fortunately the community has provided a fix <3
Building a modern CRM in Ruby on Rails — Part 1
This is the first of a series of tutorial on building a Customer Relationship Management application using Ruby on Rails. Hope you enjoy reading it! https://medium.com/modern-rails/building-a-modern-crm-in-ruby-on-rails-part-1-3b62f7b4dc7d
footballdata-12xpert gem - download & convert datasets from 22+ top football leagues
Hello, I have updated the footballdata-12xpert gem that lets you download, convert & import datasets (in .csv) from 22+ top football leagues from 25 seasons back to 1993/94 from Joseph Buchdahl (12Xpert)’s Football Data website (football-data.co.uk) up and running since 2001 (and updated twice a week). Happy data wrangling and enjoy the beautiful game with ruby. Cheers. Prost. PS: Do you know any good football data sources? Please, tell.