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.
Argon Trail: A Pre-RailsConf 2020 Hike with Planet Argon
If you’ll be in Portland, Oregon for RailsConf this year, there is a hike happening the day before the conference, sponsored by Planet Argon. [more inside]
Rails Development Environment with Docker Compose in Ubuntu 18.04
A long time ago, I did local web development by installing a framework and all its dependencies directly on my laptop. Now, I keep environments isolated from my local machine using containers. Recently, I dove back into Ruby on Rails and wanted to share my process for getting it up and running with Docker Compose! [more inside]
Is Ruby on Rails Secure to Run on in 2020?
Read why Ruby on Rails is one of the most secure frameworks in 2020: https://rubyroidlabs.com/blog/2020/02/is-ruby-on-rails-secure-to-run-on-in-2020/
Introducing Hanami::API
It’s a minimal, extremely fast, lightweight Ruby framework for HTTP APIs. http://hanamirb.org/blog/2020/02/26/introducing-hanami-api.html
Telegram Bot wrapper for the RubyGems.org API
Bot wrapper for the RubyGems.org API [more inside]
Open-sourcing Ferrum: a fearless Ruby Chrome driver
If you want to run integration tests on your website, you have three options: Poltergeist, Selenium and now, a new secret weapon — Ferrum. [more inside]
Ruby Environment Management - comparing RVM and Rbenv - which one is better?
An automated Ruby environment management is necessary for developers to easily work on multiple Ruby programs on the same machine. [more inside]
iniparser v1.0 - read / parse INI configuration, settings and data files into a hash
Hello, I’ve updated the iniparser gem / library to support “modern” named subsections and now you can even use space as your name / value separator in keys / properties and much more. Read more about ruby’s ini configuration reader. Cheers. Prost PS: The readme includes Frequently Asked Questions (FAQ) and Answers such as Q: Why not use TOML (Tom’s Obvious, Minimal Language)? or Q: Why not use IniFile - the most popular library (10+ million downloads and counting)?
Hash#shift using default values
How the way you define your hash default value can generate side effects in your program? SEE MORE
Testing static sites with Ruby, RSpec, Capybara, and Webkit
Read about testing static sites with Ruby and RSpec (e.g. those generated with Jekyll).
Which is faster, using Mixin Modules or Reopening Classes?
Today I answer the age old Ruby question: Which is faster, using Mixin Modules or Reopening Classes? https://dev.to/schwad/ruby-science-saturday-use-mixin-modules-or-reopen-classes-2i9m
The redo Keyword in Ruby
In this article we’ll focus on the redo
keyword. SEE MORE
Lint your Gemfile with gemfilelint
https://github.com/kddeisz/gemfilelint is a utility that you can run against your Gemfile that will check all of your listed sources against known trusted sources and all of your listed gems against the most commonly downloaded gems according to rubygems. This can give you some peace of mind that if you make a spelling mistake you won’t accidentally open yourself up to RCE without knowing it.
Ruby Quiz - Challenge #18 - Up-to-Date? Version Check All Your Libraries
Hello, It’s Friday. Ruby Quiz time! Join us for the third challenge in the new year in 2020! Here we go: Challenge #18 - Up-to-Date? Version Check All Your Libraries Let’s say you have a script that depends on many libraries / gem. How can you make sure the minimum version requirements are fulfilled? … Post your code snippets on the “official” Ruby Quiz Channel, that is, the ruby-talk mailing list. Happy list processing and version checking with Ruby.
Best "Developer Tools" Trick
So, this isn’t Ruby related, but since most of us are work on web applications and use Javascript daily, this will apply to you. I recently stumbled upon this trick the other day and it has changed my approach when debugging/writing Javascript. https://blog.driftingruby.com/best-developer-tool-trick/
Open source Intercom alternative, made on rails 6
I’ve made Chaskiq , an Intercom like platform made in Rails 6, with React and Graphql for it’s API. It’s fully functional with many niceties like Automated Bot tasks, Segments, NewsLetters, Guided Tours and Third party API integrations like Twitter, Slack, Calendly, Pipedrive & Analytics. And many more to come in the next weeks!
Clean your Rails routes: nesting
How resources can help you to avoid custom routes? SEE MORE
Rails 6 Upgrade Tips
Check out my post for some good tips for upgrading to Rails 6 that were not addressed in the Rails upgrade guide. Includes details about supporting multiple databases and more.
Why Dry: An Introduction to dry-rb and Why You Should Use It
Learn all about dry-rb gems and how they can help provide a robust, testable, and scalable way of handling business logic in your Rails applications. Read the post.