Socket
Socket
Sign inDemoInstall

@prettier/plugin-ruby

Package Overview
Dependencies
Maintainers
13
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prettier/plugin-ruby - npm Package Compare versions

Comparing version 4.0.2 to 4.0.3

10

CHANGELOG.md

@@ -9,2 +9,9 @@ # Changelog

## [4.0.3] - 2023-11-27
### Changed
- [#1406](https://github.com/prettier/plugin-ruby/pull/1406) - mikesea - Support running without the RBS or Haml plugins loaded.
- [#1407](https://github.com/prettier/plugin-ruby/pull/1407) - hrabe - Support shimmed Ruby versions.
## [4.0.2] - 2023-07-14

@@ -1295,3 +1302,4 @@

[unreleased]: https://github.com/prettier/plugin-ruby/compare/v4.0.2...HEAD
[unreleased]: https://github.com/prettier/plugin-ruby/compare/v4.0.3...HEAD
[4.0.3]: https://github.com/prettier/plugin-ruby/compare/v4.0.2...v4.0.3
[4.0.2]: https://github.com/prettier/plugin-ruby/compare/v4.0.1...v4.0.2

@@ -1298,0 +1306,0 @@ [4.0.1]: https://github.com/prettier/plugin-ruby/compare/v4.0.0...v4.0.1

8

package.json
{
"name": "@prettier/plugin-ruby",
"version": "4.0.2",
"version": "4.0.3",
"description": "prettier plugin for the Ruby programming language",

@@ -26,7 +26,7 @@ "type": "module",

"devDependencies": {
"eslint": "^8.35.0",
"eslint-config-prettier": "^8.7.0",
"eslint": "^8.54.0",
"eslint-config-prettier": "^9.0.0",
"husky": "^8.0.1",
"jest": "^29.5.0",
"prettier": "^3.0.0",
"prettier": "^3.1.0",
"pretty-quick": "^3.1.2"

@@ -33,0 +33,0 @@ },

@@ -100,5 +100,16 @@ <div align="center">

```bash
./node_modules/.bin/prettier --write '**/*'
./node_modules/.bin/prettier --plugin=@prettier/plugin-ruby --write '**/*'
```
### Using Prettier >= 3.0
You need to tell Prettier to use the plugin, add the following to your existing [prettier configuration
file](https://prettier.io/docs/en/configuration.html).
```json
{
"plugins": ["@prettier/plugin-ruby"]
}
```
## Configuration

@@ -105,0 +116,0 @@

@@ -70,2 +70,11 @@ import { spawn } from "child_process";

const default_options = {
env: Object.assign({}, process.env, { LANG: getLang() }),
stdio: ["ignore", "ignore", "inherit"],
detached: true
};
const options = opts.filepath
? { cwd: path.dirname(opts.filepath), ...default_options }
: default_options;
const server = spawn(

@@ -78,7 +87,3 @@ opts.rubyExecutablePath || "ruby",

],
{
env: Object.assign({}, process.env, { LANG: getLang() }),
stdio: ["ignore", "ignore", "inherit"],
detached: true
}
options
);

@@ -85,0 +90,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc