reqcord 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +8 -0
- data/CHANGELOG.md +77 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +171 -0
- data/LICENSE.txt +21 -0
- data/README.md +239 -95
- data/Rakefile +13 -0
- data/docs/configuration.md +319 -0
- data/examples/complex-spec-app/.rspec +1 -0
- data/examples/complex-spec-app/README.md +21 -0
- data/examples/complex-spec-app/app.rb +363 -0
- data/examples/complex-spec-app/docs/api/README.md +104 -0
- data/examples/complex-spec-app/docs/api/api/v1/admin/products/create.md +117 -0
- data/examples/complex-spec-app/docs/api/api/v1/admin/products/destroy.md +51 -0
- data/examples/complex-spec-app/docs/api/api/v1/admin/products/index.md +11 -0
- data/examples/complex-spec-app/docs/api/api/v1/admin/products/list.md +106 -0
- data/examples/complex-spec-app/docs/api/api/v1/auth/index.md +9 -0
- data/examples/complex-spec-app/docs/api/api/v1/auth/login.md +76 -0
- data/examples/complex-spec-app/docs/api/api/v1/cart-items/create.md +91 -0
- data/examples/complex-spec-app/docs/api/api/v1/cart-items/destroy.md +51 -0
- data/examples/complex-spec-app/docs/api/api/v1/cart-items/index.md +10 -0
- data/examples/complex-spec-app/docs/api/api/v1/carts/checkout.md +102 -0
- data/examples/complex-spec-app/docs/api/api/v1/carts/index.md +10 -0
- data/examples/complex-spec-app/docs/api/api/v1/carts/show.md +73 -0
- data/examples/complex-spec-app/docs/api/api/v1/home/index.md +9 -0
- data/examples/complex-spec-app/docs/api/api/v1/home/list.md +47 -0
- data/examples/complex-spec-app/docs/api/api/v1/notes/create.md +94 -0
- data/examples/complex-spec-app/docs/api/api/v1/notes/index.md +10 -0
- data/examples/complex-spec-app/docs/api/api/v1/notes/list.md +61 -0
- data/examples/complex-spec-app/docs/api/api/v1/orders/cancel.md +69 -0
- data/examples/complex-spec-app/docs/api/api/v1/orders/create.md +150 -0
- data/examples/complex-spec-app/docs/api/api/v1/orders/destroy.md +37 -0
- data/examples/complex-spec-app/docs/api/api/v1/orders/index.md +13 -0
- data/examples/complex-spec-app/docs/api/api/v1/orders/list.md +78 -0
- data/examples/complex-spec-app/docs/api/api/v1/orders/show.md +83 -0
- data/examples/complex-spec-app/docs/api/api/v1/products/index.md +11 -0
- data/examples/complex-spec-app/docs/api/api/v1/products/list.md +83 -0
- data/examples/complex-spec-app/docs/api/api/v1/products/search.md +88 -0
- data/examples/complex-spec-app/docs/api/api/v1/products/show.md +71 -0
- data/examples/complex-spec-app/docs/api/api/v1/profiles/index.md +10 -0
- data/examples/complex-spec-app/docs/api/api/v1/profiles/show.md +61 -0
- data/examples/complex-spec-app/docs/api/api/v1/profiles/update.md +91 -0
- data/examples/complex-spec-app/docs/api/api/v2/products/index.md +9 -0
- data/examples/complex-spec-app/docs/api/api/v2/products/list.md +77 -0
- data/examples/complex-spec-app/docs/api/curl/api/v1/admin/products/create.sh +18 -0
- data/examples/complex-spec-app/docs/api/curl/api/v1/admin/products/destroy.sh +9 -0
- data/examples/complex-spec-app/docs/api/curl/api/v1/admin/products/list.sh +9 -0
- data/examples/complex-spec-app/docs/api/curl/api/v1/auth/login.sh +9 -0
- data/examples/complex-spec-app/docs/api/curl/api/v1/cart-items/create.sh +16 -0
- data/examples/complex-spec-app/docs/api/curl/api/v1/cart-items/destroy.sh +9 -0
- data/examples/complex-spec-app/docs/api/curl/api/v1/carts/checkout.sh +13 -0
- data/examples/complex-spec-app/docs/api/curl/api/v1/carts/show.sh +9 -0
- data/examples/complex-spec-app/docs/api/curl/api/v1/home/list.sh +8 -0
- data/examples/complex-spec-app/docs/api/curl/api/v1/notes/create.sh +15 -0
- data/examples/complex-spec-app/docs/api/curl/api/v1/notes/list.sh +9 -0
- data/examples/complex-spec-app/docs/api/curl/api/v1/orders/cancel.sh +9 -0
- data/examples/complex-spec-app/docs/api/curl/api/v1/orders/create.sh +29 -0
- data/examples/complex-spec-app/docs/api/curl/api/v1/orders/destroy.sh +9 -0
- data/examples/complex-spec-app/docs/api/curl/api/v1/orders/list.sh +9 -0
- data/examples/complex-spec-app/docs/api/curl/api/v1/orders/show.sh +9 -0
- data/examples/complex-spec-app/docs/api/curl/api/v1/products/list.sh +8 -0
- data/examples/complex-spec-app/docs/api/curl/api/v1/products/search.sh +8 -0
- data/examples/complex-spec-app/docs/api/curl/api/v1/products/show.sh +8 -0
- data/examples/complex-spec-app/docs/api/curl/api/v1/profiles/show.sh +9 -0
- data/examples/complex-spec-app/docs/api/curl/api/v1/profiles/update.sh +16 -0
- data/examples/complex-spec-app/docs/api/curl/api/v2/products/list.sh +8 -0
- data/examples/complex-spec-app/docs/api/dataset.json +5116 -0
- data/examples/complex-spec-app/docs/api/postman/collection.json +2519 -0
- data/examples/complex-spec-app/generate.rb +14 -0
- data/examples/complex-spec-app/reqcord.yml +28 -0
- data/examples/complex-spec-app/spec/requests/admin_spec.rb +67 -0
- data/examples/complex-spec-app/spec/requests/cart_spec.rb +61 -0
- data/examples/complex-spec-app/spec/requests/home_and_auth_spec.rb +49 -0
- data/examples/complex-spec-app/spec/requests/orders_spec.rb +124 -0
- data/examples/complex-spec-app/spec/requests/products_spec.rb +65 -0
- data/examples/complex-spec-app/spec/spec_helper.rb +17 -0
- data/examples/complex-test-app/README.md +40 -0
- data/examples/complex-test-app/app.rb +384 -0
- data/examples/complex-test-app/docs/api/README.md +104 -0
- data/examples/complex-test-app/docs/api/api/v1/admin/products/create.md +117 -0
- data/examples/complex-test-app/docs/api/api/v1/admin/products/destroy.md +51 -0
- data/examples/complex-test-app/docs/api/api/v1/admin/products/index.md +11 -0
- data/examples/complex-test-app/docs/api/api/v1/admin/products/list.md +106 -0
- data/examples/complex-test-app/docs/api/api/v1/auth/index.md +9 -0
- data/examples/complex-test-app/docs/api/api/v1/auth/login.md +76 -0
- data/examples/complex-test-app/docs/api/api/v1/cart-items/create.md +91 -0
- data/examples/complex-test-app/docs/api/api/v1/cart-items/destroy.md +51 -0
- data/examples/complex-test-app/docs/api/api/v1/cart-items/index.md +10 -0
- data/examples/complex-test-app/docs/api/api/v1/carts/checkout.md +102 -0
- data/examples/complex-test-app/docs/api/api/v1/carts/index.md +10 -0
- data/examples/complex-test-app/docs/api/api/v1/carts/show.md +73 -0
- data/examples/complex-test-app/docs/api/api/v1/home/index.md +9 -0
- data/examples/complex-test-app/docs/api/api/v1/home/list.md +47 -0
- data/examples/complex-test-app/docs/api/api/v1/notes/create.md +94 -0
- data/examples/complex-test-app/docs/api/api/v1/notes/index.md +10 -0
- data/examples/complex-test-app/docs/api/api/v1/notes/list.md +61 -0
- data/examples/complex-test-app/docs/api/api/v1/orders/cancel.md +69 -0
- data/examples/complex-test-app/docs/api/api/v1/orders/create.md +150 -0
- data/examples/complex-test-app/docs/api/api/v1/orders/destroy.md +37 -0
- data/examples/complex-test-app/docs/api/api/v1/orders/index.md +13 -0
- data/examples/complex-test-app/docs/api/api/v1/orders/list.md +71 -0
- data/examples/complex-test-app/docs/api/api/v1/orders/show.md +83 -0
- data/examples/complex-test-app/docs/api/api/v1/products/index.md +11 -0
- data/examples/complex-test-app/docs/api/api/v1/products/list.md +83 -0
- data/examples/complex-test-app/docs/api/api/v1/products/search.md +88 -0
- data/examples/complex-test-app/docs/api/api/v1/products/show.md +71 -0
- data/examples/complex-test-app/docs/api/api/v1/profiles/index.md +10 -0
- data/examples/complex-test-app/docs/api/api/v1/profiles/show.md +61 -0
- data/examples/complex-test-app/docs/api/api/v1/profiles/update.md +91 -0
- data/examples/complex-test-app/docs/api/api/v2/products/index.md +9 -0
- data/examples/complex-test-app/docs/api/api/v2/products/list.md +77 -0
- data/examples/complex-test-app/docs/api/curl/api/v1/admin/products/create.sh +18 -0
- data/examples/complex-test-app/docs/api/curl/api/v1/admin/products/destroy.sh +9 -0
- data/examples/complex-test-app/docs/api/curl/api/v1/admin/products/list.sh +9 -0
- data/examples/complex-test-app/docs/api/curl/api/v1/auth/login.sh +9 -0
- data/examples/complex-test-app/docs/api/curl/api/v1/cart-items/create.sh +16 -0
- data/examples/complex-test-app/docs/api/curl/api/v1/cart-items/destroy.sh +9 -0
- data/examples/complex-test-app/docs/api/curl/api/v1/carts/checkout.sh +13 -0
- data/examples/complex-test-app/docs/api/curl/api/v1/carts/show.sh +9 -0
- data/examples/complex-test-app/docs/api/curl/api/v1/home/list.sh +8 -0
- data/examples/complex-test-app/docs/api/curl/api/v1/notes/create.sh +15 -0
- data/examples/complex-test-app/docs/api/curl/api/v1/notes/list.sh +9 -0
- data/examples/complex-test-app/docs/api/curl/api/v1/orders/cancel.sh +9 -0
- data/examples/complex-test-app/docs/api/curl/api/v1/orders/create.sh +29 -0
- data/examples/complex-test-app/docs/api/curl/api/v1/orders/destroy.sh +9 -0
- data/examples/complex-test-app/docs/api/curl/api/v1/orders/list.sh +9 -0
- data/examples/complex-test-app/docs/api/curl/api/v1/orders/show.sh +9 -0
- data/examples/complex-test-app/docs/api/curl/api/v1/products/list.sh +8 -0
- data/examples/complex-test-app/docs/api/curl/api/v1/products/search.sh +8 -0
- data/examples/complex-test-app/docs/api/curl/api/v1/products/show.sh +8 -0
- data/examples/complex-test-app/docs/api/curl/api/v1/profiles/show.sh +9 -0
- data/examples/complex-test-app/docs/api/curl/api/v1/profiles/update.sh +16 -0
- data/examples/complex-test-app/docs/api/curl/api/v2/products/list.sh +8 -0
- data/examples/complex-test-app/docs/api/dataset.json +5109 -0
- data/examples/complex-test-app/docs/api/postman/collection.json +2568 -0
- data/examples/complex-test-app/generate.rb +14 -0
- data/examples/complex-test-app/reqcord.yml +28 -0
- data/examples/complex-test-app/test/integration/admin_test.rb +70 -0
- data/examples/complex-test-app/test/integration/cart_test.rb +64 -0
- data/examples/complex-test-app/test/integration/home_and_auth_test.rb +53 -0
- data/examples/complex-test-app/test/integration/orders_test.rb +127 -0
- data/examples/complex-test-app/test/integration/products_test.rb +66 -0
- data/examples/reqcord.yml +58 -0
- data/examples/spec-app/.rspec +1 -0
- data/examples/spec-app/README.md +36 -0
- data/examples/spec-app/app.rb +209 -0
- data/examples/spec-app/docs/api/README.md +45 -0
- data/examples/spec-app/docs/api/api/v1/customers/create.md +95 -0
- data/examples/spec-app/docs/api/api/v1/customers/index.md +11 -0
- data/examples/spec-app/docs/api/api/v1/customers/list.md +67 -0
- data/examples/spec-app/docs/api/api/v1/customers/show.md +65 -0
- data/examples/spec-app/docs/api/api/v1/tasks/complete.md +51 -0
- data/examples/spec-app/docs/api/api/v1/tasks/create.md +90 -0
- data/examples/spec-app/docs/api/api/v1/tasks/destroy.md +35 -0
- data/examples/spec-app/docs/api/api/v1/tasks/index.md +14 -0
- data/examples/spec-app/docs/api/api/v1/tasks/list.md +65 -0
- data/examples/spec-app/docs/api/api/v1/tasks/show.md +65 -0
- data/examples/spec-app/docs/api/api/v1/tasks/update.md +74 -0
- data/examples/spec-app/docs/api/api/v1/users/create.md +95 -0
- data/examples/spec-app/docs/api/api/v1/users/index.md +11 -0
- data/examples/spec-app/docs/api/api/v1/users/list.md +67 -0
- data/examples/spec-app/docs/api/api/v1/users/show.md +65 -0
- data/examples/spec-app/docs/api/curl/api/v1/customers/create.sh +17 -0
- data/examples/spec-app/docs/api/curl/api/v1/customers/list.sh +9 -0
- data/examples/spec-app/docs/api/curl/api/v1/customers/show.sh +9 -0
- data/examples/spec-app/docs/api/curl/api/v1/tasks/complete.sh +8 -0
- data/examples/spec-app/docs/api/curl/api/v1/tasks/create.sh +15 -0
- data/examples/spec-app/docs/api/curl/api/v1/tasks/destroy.sh +8 -0
- data/examples/spec-app/docs/api/curl/api/v1/tasks/list.sh +8 -0
- data/examples/spec-app/docs/api/curl/api/v1/tasks/show.sh +8 -0
- data/examples/spec-app/docs/api/curl/api/v1/tasks/update.sh +14 -0
- data/examples/spec-app/docs/api/curl/api/v1/users/create.sh +17 -0
- data/examples/spec-app/docs/api/curl/api/v1/users/list.sh +9 -0
- data/examples/spec-app/docs/api/curl/api/v1/users/show.sh +9 -0
- data/examples/spec-app/docs/api/dataset.json +2402 -0
- data/examples/spec-app/docs/api/postman/collection.json +1290 -0
- data/examples/spec-app/generate.rb +14 -0
- data/examples/spec-app/reqcord.yml +27 -0
- data/examples/spec-app/spec/requests/customers_spec.rb +71 -0
- data/examples/spec-app/spec/requests/tasks_spec.rb +78 -0
- data/examples/spec-app/spec/requests/users_spec.rb +68 -0
- data/examples/spec-app/spec/spec_helper.rb +17 -0
- data/examples/test-app/README.md +57 -0
- data/examples/test-app/app.rb +212 -0
- data/examples/test-app/docs/api/README.md +45 -0
- data/examples/test-app/docs/api/api/v1/customers/create.md +95 -0
- data/examples/test-app/docs/api/api/v1/customers/index.md +11 -0
- data/examples/test-app/docs/api/api/v1/customers/list.md +67 -0
- data/examples/test-app/docs/api/api/v1/customers/show.md +65 -0
- data/examples/test-app/docs/api/api/v1/tasks/complete.md +51 -0
- data/examples/test-app/docs/api/api/v1/tasks/create.md +90 -0
- data/examples/test-app/docs/api/api/v1/tasks/destroy.md +35 -0
- data/examples/test-app/docs/api/api/v1/tasks/index.md +14 -0
- data/examples/test-app/docs/api/api/v1/tasks/list.md +65 -0
- data/examples/test-app/docs/api/api/v1/tasks/show.md +65 -0
- data/examples/test-app/docs/api/api/v1/tasks/update.md +74 -0
- data/examples/test-app/docs/api/api/v1/users/create.md +95 -0
- data/examples/test-app/docs/api/api/v1/users/index.md +11 -0
- data/examples/test-app/docs/api/api/v1/users/list.md +67 -0
- data/examples/test-app/docs/api/api/v1/users/show.md +65 -0
- data/examples/test-app/docs/api/curl/api/v1/customers/create.sh +17 -0
- data/examples/test-app/docs/api/curl/api/v1/customers/list.sh +9 -0
- data/examples/test-app/docs/api/curl/api/v1/customers/show.sh +9 -0
- data/examples/test-app/docs/api/curl/api/v1/tasks/complete.sh +8 -0
- data/examples/test-app/docs/api/curl/api/v1/tasks/create.sh +15 -0
- data/examples/test-app/docs/api/curl/api/v1/tasks/destroy.sh +8 -0
- data/examples/test-app/docs/api/curl/api/v1/tasks/list.sh +8 -0
- data/examples/test-app/docs/api/curl/api/v1/tasks/show.sh +8 -0
- data/examples/test-app/docs/api/curl/api/v1/tasks/update.sh +14 -0
- data/examples/test-app/docs/api/curl/api/v1/users/create.sh +17 -0
- data/examples/test-app/docs/api/curl/api/v1/users/list.sh +9 -0
- data/examples/test-app/docs/api/curl/api/v1/users/show.sh +9 -0
- data/examples/test-app/docs/api/dataset.json +2402 -0
- data/examples/test-app/docs/api/postman/collection.json +1290 -0
- data/examples/test-app/generate.rb +14 -0
- data/examples/test-app/reqcord.yml +28 -0
- data/examples/test-app/test/integration/customers_test.rb +72 -0
- data/examples/test-app/test/integration/tasks_test.rb +80 -0
- data/examples/test-app/test/integration/users_test.rb +72 -0
- data/lib/reqcord/capture/collector.rb +31 -0
- data/lib/reqcord/capture/integration_patch.rb +209 -0
- data/lib/reqcord/capture/minitest_context.rb +34 -0
- data/lib/reqcord/capture/rspec_context.rb +42 -0
- data/lib/reqcord/capture/test_context.rb +25 -0
- data/lib/reqcord/capture.rb +19 -0
- data/lib/reqcord/configuration.rb +198 -0
- data/lib/reqcord/dataset.rb +176 -0
- data/lib/reqcord/endpoint.rb +263 -0
- data/lib/reqcord/errors.rb +9 -0
- data/lib/reqcord/exporters/curl.rb +68 -0
- data/lib/reqcord/exporters/markdown.rb +295 -0
- data/lib/reqcord/exporters/postman.rb +206 -0
- data/lib/reqcord/exporters.rb +32 -0
- data/lib/reqcord/generator.rb +364 -0
- data/lib/reqcord/railtie.rb +51 -0
- data/lib/reqcord/renderers/curl.rb +56 -0
- data/lib/reqcord/renderers/payload.rb +69 -0
- data/lib/reqcord/request_example.rb +104 -0
- data/lib/reqcord/response_example.rb +72 -0
- data/lib/reqcord/route_collector.rb +242 -0
- data/lib/reqcord/sanitizers/sanitizer.rb +140 -0
- data/lib/reqcord/schema.rb +187 -0
- data/lib/reqcord/support.rb +58 -0
- data/lib/reqcord/version.rb +5 -0
- data/lib/reqcord.rb +78 -0
- data/lib/tasks/reqcord.rake +99 -0
- data/reqcord.gemspec +46 -0
- metadata +317 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2203f5a2f9ca4548874caf3a40a93c8fbe5a73e6f9d916f6162cbd843fec4341
|
|
4
|
+
data.tar.gz: 05b67df4290c1e6aeba3e5a29416df3f5e779c2d5fcf3eef6cfd76e4a8fabdb8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 11602f1a318f214c92cec4f68723d47ba8b237fa8fb4d7a46e2fe2628168441e9ab3ec8f1f8cf73922f2b3bc5ac0954876e2904e03f9454fd8c99faa7648141f
|
|
7
|
+
data.tar.gz: a273eb86d0b0939215a3375054239c2361d1520c0bf2c8faa8429ae15a9db8c1d923cf005731bd8690da67529496217c807d75abb760f2d963588109273f9e9e
|
data/.gitignore
ADDED
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [0.1.1] - 2026-09-15
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
* Postman Collection v2.1 exporter (`postman/collection.json`), on by default.
|
|
8
|
+
Folders follow controller namespaces, requests come from the successful
|
|
9
|
+
captured example, every captured status is a saved response, sanitizer
|
|
10
|
+
placeholders become collection variables and `Bearer {{token}}` becomes
|
|
11
|
+
collection-level auth. Hoppscotch imports the same file.
|
|
12
|
+
* Request parameters (`parameters.path/query/body`) and response fields
|
|
13
|
+
(`responses[].schema`) inferred per endpoint from accepted requests, written
|
|
14
|
+
to `dataset.json` (`schema_version: 2`) and rendered as typed tables in
|
|
15
|
+
Markdown, with closed value sets listed (`"active" | "passive"`).
|
|
16
|
+
* Full route table coverage: `match … via: [:get, :post]` becomes one endpoint
|
|
17
|
+
per verb, `via: :all` is documented per verb the tests used, mounted engines
|
|
18
|
+
are walked under their mount path, `resource :cart` and `root` are titled
|
|
19
|
+
sensibly, optional segments and globs are path parameters.
|
|
20
|
+
* PATCH/PUT twins of `update` fold into one endpoint (`also_methods`).
|
|
21
|
+
* Resources are grouped by full controller path, so `admin/customers` and
|
|
22
|
+
`api/v2/customers` get separate directories and Postman folders.
|
|
23
|
+
* The run reconciles the route table:
|
|
24
|
+
`routes = documented + uncovered + skipped`, with redirects and Rack mounts
|
|
25
|
+
counted as skipped instead of vanishing.
|
|
26
|
+
* `RESOURCE=` accepts the singular (`cart`) and the controller path.
|
|
27
|
+
* `route_name` (the `as:` name) is kept in the dataset.
|
|
28
|
+
* `Renderers::Payload`: the JSON/form and query-flattening decisions shared by
|
|
29
|
+
cURL and Postman.
|
|
30
|
+
* `test.paths`: name the directories (or files, or globs) the API tests live
|
|
31
|
+
in and Reqcord picks the runner — `bin/rails test`, `rspec`, or a plain Ruby
|
|
32
|
+
runner when the project has no `bin/rails`. `test.command` still wins when
|
|
33
|
+
given, and its globs now expand.
|
|
34
|
+
* Three-resource examples (`customers`, `users`, `tasks`) in both
|
|
35
|
+
`examples/test-app` and `examples/spec-app`.
|
|
36
|
+
|
|
37
|
+
### Changed
|
|
38
|
+
|
|
39
|
+
* Canonical cURL comes only from captured 2xx requests; error-case payloads
|
|
40
|
+
stay as response examples.
|
|
41
|
+
* Endpoint Markdown/cURL files are written only when a successful request was
|
|
42
|
+
captured; uncovered routes are listed under `uncovered_routes` and in the
|
|
43
|
+
index.
|
|
44
|
+
* Form bodies render as `--data 'a=b'` / `urlencoded`, never re-invented as
|
|
45
|
+
JSON.
|
|
46
|
+
* `reqcord:init` defaults `test.command` to `bin/rails test`.
|
|
47
|
+
|
|
48
|
+
### Fixed
|
|
49
|
+
|
|
50
|
+
* `Endpoint#add_exchange` records the response status on the request, so the
|
|
51
|
+
public API produces documented endpoints without extra setup.
|
|
52
|
+
* `RequestExample.from_h` / `ResponseExample.from_h` ignore keys written by a
|
|
53
|
+
newer Reqcord.
|
|
54
|
+
* A request that produced a different status is kept as its own example even
|
|
55
|
+
when sanitization makes it read like an earlier one (a right and a wrong
|
|
56
|
+
password both become `{{password}}`), so test order can no longer decide
|
|
57
|
+
whether a login endpoint counts as covered.
|
|
58
|
+
* A parameter is only `required` when every accepted request carried it; a
|
|
59
|
+
request accepted with no parameters at all now counts, so `?status=` on a
|
|
60
|
+
list endpoint is documented as optional.
|
|
61
|
+
* Response fields list a closed set of values only when the values look like
|
|
62
|
+
tokens (`"open" | "done"`); fixture names and SKUs that merely repeat across
|
|
63
|
+
responses are shown as one example.
|
|
64
|
+
|
|
65
|
+
## [0.1.0]
|
|
66
|
+
|
|
67
|
+
* RSpec request spec support (`test.framework: rspec`)
|
|
68
|
+
* Runnable Minitest and RSpec examples under `examples/`
|
|
69
|
+
* Minitest integration test capture for Rails 8, written to a lockable
|
|
70
|
+
capture file so parallel test workers can share it
|
|
71
|
+
* Rails route discovery and endpoint grouping
|
|
72
|
+
* `reqcord.yml` configuration
|
|
73
|
+
* Header and body sanitization
|
|
74
|
+
* Canonical `dataset.json`
|
|
75
|
+
* Markdown documentation with generated cURL examples
|
|
76
|
+
* Resource and API version filtering
|
|
77
|
+
* Routes with no captured example are reported as documentation gaps
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
reqcord (0.1.1)
|
|
5
|
+
actionpack (>= 8.0, < 9.0)
|
|
6
|
+
railties (>= 8.0, < 9.0)
|
|
7
|
+
|
|
8
|
+
GEM
|
|
9
|
+
remote: https://rubygems.org/
|
|
10
|
+
specs:
|
|
11
|
+
actionpack (8.1.3.1)
|
|
12
|
+
actionview (= 8.1.3.1)
|
|
13
|
+
activesupport (= 8.1.3.1)
|
|
14
|
+
nokogiri (>= 1.8.5)
|
|
15
|
+
rack (>= 2.2.4)
|
|
16
|
+
rack-session (>= 1.0.1)
|
|
17
|
+
rack-test (>= 0.6.3)
|
|
18
|
+
rails-dom-testing (~> 2.2)
|
|
19
|
+
rails-html-sanitizer (~> 1.6)
|
|
20
|
+
useragent (~> 0.16)
|
|
21
|
+
actionview (8.1.3.1)
|
|
22
|
+
activesupport (= 8.1.3.1)
|
|
23
|
+
builder (~> 3.1)
|
|
24
|
+
erubi (~> 1.11)
|
|
25
|
+
rails-dom-testing (~> 2.2)
|
|
26
|
+
rails-html-sanitizer (~> 1.6)
|
|
27
|
+
activesupport (8.1.3.1)
|
|
28
|
+
base64
|
|
29
|
+
bigdecimal
|
|
30
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
31
|
+
connection_pool (>= 2.2.5)
|
|
32
|
+
drb
|
|
33
|
+
i18n (>= 1.6, < 2)
|
|
34
|
+
json
|
|
35
|
+
logger (>= 1.4.2)
|
|
36
|
+
minitest (>= 5.1)
|
|
37
|
+
securerandom (>= 0.3)
|
|
38
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
39
|
+
uri (>= 0.13.1)
|
|
40
|
+
base64 (0.3.0)
|
|
41
|
+
bigdecimal (4.1.2)
|
|
42
|
+
builder (3.3.0)
|
|
43
|
+
concurrent-ruby (1.3.8)
|
|
44
|
+
connection_pool (3.0.2)
|
|
45
|
+
crass (1.0.7)
|
|
46
|
+
drb (2.2.3)
|
|
47
|
+
erb (6.0.7)
|
|
48
|
+
erubi (1.13.1)
|
|
49
|
+
i18n (1.15.2)
|
|
50
|
+
concurrent-ruby (~> 1.0)
|
|
51
|
+
io-console (0.9.2)
|
|
52
|
+
irb (1.18.0)
|
|
53
|
+
pp (>= 0.6.0)
|
|
54
|
+
prism (>= 1.3.0)
|
|
55
|
+
rdoc (>= 4.0.0)
|
|
56
|
+
reline (>= 0.4.2)
|
|
57
|
+
json (2.21.2)
|
|
58
|
+
logger (1.7.0)
|
|
59
|
+
loofah (2.25.2)
|
|
60
|
+
crass (~> 1.0.2)
|
|
61
|
+
nokogiri (>= 1.12.0)
|
|
62
|
+
minitest (6.0.6)
|
|
63
|
+
drb (~> 2.0)
|
|
64
|
+
prism (~> 1.5)
|
|
65
|
+
nokogiri (1.19.4-arm64-darwin)
|
|
66
|
+
racc (~> 1.4)
|
|
67
|
+
pp (0.6.4)
|
|
68
|
+
prettyprint
|
|
69
|
+
prettyprint (0.2.0)
|
|
70
|
+
prism (1.9.0)
|
|
71
|
+
racc (1.8.1)
|
|
72
|
+
rack (3.2.7)
|
|
73
|
+
rack-session (2.1.2)
|
|
74
|
+
base64 (>= 0.1.0)
|
|
75
|
+
rack (>= 3.0.0)
|
|
76
|
+
rack-test (2.2.0)
|
|
77
|
+
rack (>= 1.3)
|
|
78
|
+
rackup (2.3.1)
|
|
79
|
+
rack (>= 3)
|
|
80
|
+
rails-dom-testing (2.3.0)
|
|
81
|
+
activesupport (>= 5.0.0)
|
|
82
|
+
minitest
|
|
83
|
+
nokogiri (>= 1.6)
|
|
84
|
+
rails-html-sanitizer (1.7.1)
|
|
85
|
+
loofah (~> 2.25, >= 2.25.2)
|
|
86
|
+
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
|
87
|
+
railties (8.1.3.1)
|
|
88
|
+
actionpack (= 8.1.3.1)
|
|
89
|
+
activesupport (= 8.1.3.1)
|
|
90
|
+
irb (~> 1.13)
|
|
91
|
+
rackup (>= 1.0.0)
|
|
92
|
+
rake (>= 12.2)
|
|
93
|
+
thor (~> 1.0, >= 1.2.2)
|
|
94
|
+
tsort (>= 0.2)
|
|
95
|
+
zeitwerk (~> 2.6)
|
|
96
|
+
rake (13.4.2)
|
|
97
|
+
rbs (4.2.0)
|
|
98
|
+
logger
|
|
99
|
+
prism (>= 1.6.0)
|
|
100
|
+
tsort
|
|
101
|
+
rdoc (8.0.0)
|
|
102
|
+
erb
|
|
103
|
+
prism (>= 1.6.0)
|
|
104
|
+
rbs (>= 4.0.0)
|
|
105
|
+
tsort
|
|
106
|
+
reline (0.7.0)
|
|
107
|
+
io-console (~> 0.5)
|
|
108
|
+
securerandom (0.4.1)
|
|
109
|
+
thor (1.5.0)
|
|
110
|
+
tsort (0.2.0)
|
|
111
|
+
tzinfo (2.0.6)
|
|
112
|
+
concurrent-ruby (~> 1.0)
|
|
113
|
+
uri (1.1.1)
|
|
114
|
+
useragent (0.16.11)
|
|
115
|
+
zeitwerk (2.8.3)
|
|
116
|
+
|
|
117
|
+
PLATFORMS
|
|
118
|
+
arm64-darwin-24
|
|
119
|
+
|
|
120
|
+
DEPENDENCIES
|
|
121
|
+
minitest
|
|
122
|
+
rake
|
|
123
|
+
reqcord!
|
|
124
|
+
|
|
125
|
+
CHECKSUMS
|
|
126
|
+
actionpack (8.1.3.1)
|
|
127
|
+
actionview (8.1.3.1)
|
|
128
|
+
activesupport (8.1.3.1)
|
|
129
|
+
base64 (0.3.0)
|
|
130
|
+
bigdecimal (4.1.2)
|
|
131
|
+
builder (3.3.0)
|
|
132
|
+
concurrent-ruby (1.3.8)
|
|
133
|
+
connection_pool (3.0.2)
|
|
134
|
+
crass (1.0.7)
|
|
135
|
+
drb (2.2.3)
|
|
136
|
+
erb (6.0.7)
|
|
137
|
+
erubi (1.13.1)
|
|
138
|
+
i18n (1.15.2)
|
|
139
|
+
io-console (0.9.2)
|
|
140
|
+
irb (1.18.0)
|
|
141
|
+
json (2.21.2)
|
|
142
|
+
logger (1.7.0)
|
|
143
|
+
loofah (2.25.2)
|
|
144
|
+
minitest (6.0.6)
|
|
145
|
+
nokogiri (1.19.4-arm64-darwin)
|
|
146
|
+
pp (0.6.4)
|
|
147
|
+
prettyprint (0.2.0)
|
|
148
|
+
prism (1.9.0)
|
|
149
|
+
racc (1.8.1)
|
|
150
|
+
rack (3.2.7)
|
|
151
|
+
rack-session (2.1.2)
|
|
152
|
+
rack-test (2.2.0)
|
|
153
|
+
rackup (2.3.1)
|
|
154
|
+
rails-dom-testing (2.3.0)
|
|
155
|
+
rails-html-sanitizer (1.7.1)
|
|
156
|
+
railties (8.1.3.1)
|
|
157
|
+
rake (13.4.2)
|
|
158
|
+
rbs (4.2.0)
|
|
159
|
+
rdoc (8.0.0)
|
|
160
|
+
reline (0.7.0)
|
|
161
|
+
reqcord (0.1.1)
|
|
162
|
+
securerandom (0.4.1)
|
|
163
|
+
thor (1.5.0)
|
|
164
|
+
tsort (0.2.0)
|
|
165
|
+
tzinfo (2.0.6)
|
|
166
|
+
uri (1.1.1)
|
|
167
|
+
useragent (0.16.11)
|
|
168
|
+
zeitwerk (2.8.3)
|
|
169
|
+
|
|
170
|
+
BUNDLED WITH
|
|
171
|
+
4.0.3
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ahmet Saridogan
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|