@suss/adapter-ruby 0.33.1 → 0.34.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 +10 -10
- package/dist/index.cjs +5679 -1641
- package/dist/index.d.cts +727 -399
- package/dist/index.d.ts +727 -399
- package/dist/index.js +5679 -1588
- package/grammar/README.md +23 -21
- package/package.json +9 -9
package/grammar/README.md
CHANGED
|
@@ -2,19 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
`tree-sitter-ruby.wasm` is the compiled Ruby grammar for
|
|
4
4
|
[web-tree-sitter](https://www.npmjs.com/package/web-tree-sitter). It is
|
|
5
|
-
a checked
|
|
6
|
-
by path at run time (`Language.load(...)`),
|
|
7
|
-
adapter
|
|
5
|
+
a binary checked into the repository, and the build does not produce
|
|
6
|
+
it. `src/parser.ts` loads it by path at run time (`Language.load(...)`),
|
|
7
|
+
the same way the Python adapter loads its grammar.
|
|
8
8
|
|
|
9
|
-
The adapter depends only on `web-tree-sitter
|
|
10
|
-
bindings
|
|
11
|
-
`tree-sitter-ruby` npm package as a runtime dependency
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
The adapter depends only on `web-tree-sitter`, which is pure WASM with
|
|
10
|
+
no native bindings and no install script. It does not have the
|
|
11
|
+
`tree-sitter-ruby` npm package as a runtime dependency. That package's
|
|
12
|
+
`install` script runs `node-gyp-build` to load a native binding, which
|
|
13
|
+
this adapter does not need, and the language-adapters proposal rules out
|
|
14
|
+
that kind of native toolchain dependency. This file is the one part of
|
|
15
|
+
that package v0 needs, copied out on its own.
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
The provenance is recorded here so that a grammar bump is a deliberate
|
|
18
|
+
change someone can check:
|
|
18
19
|
|
|
19
20
|
- Source: `tree-sitter-ruby` npm package, version `0.23.1`.
|
|
20
21
|
- File: `tree-sitter-ruby.wasm` from the package root (built by that
|
|
@@ -22,14 +23,15 @@ Provenance, so a grammar bump is a deliberate, checkable act:
|
|
|
22
23
|
- SHA-256: `09a96427d7c72f0613ed470cd9812223fc4a91d6a9c025c0235cc6bd59ff96f4`.
|
|
23
24
|
|
|
24
25
|
tree-sitter-ruby is MIT-licensed. [`NOTICE`](./NOTICE) in this
|
|
25
|
-
directory reproduces its copyright and permission notice in full
|
|
26
|
-
ships in the published tarball alongside the `.wasm` file
|
|
27
|
-
under `grammar/`, which the package's `files` field includes
|
|
28
|
-
attribution its license requires travels with the binary it
|
|
26
|
+
directory reproduces its copyright and permission notice in full. It
|
|
27
|
+
ships in the published tarball alongside the `.wasm` file, because both
|
|
28
|
+
live under `grammar/`, which the package's `files` field includes. The
|
|
29
|
+
attribution its license requires therefore travels with the binary it
|
|
30
|
+
covers.
|
|
29
31
|
|
|
30
|
-
To pick up a newer grammar
|
|
31
|
-
extract it
|
|
32
|
-
hash above, check `NOTICE` still matches that version's
|
|
33
|
-
and re-run the adapter's test suite. A grammar change
|
|
34
|
-
restructures a node type used in `src/ast.ts` or
|
|
35
|
-
fail loudly there.
|
|
32
|
+
To pick up a newer grammar, run `npm pack tree-sitter-ruby@<version>`
|
|
33
|
+
and extract it. Copy `tree-sitter-ruby.wasm` here, update the version
|
|
34
|
+
and hash above, check that `NOTICE` still matches that version's
|
|
35
|
+
`LICENSE` file, and re-run the adapter's test suite. A grammar change
|
|
36
|
+
that renames or restructures a node type used in `src/ast.ts` or
|
|
37
|
+
`src/scope.ts` will fail loudly there.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@suss/adapter-ruby",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Read a Ruby codebase with suss and check what each Rails action or graphql-ruby resolver returns against the code that calls it.",
|
|
6
6
|
"keywords": [
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
],
|
|
16
16
|
"license": "Apache-2.0",
|
|
17
17
|
"author": "Nimbus Cloud AI LLC",
|
|
18
|
-
"homepage": "https://
|
|
18
|
+
"homepage": "https://suss.sh",
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
21
|
"url": "git+https://github.com/nimbuscloud-ai/suss.git",
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"typecheck": "tsc --noEmit"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@suss/behavioral-ir": "0.
|
|
53
|
-
"@suss/datalog": "0.
|
|
54
|
-
"@suss/extractor": "0.
|
|
55
|
-
"@suss/ir-core": "0.
|
|
56
|
-
"@suss/resolution": "0.
|
|
57
|
-
"@suss/sql": "0.
|
|
58
|
-
"@suss/values": "0.
|
|
52
|
+
"@suss/behavioral-ir": "0.34.0",
|
|
53
|
+
"@suss/datalog": "0.34.0",
|
|
54
|
+
"@suss/extractor": "0.34.0",
|
|
55
|
+
"@suss/ir-core": "0.34.0",
|
|
56
|
+
"@suss/resolution": "0.34.0",
|
|
57
|
+
"@suss/sql": "0.34.0",
|
|
58
|
+
"@suss/values": "0.34.0",
|
|
59
59
|
"web-tree-sitter": "^0.26.11"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|