Introducing openapi-sorbet
, a command-line tool for generating Sorbet types from OpenAPI (2 mins read).

How to generate Sorbet type-checked models from OpenAPI specifications.
Introducing openapi-sorbet
, a command-line tool for generating Sorbet types from OpenAPI (2 mins read).
How to generate Sorbet type-checked models from OpenAPI specifications.
Retrofitting OpenAPI documentation to your Rails codebase (12 mins read).
How to take a Rails codebase and introduce OpenAPI documentation and contract tests, in a test-driven manner.
Learn how to use custom RSpec matchers to write better, less repetitive tests.
Rack middlewares to create OpenAPI based HTTP APIs - GitHub - ahx/openapi_first: Rack middlewares to create OpenAPI based HTTP APIs
Setting up OpenAPI Contract Tests with a Rails and RSpec codebase (2 mins read).
How to run OpenAPI-driven contract tests against a Rails API.
A collection of Rack middleware to support JSON Schema. - GitHub - interagent/committee: A collection of Rack middleware to support JSON Schema.
Constructing a serialised YAML string in Ruby (1 mins read).
How to convert a YAML document to a string representation, preserving escaped newlines, with Ruby.
Ruby made its YAML interpreter more secure by default at the cost of backward compatibility. Developers weren’t given heads up warning about the changes.
Recommended read: Ruby 3.1’s incompatible changes to its YAML module (Psych 4) https://www.ctrl.blog/entry/ruby-psych4.html
Installing Nokogiri on an M1 Mac (1 mins read).
How to get Nokogiri building on an M1 Mac, when using Bundler
.
Safely refactoring Ruby traditionally involves many incremental steps and feature flags. Sorbet and 100% branch coverage make it possible to refactor a lot of code safely.
Providing a basic implementation of Ruby's ARGF.read
in Go (2 mins read).
Creating a Go helper method to read from stdin
or a file, inspired by Ruby's ARGF.read
method.
Recommended read: How we automatically fixed thousands of Ruby 2.7 deprecation warnings https://about.gitlab.com/blog/2021/02/03/how-we-automatically-fixed-hundreds-of-ruby-2-7-deprecation-warnings/
A little bit of ruby to communicate how I'm feeling today.
M. Scott Ford (@mscottford)Tue, 11 Jan 2022 21:34 GMT
Appending Values to a Querystring with Ruby (1 mins read).
How to append a query parameter to a URL's querystring in Ruby.
Recommended read: ActiveSupport #as_json vs #to_json https://justincypret.com/blog/activesupport-as-json-vs-to-json
Creating More Descriptive and Fluent Assertion Helpers (4 mins read).
How to improve test readability, and developer experience, using assertion helpers.
Listing Which GitHub Pull Requests are in a Project (2 mins read).
How to list the PRs inside a Project on Github, for example, via a Ruby client.
Encoding Strings for Embedding in JSON with Ruby on the Command-Line (1 mins read).
How to easily convert a string to a format that can be used as a value for JSON strings.
Programatically Comparing Versions Using Chef's Versioning Schemes (1 mins read).
How to use Chef's versioning classes to determine whether a version constraint is matched.
Parsing Encoded JSON Strings on the Command-Line with Ruby (1 mins read).
How to decode an encoded JSON string.
Decrypting Encrypted JSON Web Tokens (JWE) with Ruby (1 mins read).
How to use Ruby to decrypt encrypted JSON Web Token objects.
Ruby is great 😢
Jeremy Cole (@jeremycole)Tue, 11 May 2021 20:27 +0000
Constructing an Ordered Dependency Graph for Chef Cookbooks, using Berkshelf (3 mins read).
How to create a dependency graph for a given cookbook's dependencies to understand the order to install them in.
Managing Your Chef Gem Dependencies More Easily in your Gemfile
(2 mins read).
How to source your Chef Gem dependencies from your Chef cookbook's metadata.rb
instead of duplicating them between files.
Programatically Determining the Version of a Chef Cookbook (1 mins read).
How to determine a Chef cookbook's version programatically, using Ruby.
How to Use Cookstyle to Autocorrect Style Issues (1 mins read).
How to use the cookstyle
tool with Chef cookbooks to autocorrect style issues.
Using Proof of Key Code Exchange (PKCE) Using rack-oauth2 as an OAuth2 Client (1 mins read).
How to use the PKCE extension when using the Ruby library rack-oauth2 as an OAuth2 client.
Installing Gems From Your Gemfile
When Developing Chef Cookbooks using the ChefDK / Chef Workstation (2 mins read).
How to install Ruby Gems in local development using your Gemfile
.
Autogenerating Postman Collections for IndieAuth Servers (2 mins read).
Creating Postman collections programmatically for a user's IndieAuth server.
Autogenerating Postman Collections for Micropub Servers (3 mins read).
Creating Postman collections programmatically from a Micropub server's supported configuration.
Converting X.509 and PKCS#8 .pem
file to a JWKS (in Ruby) (2 mins read).
Converting X.509 and PKCS#8 files to JWKS format, using the ruby-jose
library.
Generating a JSON Web Key (JWK) With Ruby (1 mins read).
How to create a new JWK with Ruby.
I do wish Ruby was the browsers embedded language tho
Adam Jacob (@adamhjk)Mon, 30 Nov 2020 03:45 GMT
Did you know that Rake will show just the first sentence of task documentation in -T output, and all of it in -D output?
Avdi Grimm (@avdi)Wed, 07 Oct 2020 17:28 +0000
Recommended read: Ruby Refinements | Alchemists https://www.alchemists.io/articles/ruby_refinements/
You're currently viewing page 1 of 2, of 90 posts.