URI.escape is obsolete. Percent-encoding your query string
Ruby 2.7.0 shows a warning when invoking URI.escape or its alias, URI.encode. It might look like a fresh deprecation, but the fact is, these methods ha.
Ruby Testing Micro-Course, Lesson 1 - Code With Jason
This micro-course is just Ruby and RSpec. No Rails, no database, no HTML.We’re going to build a Ruby application designed for the purpose of managing a.
My general approach to Rails testing
The code I write is influenced by certain factors upstream of the code itself.Before I start coding a feature, I like to do everything I can to try to .
RSpec/Capybara integration tests: the ultimate guide
When I started learning about Rails testing and RSpec I discovered that there are many different kinds of tests. I encountered terms like “model spec”,.
A Rails testing "hello world" using RSpec and Capybara
One of the biggest challenges in getting started with testing is just that—the simple act of getting started. What I’d like is for you, dear reader, to.
Where to start with introducing TDD to a new Rails app
A Code With Jason reader recently wrote me with the following question:How do I introduce TDD into a new Rails app? Where do I start? I am deeply knowl.
DropletKit is the official DigitalOcean API client for Ruby.
DropletKit is the official DigitalOcean V2 API client. It supports everything the API can do with a simple interface written in Ruby....
A pure Ruby code highlighter that is compatible with Pygments
Rouge is a pure Ruby syntax highlighter. It can highlight over 100 different languages, and output HTML or ANSI 256-color text. Its HTML output is comp.
Easily and efficiently make your ActiveRecord models support hierarchies
Closure_tree lets your ActiveRecord models act as nodes in a tree data structureCommon applications include modeling hierarchical data, like tags, thre.
The Ruby Formatter
Rufo is as an opinionated ruby formatter, intended to be used via the command line as a text-editor plugin, to autoformat files on save or on demand.Un.