Post details
It’s more than rails!
It’s more than rails!
For fun I recently pimped out a ruby script that I had written for some testing with a little color and a spinner. If you have never used ANSI escape codes before I've put together a simple script that shows how easy it is. First let me say that if you are using ruby and
It's 2023, and it's time for a totally new way to run your tests. Here's how the new TLDR test runner can save you from a life of avoiding your slow tests
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.
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.
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.
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
You're currently viewing page 1 of 2, of 93 posts.