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.
Rails-API authentication solution based on JWT
Hello, I’ve written a new Rails gem for authentication based on JWT. [more inside]
Free Online (Global) Single-Track All-Day JekyllConf 2019 Today (Sun Sept/22)
Hello, join the Free Online (Global) Single-Track All-Day JekyllConf 2019 Today (Sun Sept/22 - 10am - 1.30pm (US Pacific Stanard Time) today. Thanks to Mike Neumegen et al (CloudCannon) for organizing. Cheers. Prost.
Working with / Importing (Football) CSV Packages into SQL DB with the sportdb gem(s)
Hello, I’ve written up / published a new from zero / scratch getting started guide for importing football.csv packages into an SQL database. The example uses all English football leagues, clubs and matches (from 1888-89 to today). The steps include: Step 0: Setup - Install the Sport.db Libraries ++ Step 1: Download (or Clone) the CSV Package / Datasets ++ Step 2: Add the Import / Build Script ++ Step 3: Kick off and Run. That’s it. Enjoy the beautiful game. Cheers. Prost.
wikiscript gem - scripts for wikipedia (get wikitext for page, parse tables, etc.)
Hello, I’ve updated the wikiscript library / gem that collects scripts for working with wikipedia articles (e.g. get / fetch the wikitext for a page, parse tables & links, etc. ). Note: I use wikiscript mostly for parsing section headings and tables (for football clubs from around the world), thus, that’s bascially all there is there for now. Happy data wrangling and text processing with ruby. Cheers. Prost.
Why you should learn Ruby regardless of they say
I wrote a piece on a subject I feel deeply about “Why you should learn Ruby regardless of they say” [more inside]
Scope Gates in Ruby: Flat Scopes
An overview of the execution context of blocks.. SEE MORE
7 Best Ruby Gems Most People Haven’t Heard About
Today I want to share with you seven little-known, but very useful, Ruby gems. https://www.rubyguides.com/2019/09/best-ruby-gems/
New release of Truemail 🚀 configurable plain Ruby 📨 email validator
Added ability to use independent configuration for each email validation instance. Be sure that email address valid and exists. https://github.com/rubygarage/truemail
Fullstaq Ruby epic 2 released: APT/YUM repo, Ruby 2.6.4
Fullstaq Ruby epic 2 has been released! It introduces an APT/YUM repo (finally), and Ruby 2.6.4. Learn what’s new, 3rd party review results, how to install, and what’s next on the roadmap. Fullstaq Ruby is a Ruby distribution that’s optimized for server use cases. Compared to normal MRI Ruby, Fullstaq Ruby uses 50% less memory, is faster, and is easier to install and security-patch because of RPM and DEB packages.
Introducing Minitest::StubOnRoids
Extending Minitest’s Object#stub method to allow asserting arguments and setting expectations on class methods: https://github.com/thatguysimon/minitest-stub_on_roids/
Making friends with Rubocop
Have you faced issues integrating Rubocop in an existing project ? We did. Here is the story of how we adopted Rubocop in an existing project. [more inside]
Restoring A Flaky Spec Suite
The community has been discussing flaky tests recently. I wanted to share the process and learnings from taking a large legacy Spec suite from a success rate of 55% up to over 95% and climbing. The post shares process, specific flaky test tips, and scripts to help you get there. Learn more in Restoration of a Ruby Test Suite.
Migrating from Paperclip to ActiveStorage: a different approach
In this article we discuss how to migrate hundreds of thousands of attachments from Paperclip to ActiveStorage without downtime: https://medium.com/sortlist-engineering/migrating-from-paperclip-to-activestorage-a-different-approach-4bffa2260e17