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.
Start with StandardError
A short summary of the reasons you should choose StandardError over RuntimeError or Exception when defining a new exception for your app. [more inside]
[Screencast] reCAPTCHA v2
Reduce the number of bots and spam your Ruby on Rails application gets with Google reCAPTCHA v2. https://www.driftingruby.com/episodes/recaptcha-v2
Interact with Mysql Server using mysql2 gem [Part 3] – Prepared Statements
This is the third part of the series where we create a service to interact with MySQL server in rails using mysql2 gem. Link: https://thedevpost.com/blog/mysql2-gem-prepared-statements/
Rails 6.1 adds support for validating numeric values that fall in a range
The numericality validation helper now accepts in: as an option for which the value must be a range. [more inside]
Open Source Ruby and Rails Applications 🔥
I list all awesome Ruby and Rails open source apps, which some of us didn’t know exist. Check this out => https://dev.to/asyraf/open-source-real-world-ruby-and-rails-applications-4jfo
Ractors in Ruby 3
Read about new addition to Ruby https://bishwahang.com/2021/02/05/parallelism-in-ruby-3-0-with-ractors.html
Ruby Is Traveling Just Fine with Glimmer & JRuby
Recently, the author of Traveling Ruby blogged some depressing news about the future of the project, indicating basically that it is going kaput. Little did he know, Ruby is traveling just fine with Glimmer and JRuby, thanks to Glimmer DSL for SWT, which lets you to package your Glimmer desktop apps as native Mac APP/DMG/PKG, Windows EXE/MSI, and Linux shell runners in Ruby gems. [more inside]
Natural20: A DnD role playing game made using ruby
Below is an opensource game/RPG engine made using ruby [more inside]
Truemail 2.3.0 has been released 🚀 configurable plain Ruby 📨 email validator
Added ability to use custom DNS gateway. Be sure that email address valid and exists. https://github.com/truemail-rb/truemail
Kafka for Rubyists Mini Course: Advanced Karafka
This is the fourth and also the last part of the Kafka For Rubyists course, this time covering more advanced aspects of Karafka. [more inside]
New version of DnsMock has been released 🚀
Added RSpec integration out of the box and ability to specify MX record priority. Mimic any DNS records for your test environment and even more: https://github.com/mocktools/ruby-dns-mock
dato.rss - rss search engine clean, simple and fast
Hi I just revamped my latest rails open source project: dato.rss. Take a look! [more inside]
RJGit 5.10.0.0 for JRuby released
RJGit 5.10.0.0 was just released. It updates both the JGit jar (to jgit-5.10.0.202012080955-r.jar) and Bouncy Castle (to version 168).
The difference between instance_eval and class_eval
This article explores the difference between Ruby’s instance_eval and class_eval methods, and takes a peek into the depths of the Ruby execution context. https://daniel-azuma.com/blog/2021/02/02/should-i-use-instance-eval-or-class-eval
New Gem active_sort_order Released!
Active Sort Order is the “easy-peasy” dynamic sorting pattern for ActiveRecord that your Rails apps deserve. https://github.com/westonganger/active_sort_order
Machine Maintenance With A Bit of Automation
Learn how to keep your Ruby development environment in top condition with a little bit of Bash scripting. 😉
Understanding The bcrypt Hashing Function And Its Role in Rails.
Understand what bcrypt is, how it works and its role in Ruby on Rails for authentication. https://emmanuelhayford.com/understanding-the-bcrypt-hashing-function-and-its-role-in-rails/
Processing a Compressed JSON Feed
A step-by-step walk-through of using ruby to collect events from a firehose of compressed newline oriented JSON. https://dojo4.com/blog/processing-a-compressed-json-feed
Data Science w/ World Factbook - 267 Public Domain (Free) Country Profiles / Datasets
Hello, I’ve updated the factbook.json country profiles using the latest data from the Central Intelligence Agency (CIA) World Factbook. Looking for gold or oil reserves? Find the answer in the “natural resources” or the “proven known crude oil reserves” section, for example. To download all datasets or to rebuild the simplified json for the lastest 2021 CIA.gov website reshuffle / redesign, try the 2021/download.rb and 2021/genjson.rb scripts.Happy exploring the world while staying home. Cheers. Prost. PS: Trivia Quiz: What country has the most proven oil reserves according to the CIA World Factbook?
Why Is Ruby Still A Good Choice in 2021? An Introduction To Ruby 3.0
At the beginning of each year, the technology articles seem to focus on one topic only - trying to answer the question ‘Is insert the technology here still relevant? Ruby on Rails is no different. You might be surprised that even though it is over 15 years old it is not slowing down and still has a great group of supporters and newcomers. [more inside]