@prettier/plugin-ruby
Advanced tools
Comparing version 0.3.5 to 0.3.6
@@ -9,2 +9,7 @@ # Changelog | ||
## [0.3.6] - 2019-02-10 | ||
### Changed | ||
- Support the `not` operator properly. (Thanks to @AlanFoster for the report.) | ||
- Handle comments properly inside `if`, `unless`, and `when` nodes. (Thanks to @AlanFoster for the report.) | ||
## [0.3.5] - 2019-02-09 | ||
@@ -92,3 +97,4 @@ ### Changed | ||
[Unreleased]: https://github.com/CultureHQ/add-to-calendar/compare/v0.3.5...HEAD | ||
[Unreleased]: https://github.com/CultureHQ/add-to-calendar/compare/v0.3.6...HEAD | ||
[0.3.6]: https://github.com/CultureHQ/add-to-calendar/compare/v0.3.5...v0.3.6 | ||
[0.3.5]: https://github.com/CultureHQ/add-to-calendar/compare/v0.3.4...v0.3.5 | ||
@@ -95,0 +101,0 @@ [0.3.4]: https://github.com/CultureHQ/add-to-calendar/compare/v0.3.3...v0.3.4 |
{ | ||
"name": "@prettier/plugin-ruby", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"description": "prettier plugin for the Ruby programming language", | ||
@@ -5,0 +5,0 @@ "main": "src/ruby.js", |
@@ -86,3 +86,3 @@ <div align="center"> | ||
After that you can add `prettier` and `@prettier/plugin-ruby` to your `package.json` `dependencies` by running `npm install prettier @prettier/plugin-ruby` if you are using `npm` or `yarn add prettier @prettier/plugin-ruby` if you are using `yarn`. | ||
After that you can add `prettier` and `@prettier/plugin-ruby` to your `package.json` `devDependencies` by running `npm install prettier @prettier/plugin-ruby --saveDev` if you are using `npm` or `yarn add prettier @prettier/plugin-ruby --dev` if you are using `yarn`. | ||
@@ -100,3 +100,3 @@ Finally, you can install your dependencies using either `npm install` for `npm` or `yarn install` for `yarn`. | ||
``` | ||
./node_modules/.bin/prettier --write --plugin=@prettier/plugin-ruby **/*.rb | ||
./node_modules/.bin/prettier --write --plugin=@prettier/plugin-ruby '**/*.{rb,rake}' | ||
``` | ||
@@ -103,0 +103,0 @@ |
@@ -542,6 +542,10 @@ const { align, breakParent, concat, dedent, dedentToRoot, group, hardline, ifBreak, indent, join, line, lineSuffix, literalline, markAsRoot, softline, trim } = require("prettier").doc.builders; | ||
top_const_ref: prefix("::"), | ||
unary: (path, opts, print) => concat([ | ||
path.getValue().body[0][0], | ||
path.call(print, "body", 1) | ||
]), | ||
unary: (path, opts, print) => { | ||
const operator = path.getValue().body[0]; | ||
return concat([ | ||
operator === "not" ? "not " : operator[0], | ||
path.call(print, "body", 1) | ||
]); | ||
}, | ||
undef: (path, opts, print) => concat([ | ||
@@ -548,0 +552,0 @@ "undef ", |
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
174616
1092