| name | explain-diff-html |
|---|---|
| description | Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output. |
Please make me a rich, interactive explanation of the specified code change.
It should have these sections:
Companion artefact to the post "Auditing a Rails Side Project with the thoughtbot Audit Skill."
This file is written for a coding agent (Claude Code, etc.) to act on. The intended workflow:
/rails-audit-thoughtbot on your Rails project so you have a RAILS_AUDIT_REPORT.md under scratch/rails-audit/.scratch/rails-audit/AGENT_PLAYBOOK.md.| --- ext/bigdecimal/bigdecimal.c.orig 2024-09-25 16:24:50 | |
| +++ ext/bigdecimal/bigdecimal.c 2024-09-25 16:25:15 | |
| @@ -65,7 +65,7 @@ | |
| static ID id_half; | |
| /* MACRO's to guard objects from GC by keeping them in stack */ | |
| -#define ENTER(n) volatile VALUE RB_UNUSED_VAR(vStack[n]);int iStack=0 | |
| +#define ENTER(n) volatile VALUE vStack[n];int iStack=0 | |
| #define PUSH(x) (vStack[iStack++] = (VALUE)(x)) | |
| #define SAVE(p) PUSH((p)->obj) |
| class BaseClient | |
| class APINotFound < StandardError; end | |
| attr_reader :auth_strategy | |
| def initialize(auth_strategy: :headers, headers: {}) | |
| @auth_strategy = auth_strategy | |
| @headers = headers | |
| end |
Table of Contents generated with DocToc
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Should I Delay Old Age Security</title> | |
| <!-- TailwindCSS CDN link --> | |
| <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet"> |
| def search | |
| @pagy, @bookmarks = if params[:search].present? | |
| pagy(@bookmarks.search(params[:search]), params: ->(params) { params.merge!({search: params[:search]}) }) | |
| else | |
| pagy(@bookmarks) | |
| end | |
| end |
| # .github/workflows/ci.yml | |
| services: | |
| db: | |
| image: postgres:13 | |
| env: | |
| POSTGRES_PASSWORD: its_a_secret | |
| POSTGRES_USER: postgres | |
| ports: | |
| - 5432:5432 | |
| # volume for bind mount removed! |
| runner@fv-az121-980:~/work/myapp/myapp$ docker exec -it aeaf1d3eae4b46948276077399135246_postgres13_3406a2 bash | |
| root@f96addde3fe1:/# ls -a /docker-entrypoint-initdb.d | |
| [no output - empty dir] |
| runner@fv-az121-980:~/work/myapp/myapp$ docker logs aeaf1d3eae4b46948276077399135246_postgres13_3406a2 | |
| /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/* | |
| [snip] | |
| PostgreSQL init process complete; ready for start up. | |
| 2021-02-15 16:45:09.125 UTC [1] LOG: starting PostgreSQL 13.2 (Debian 13.2-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit | |
| 2021-02-15 16:45:09.126 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 | |
| 2021-02-15 16:45:09.126 UTC [1] LOG: listening on IPv6 address "::", port 5432 | |
| 2021-02-15 16:45:09.129 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" | |
| 2021-02-15 16:45:09.135 UTC [1] LOG: database system is ready to accept connections |