@suss/adapter-ruby 0.32.0 → 0.33.0
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.
- package/README.md +5 -4
- package/dist/index.cjs +900 -180
- package/dist/index.d.cts +127 -5
- package/dist/index.d.ts +127 -5
- package/dist/index.js +889 -171
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -26,12 +26,13 @@ npx suss check --dir summaries/
|
|
|
26
26
|
- Rails controller actions, bound to the method and path `config/routes.rb` gives each one, with every status an action can respond with and the `before_action` filters that run in front of it.
|
|
27
27
|
- graphql-ruby's class-based field DSL, including `mutation:` and `resolver:` wiring, and the method behind a field wherever it is defined in the class's ancestry.
|
|
28
28
|
- ActiveRecord calls, what a file reads from the environment, and what a body calls out to, as facts the checker's rules run over.
|
|
29
|
+
- SQL a project wrote itself and handed to a database client, parsed by `@suss/sql` into the tables it touches.
|
|
29
30
|
|
|
30
31
|
How each of those is decided, and where it stops: [how the Ruby adapter reads a project](./DESIGN.md).
|
|
31
32
|
|
|
32
33
|
## Reading a value
|
|
33
34
|
|
|
34
|
-
Nothing outside the facility reads a node's text to find out what a value is. `values/evaluator.ts` is the evaluator: `evaluatedValue` runs the statements ahead of an expression and says what it comes to, and `stringValueOf` gives the string when it settles to one, so a path built by interpolation or out of a constant reads the same as one written out. `facts/resolve.ts` says where a name came from, with `writtenValueOf` and `resolvedFunctions`, and the literal readers in `ast.ts` (`stringLiteralValue`, `symbolValue`, `booleanLiteralValue`) are for the places a literal really is written out. When one of them cannot read a spelling, the case goes into the evaluator's lowering or the resolution rules; `npm run check:readers` at the repo root fails on a reader written beside a call site instead. [`docs
|
|
35
|
+
Nothing outside the facility reads a node's text to find out what a value is. `values/evaluator.ts` is the evaluator: `evaluatedValue` runs the statements ahead of an expression and says what it comes to, and `stringValueOf` gives the string when it settles to one, so a path built by interpolation or out of a constant reads the same as one written out. `facts/resolve.ts` says where a name came from, with `writtenValueOf` and `resolvedFunctions`, and the literal readers in `ast.ts` (`stringLiteralValue`, `symbolValue`, `booleanLiteralValue`) are for the places a literal really is written out. When one of them cannot read a spelling, the case goes into the evaluator's lowering or the resolution rules; `npm run check:readers` at the repo root fails on a reader written beside a call site instead. [`design/docs-internal/style.md#reading-a-value`](../../../design/docs-internal/style.md#reading-a-value) has the rule.
|
|
35
36
|
|
|
36
37
|
## Where it fits
|
|
37
38
|
|
|
@@ -41,9 +42,9 @@ It depends on `@suss/extractor`, `@suss/behavioral-ir`, `@suss/datalog` and `web
|
|
|
41
42
|
|
|
42
43
|
## More
|
|
43
44
|
|
|
44
|
-
- [Documentation](https://
|
|
45
|
-
- [Python and Ruby](https://
|
|
46
|
-
- [Every pack suss ships](https://
|
|
45
|
+
- [Documentation](https://suss.sh/)
|
|
46
|
+
- [Python and Ruby](https://suss.sh/guides/python-and-ruby)
|
|
47
|
+
- [Every pack suss ships](https://suss.sh/packs/catalog)
|
|
47
48
|
- [Source and issues](https://github.com/nimbuscloud-ai/suss)
|
|
48
49
|
|
|
49
50
|

|