rfmt 0.1.0 → 0.2.2
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/CHANGELOG.md +35 -0
- data/Cargo.lock +1748 -133
- data/README.md +360 -20
- data/exe/rfmt +15 -0
- data/ext/rfmt/Cargo.toml +46 -1
- data/ext/rfmt/extconf.rb +5 -5
- data/ext/rfmt/spec/config_spec.rb +39 -0
- data/ext/rfmt/spec/spec_helper.rb +16 -0
- data/ext/rfmt/src/ast/mod.rs +335 -0
- data/ext/rfmt/src/config/mod.rs +403 -0
- data/ext/rfmt/src/emitter/mod.rs +363 -0
- data/ext/rfmt/src/error/mod.rs +48 -0
- data/ext/rfmt/src/lib.rs +59 -36
- data/ext/rfmt/src/logging/logger.rs +128 -0
- data/ext/rfmt/src/logging/mod.rs +3 -0
- data/ext/rfmt/src/parser/mod.rs +9 -0
- data/ext/rfmt/src/parser/prism_adapter.rs +407 -0
- data/ext/rfmt/src/policy/mod.rs +36 -0
- data/ext/rfmt/src/policy/validation.rs +18 -0
- data/lib/rfmt/cache.rb +120 -0
- data/lib/rfmt/cli.rb +280 -0
- data/lib/rfmt/configuration.rb +95 -0
- data/lib/rfmt/prism_bridge.rb +255 -0
- data/lib/rfmt/prism_node_extractor.rb +81 -0
- data/lib/rfmt/rfmt.so +0 -0
- data/lib/rfmt/version.rb +1 -1
- data/lib/rfmt.rb +156 -5
- metadata +29 -7
- data/lib/rfmt/rfmt.bundle +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a9981b614b859c7c49e597686b89c79279ba977911b9a62d691aa0b88408eb0f
|
|
4
|
+
data.tar.gz: 1461e9bcf3ff3b298855963fdf2e6cdd0aca1b3e29bf6f5b9037e62889903469
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0b6aa80fa2df44397d1bdc81a12b860e1446a611f565e3283af8a821e691ca5122041f9622d48e2577740e878d740a1dba95df0a8c6acbea71c8301993f6fb46
|
|
7
|
+
data.tar.gz: a1f330f17114d738523adf1fdcc9ccc42590b028a754e32304d2d4724f9966d54e5a7467bd50c8884111bc3ff16780b9b9c7591a0a22d8cd1eb17ffa50a856ed
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.2.2] - 2025-01-25
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- Fixed blank line formatting to output single blank line instead of double blank lines
|
|
7
|
+
|
|
8
|
+
## [0.2.1] - 2025-01-25
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- Fixed GitHub Actions release workflow bundler installation issue
|
|
12
|
+
- Resolved clippy warnings in Rust codebase
|
|
13
|
+
- Improved enum Default trait implementations using derive macros
|
|
14
|
+
- Added `#[cfg(test)]` attributes to test-only code
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- Updated release workflow to use `bundler-cache: true` for better dependency management
|
|
18
|
+
|
|
19
|
+
## [0.2.0] - 2025-01-25
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
- Security policy implementation with input validation and resource limits
|
|
23
|
+
- File size validation (default: 10MB max)
|
|
24
|
+
- Source code encoding validation
|
|
25
|
+
- Comprehensive error handling with sanitized error messages
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
- Simplified RSpec test suite (reduced from ~200 to 7 essential tests)
|
|
29
|
+
- Removed redundant and duplicate tests
|
|
30
|
+
- Improved code organization and removed unnecessary comments
|
|
31
|
+
- Disabled Windows CI temporarily due to rb-sys compatibility issues
|
|
32
|
+
|
|
33
|
+
### Fixed
|
|
34
|
+
- Rust code formatting issues
|
|
35
|
+
- Removed phase-related comments and code noise
|
|
36
|
+
- Fixed import order and formatting inconsistencies
|
|
37
|
+
|
|
3
38
|
## [0.1.0] - 2025-09-08
|
|
4
39
|
|
|
5
40
|
- Initial release
|