@prettier/plugin-ruby
Advanced tools
Comparing version 3.1.1 to 3.1.2
@@ -9,2 +9,8 @@ # Changelog | ||
## [3.1.2] - 2022-05-13 | ||
### Changed | ||
- [#1127](https://github.com/prettier/plugin-ruby/issues/1227) - mscrivo, kddnewton - Support passing the `printWidth` option. | ||
## [3.1.1] - 2022-05-12 | ||
@@ -1241,3 +1247,6 @@ | ||
[unreleased]: https://github.com/prettier/plugin-ruby/compare/v3.0.0...HEAD | ||
[unreleased]: https://github.com/prettier/plugin-ruby/compare/v3.1.2...HEAD | ||
[3.1.2]: https://github.com/prettier/plugin-ruby/compare/v3.1.1...v3.1.2 | ||
[3.1.1]: https://github.com/prettier/plugin-ruby/compare/v3.1.0...v3.1.1 | ||
[3.1.0]: https://github.com/prettier/plugin-ruby/compare/v3.0.0...v3.1.0 | ||
[3.0.0]: https://github.com/prettier/plugin-ruby/compare/v2.1.0...v3.0.0 | ||
@@ -1244,0 +1253,0 @@ [2.1.0]: https://github.com/prettier/plugin-ruby/compare/v2.0.0...v2.1.0 |
{ | ||
"name": "@prettier/plugin-ruby", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "prettier plugin for the Ruby programming language", | ||
@@ -5,0 +5,0 @@ "main": "src/plugin.js", |
@@ -71,3 +71,3 @@ <div align="center"> | ||
To run `prettier` with the Ruby plugin, you're going to need [`ruby`](https://www.ruby-lang.org/en/documentation/installation/) (version `2.5` or newer) and [`node`](https://nodejs.org/en/download/) (version `8.3` or newer). If you're integrating with a project that is not already using `prettier`, you should use the Ruby gem. Otherwise you can use the `npm` package directly. | ||
To run `prettier` with the Ruby plugin, you're going to need [`ruby`](https://www.ruby-lang.org/en/documentation/installation/) (version `2.7.3` or newer) and [`node`](https://nodejs.org/en/download/) (version `8.3` or newer). If you're integrating with a project that is not already using `prettier`, you should use the Ruby gem. Otherwise you can use the `npm` package directly. | ||
@@ -125,3 +125,3 @@ Note that currently the editor integrations work best with the `npm` package, as most of the major editor plugins expect a `node_modules` directory. You can get them to work with the Ruby gem, but it requires manually configuring the paths. | ||
```bash | ||
gem install bundler syntax_tree syntax_tree-haml syntax_tree-rbs | ||
gem install bundler prettier_print syntax_tree syntax_tree-haml syntax_tree-rbs | ||
``` | ||
@@ -128,0 +128,0 @@ |
@@ -184,3 +184,3 @@ const { spawn, spawnSync } = require("child_process"); | ||
const response = spawnSync(parserArgs.cmd, parserArgs.args, { | ||
input: `${parser}|${source}`, | ||
input: `${parser}|${opts.printWidth}|${source}`, | ||
maxBuffer: 15 * 1024 * 1024 | ||
@@ -187,0 +187,0 @@ }); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
141721