@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/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-in binary asset, not a build output: `src/parser.ts` loads it
6
- by path at run time (`Language.load(...)`), the same way the Python
7
- adapter's grammar asset works.
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` (pure WASM, no native
10
- bindings, no install script). It does not depend on the
11
- `tree-sitter-ruby` npm package as a runtime dependency, because that
12
- package's `install` script runs `node-gyp-build` to load a native
13
- binding, which is unnecessary here and the kind of native-toolchain
14
- surface the language-adapters proposal rules out. This file is the one
15
- part of that package v0 actually needs, taken out on its own.
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
- Provenance, so a grammar bump is a deliberate, checkable act:
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, and
26
- ships in the published tarball alongside the `.wasm` file (both live
27
- under `grammar/`, which the package's `files` field includes), so the
28
- attribution its license requires travels with the binary it covers.
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: `npm pack tree-sitter-ruby@<version>`,
31
- extract it, copy `tree-sitter-ruby.wasm` here, update the version and
32
- hash above, check `NOTICE` still matches that version's `LICENSE` file,
33
- and re-run the adapter's test suite. A grammar change that renames or
34
- restructures a node type used in `src/ast.ts` or `src/scope.ts` will
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.33.1",
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://github.com/nimbuscloud-ai/suss/tree/main/packages/adapter/ruby#readme",
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.33.1",
53
- "@suss/datalog": "0.33.1",
54
- "@suss/extractor": "0.33.1",
55
- "@suss/ir-core": "0.33.1",
56
- "@suss/resolution": "0.33.1",
57
- "@suss/sql": "0.33.1",
58
- "@suss/values": "0.33.1",
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": {