oxtree 0.1.0-aarch64-linux-gnu

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 838f79bae6aa0155383dc54c55ab42df23f87baa4873e6ed1204feb18e03e7b9
4
+ data.tar.gz: 97f7593b61e9b1d8510312b365b33ab1e4a5e2b852b1c3140a3f781c08000031
5
+ SHA512:
6
+ metadata.gz: db8a180871291aff35bb203825cc9d662c55e738d05ca6db4f9e63c5e486b00b85261503408910968cde37cc6c82e759b7831014d7ba9882c1437c2663870577
7
+ data.tar.gz: 1053cbd4effd559fbb85235cefefea7ca233fd1ada59ed11a72c69dd3c16b938eda93da204e60043945d574511f4df59f28d51c265d43b9fdf63c3f1eb7861e1
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Teddy Liu
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 all
13
+ 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 THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # oxtree
2
+
3
+ A drop-in replacement for [syntax_tree](https://github.com/ruby-syntax-tree/syntax_tree)
4
+ and its ERB plugin ([w_syntax_tree-erb](https://github.com/davidwessman/syntax_tree-erb)),
5
+ rewritten in Rust on top of the [Prism](https://github.com/ruby/prism) parser.
6
+ Its output is byte-for-byte syntax_tree's.
7
+
8
+ ```ruby
9
+ # Gemfile
10
+ gem "oxtree", require: false
11
+ ```
12
+
13
+ ```sh
14
+ bundle exec oxtree . # format the project's Ruby and ERB files in place
15
+ bundle exec oxtree --check app lib # exit 1 if any file isn't formatted
16
+ bundle exec oxtree --list-different . --ignore-files=db --ignore-files=vendor
17
+ bundle exec oxtree check '**/*.rb' # stree's commands work too
18
+ ```
19
+
20
+ Options and `.streerc` are syntax_tree's (`--print-width`, `--plugins`,
21
+ `--ignore-files`, `--config`); the print width defaults to 100. See
22
+ `oxtree --help`.
23
+
24
+ A directory also covers its `*.html.erb`, `*.js.erb`, `*.css.erb` and
25
+ `*.json.erb` files, with no flag. They are formatted with syntax_tree's ERB
26
+ plugin, except that `<script>`/`<style>` bodies and whole `.js.erb`,
27
+ `.css.erb` and `.json.erb` files go through oxfmt (built in; the project's
28
+ `.oxfmtrc.json` applies). The `oxfmt` executable (`node_modules/.bin/oxfmt`
29
+ or `OXFMT_BIN`) is only needed for Tailwind class sorting and a few rare
30
+ inputs; without it, Tailwind classes are left unsorted with a warning. stree's own commands (`oxtree check FILE`)
31
+ keep syntax_tree's ERB handling, behind `--plugins=erb`.
32
+
33
+ The gem installs a single `oxtree` executable. It has no `stree` alias, so
34
+ it never shadows syntax_tree's when both are bundled.
35
+
36
+ oxtree is early: see the [project README](https://github.com/pocketflows/oxruby)
37
+ for status.